start	end	text
0	6240	Thank you all for coming. This is the 12 o'clock talk on the wild and wonderful world of 8-bit
6860	14520	microprocessors. And I'll be doing a focus on the MOS 6502. I do apologize, there is not much
14520	20460	of a demo in this talk. I was hoping to have more of a demo, but I've had some technical problems.
20540	25180	So this, we're going to go more into more of history and technology. For some of you,
25180	29880	this might be stuff you've never heard of before. That's what it's all about. And I have
30000	35660	quite a few slides with a lot of resources and information. So you're certainly welcome,
35660	41580	and I encourage you guys to take pictures of them. I've been actually adding to these slides,
41580	46780	so they might not have, they're not going to have the latest version. So let me start. My name is
46780	51280	Michael Brown. This is my normal bio I do with these talks, which I typically talk about InfoSec
51280	58920	stuff. This isn't an InfoSec talk, so I'm not going to really go over this. But why am I here?
58920	63960	I actually grew up in the era of 8-bit computers. You know, when I was a kid,
63960	71360	it was the Apple II and the Atari 8-bit, Commodore 8-bit. My first game console was an Atari 2600.
71680	77820	My first computer was actually an Atari 800XL, which I got around in 84 when I was going to
77820	86020	college. And I can tell you that it was a big change going from writing papers on a typewriter
86640	95920	to using a word processor to write up my papers. And I remember an incident when I turned in one
95920	103880	of my first papers to my English teacher that I use on the word processor, and she marked off
103880	110540	the fact that I didn't put quotes around the book, all the titles. And I had to go and take
110540	116540	it back to her and tell her, like, no, no, no, no, no. I italicized the titles. They don't need
116540	122520	to be quoted. And she didn't realize that. And then, of course, gave me back the points. Because
122520	131260	that was just too new at that time. My second computer was an Atari 1040ST-FM. You will impress
131260	138600	me if you come up afterwards and tell me what that means without looking it up. When I was in
138600	143620	college, among other things, I actually did programming in the 6502 and the 68000.
145040	148880	You know, these are some of the computers I used. And I used these wonderful programming languages
148880	154580	that maybe some of you know of, maybe you don't. Later on, I did do C. I still got my computers.
154600	159460	I've added to my collection. I don't have a huge collection. But I, you know, I enjoyed
159460	165900	using these computers at the time. I enjoy using modern computers. What I find kind of
167240	170760	disappointing with a lot of people who get into computer science is they...
171380	176360	because I'm a computer science major. I was never a computer engineer. I wasn't, you know,
176360	182580	hardware wasn't what I was about. I was about running software. But my view is always from
182580	187700	the beginning was I'm running software. It runs on a computer. I should know about the hardware.
187780	193060	And unfortunately, what I saw was a lot of computer science majors, the computer was just
193180	197680	a black box. I remember talking to them and asking them, hey, what processor is in that
197680	204960	computer? And they're like, I don't know. And of course, today, it's even worse. I know that
204960	211580	my computer here, my laptop is a Core i7. But I'd have to look it up to find out which of the
212140	218640	20 some generations of the i7 it is or what capabilities because, you know,
218640	224260	nowadays, we're just pretty much oblivious. So kind of the outline, we'll talk about some
224260	229540	of the timeline, computer types, where we get into like some of the semiconductor companies,
229540	234060	which I find kind of interesting. We'll look at, you know, more about the microprocessor units,
234060	238420	we'll look more at the 6502. We'll talk a little bit about assembly language, which
238420	244460	it's either something that is really interesting to you, or freaking boring, you know, it's...
245700	249340	or, you know, the worst thing possible. And then I want to, I put together a lot of good
249340	254040	resources, at least a lot of things that I think are good resources. So I encourage you guys to
254040	259740	take pictures of that. So the timeline, the 70s, which is what I said, this is when I was in high
259740	267680	school. You know, we had Intel came out with the 8080, which kicked off the microcomputer era,
267680	273960	we have the Altair, you know, followed up and by other processors, you know, you have the Apple
273960	282460	to the Commodore, you know, the TRS-80 model one, the so called trash 80, as everyone called it,
283180	290500	and so forth into the 70s, the TI's computer, and the rest. And then in the 80s, we get more,
290500	298600	we get the VIC-20, the Commodore 64, the IBM PC, the Macintosh, and then of course, you know,
298600	304600	the Macintosh, the ST, the Amiga. I didn't want to go further, because now we're getting outside
304600	311320	of 8-bit. When I was doing this, I wondered, should I get into RISC processors? Because that's
311320	317240	another whole, you know, topic, and that's kind of interesting and kind of sad. So I didn't want
317240	323160	to kind of overwhelm things. When we talk about computer types, there's a lot of different ways
323160	327560	to categorize them. These are the ones that I understood when I was into computer science,
327560	332880	we talked about the mainframes, you had minicomputers, and you had microcomputers.
333220	341080	And I'll be honest, this is the distinction I've always been told about. Why is this a
341080	346360	mainframe? Why is this a minicomputer? And usually the way they said it's like, well, it's about size.
346360	351860	Your mainframes were your huge room-based computers, the ones you see in the TVs and movies,
351860	356160	with the tape drives going and whatnot. And the minicomputers were smaller, the size of a
356160	363180	refrigerator. Earlier on, it was, you know, these companies, you know, IBM and these others,
363180	368960	they were called Snow White and the Seven Dwarfs. Through mergers, it became IBM and the Bunch.
369220	375880	And today, yes, mainframe computers are still being made, but now by these companies.
376560	380800	The minicomputers were kind of interesting, you had, you know, digital and data,
380800	387360	data general and all these others, and they no longer exist. You know, there are no minicomputers
387360	394380	as a market, and almost all those companies either don't exist or they've moved out.
395160	399760	Microcomputers started, of course, as the small, you know, more of a hobbyist getting into the
399760	406780	business computers with MIT or the MITS, MSci, Sol, you know, then the Apple, Atari, Commodore.
406780	412460	But as microprocessor became more and more powerful, you now had microprocessor-based
412460	417300	servers, and those kind of moved in and wiped out the minicomputers.
418820	424220	And then I debated to put into a lower level, which would have been your microcontrollers,
424220	429940	which in many cases are microprocessors being used to control hardware, you know,
429940	436520	disk drives and this sort of stuff. So, let's talk about semiconductor manufacturers as kind
436520	442140	of interesting. The first major one is called Shockley Semiconductor. It was founded by the
442140	448560	guy who created transistors, a guy named William Shockley. Unfortunately, Shockley was one of these
448560	456240	people who was like a brilliant, you know, scientist, a lousy manager. So, he established
456240	462540	his company, he brought all these engineers on board, he trained them. They didn't like working
462540	468640	for him, and they left. And these people, there was eight of them, and they are known as, and I'm
468640	475380	not, I'm not making this up, they are the traitorous eight who left Shockley Semiconductor
475380	481820	to go found a new company called Fairchild Semiconductor. And Fairchild was a subsidiary
481820	490900	of Fairchild Camera, and we have Fairchild Semiconductor for having Silicon Valley.
490900	497220	They literally created Silicon Valley. They were established in California, and then the
497220	504160	funny thing was with Fairchild is many of the people that came to Fairchild left to establish
504160	508960	other companies, and some of them even left those and started other companies, and these are referred
508960	514160	to as the Fairchildren. And there's even, you can go online, you can see these charts of all these
514160	520400	companies that have been like second generation from Fairchild that spread this knowledge of the
520400	526500	semiconductors. Fairchild's big claim to fame is they were one of two companies that created the
526500	532740	integrated circuit that gives us all the computer chips that we use today. They did create their
532740	539460	own microprocessor, which until recently I didn't even know existed, called the F8, and they created
539460	545920	their own game console called the Channel F, which I again have to admit, I don't remember that when
545920	553040	I was a kid. But the big thing that was made the Channel F important is it was the first one to
553040	559860	use ROM cartridges for the games, which became the standard of all the game consoles that followed.
559860	565900	You know, all the Atari's used game consoles, the Nintendo and Super Nintendo and the Sega Genesis
565900	571540	and all those all used ROM cartridges until they came along sort of using CDs.
572720	578460	One of the big Fairchild is this little company called Intel, which was for it stood for
578460	584320	Integrated Electronics, very, very creative name. And it was actually 10 of the guys that were the
584320	591460	traders that went and founded Intel. Intel, when they were established, made memory chips. That's
591460	599180	really what they did. But what made a difference is when was when a Japanese calculator company
599180	605740	went to them and said, hey, we need some chips made, because we're going to make four sets of
606420	612320	calculators. And we need chips in them to make them function. And they were saying like, well,
612320	617800	okay, we have four calculated with different features. So why don't you make us four sets
617800	623940	of chips for these four compute for calculators. But one of the engineers at Intel said like,
623940	632400	no, that's not a good idea. Let's make one set of chips that we can program and use in all four of
632400	641280	these. And that what they created was the 4004, which is a four bit processor. That was actually
641280	648140	the first microprocessor, it was then replaced with a better 4040. And then shortly thereafter,
648140	653880	another calculator company came with the same thing. And the same engineers then created the
654660	661900	8008, now an eight bit processor. And then they made it better and created the 8080.
662380	668040	And again, they created these to be used in calculators. No one created these for being
668040	673200	be used in computers. It took other people to look at this and go like, hey,
673200	681800	I can take this 8080 chip and make it into a computer. And those were the guys at MIT or MITS,
681800	688200	depending on what you believe is the name of the company. And that was the Altair 8800, which was,
688200	691860	it's not the first personal computer, but it was the first
694600	699360	commercially available personal computer. And that kicked it all off. And of course,
699360	704260	people that wanted these were more people that were hobbyists and engineers. They, you know,
704260	708960	at that time, as I said, you had many computers and mainframes that you didn't get to sit at and
708960	715620	work on the computers. People wanted their own computer that they could have and work on and
715620	721480	do stuff with, as well as now that can be used for practical purposes and businesses.
722680	728660	Shortly thereafter, Intel created the 8086, which is now a 16 bit processor.
729380	734540	And that then, of course, was used for more powerful computers. They then started a series
734540	743040	of kind of iterations that gave us the 80186 and so forth. You know, the 286, the 386,
743040	749000	the 386 is now a 32 bit processor. So now we're moving up and becoming more and more powerful.
749140	757840	And the 486, the next one was supposed to be the 8586. But instead, Intel decided to call it a
757840	764620	Pentium because you can't copyright a number, but you can copyright a name. And then with the
764620	768820	Pentium, there was all the various different variations of the Pentium, which I'm sorry,
768820	773980	I can't, I couldn't keep up with even at the time you had the Pentium 2 and the 3 and the 4 and the
773980	782420	DX and so forth. I think around the Pentium 4 is when they went to 64 bit. Intel also tried
782420	791500	their hand at RISC processors. That's the i86, 860 and 960. Those are dead. Most of the other
791500	797840	ones, they actually made them for several decades, but then stopped doing so. And then there was also
797840	804480	the Itanium, that was another architecture they tried out, that was useful for a while and it's
804480	810020	also dead. Nowadays, it's the one on the next line, the the Atom and the Celeron, which are
810020	818680	the low power ones meant for like tablets and embedded systems. The Core 3579, which for laptops
818680	826220	and desktops and then the Xeon for servers. One thing that I've noticed in the last few years
826220	832060	with Intel, and maybe others of you have noticed the same thing, is that Intel is still pretty big
832060	842620	with desktops and laptops and servers, but that's it. They tried getting into smartphones,
842620	850040	that didn't go. They tried getting into the Arduino space, there was actually an Intel-based
850040	857400	Arduino called the 101, that didn't last. They tried getting into the single board computer like
857400	863380	the Raspberry Pi. I'm not sure how many people here remember the Minnow board that they put
863380	871780	together, that didn't last. They've tried other little IoT devices like the Edison, which I got
871780	880620	and several others. And it's like outside of desktops, servers, and laptops, Intel doesn't
880620	887280	exist, everything else is ARM. Every one of you who has a smartphone with you, that's an
887280	893070	ARM-based processor. Seriously, now you have anything that's not an ARM-based smartphone.
894260	904240	ARM is now being used by Apple for their systems. There is actually already, we're seeing ARM-based
904860	911820	laptops that'll run Windows. I'm hearing of ARM-based servers. So, I don't know what that
911820	917760	means. So, it's kind of interesting what's happening. Subbing back, I mentioned that
917760	924560	certain engineers at Intel had created the 4040 and 8080. Those were a gentleman by the name of
924560	932640	Federico Fagan, along with a Japanese engineer named Masatoshi Shima. They actually left Intel
932640	941240	to form Zilog, which is, and I'm not joking, it was picked because it's the last name and
941240	949400	integrated electronics. And they created the Z80, which was a much improved version of the 8080.
949400	957420	So improved that the Z80 in the market kind of displaced the 8080 from systems. And so,
957420	962320	everyone who was using what would have been an 8080-based system was using a Z80.
964180	970560	And until April of this year, they were still manufacturing the original Z80 chip
970560	977940	and selling it. That's not the end of the Z80. They have replacement chips such as the EZ80
978460	984080	you can still get. So, you can still get Z80 chips and use them. They tried their hand at
984080	991240	others. They did a Z800, which is a 16-bit processor. And then they went with a 32-bit
991240	997560	with a Z80,000. And if you're like, I never heard of those, well, it wasn't that successful.
999480	1005280	These are what we refer to, and I don't know if I, where I got the term from, is these are the
1005740	1012000	eights. That almost the processors use the letter eight, the number eight on it. The other set that
1012000	1018440	we talked about that's really major starts off with Motorola. They start off with the Z, the 6800
1018440	1026800	processor. It had some success. A lot of the early computer companies, MITS and MSCI,
1026800	1032980	did release 6800-based systems with an 8-bit processor, but it wasn't that big. They replaced
1032980	1041160	it with a more powerful 6809, which is an 816-based system. Probably its fame to fame is,
1041160	1047080	it was one used in the Tandy Color Computer, which was used for many years. And I was actually
1047080	1053480	really surprised to learn how much involvement Motorola had in actually the creation of the
1053480	1058280	Color Computer, which I never knew. I learned that, you know, like the last couple of years.
1059440	1065860	Then of course, much more famously is a 6800, sorry, 68000, which was of course used in the
1065860	1074880	Macintosh, the ST, the Commodore, many Unix workstations, Sega Genesis used it and so forth.
1074880	1081660	So a very, very popular processor. They then extended out, the 68000 is a 1632-bit
1081660	1089320	system. And then the full 32-bit was a 68020, or the 020, as we call it. And there was a
1089320	1096700	progression of those, the 020 to 060, which was used in subsequent Macintoshes, Amigas, and
1096700	1104600	Atari systems. Motorola also got into trying their hand at RISC processors with the 88000.
1105430	1117560	However, in the mid-90s, they got involved with the AIM consortium, which was Apple, IBM,
1117560	1129840	and Motorola to compete against the Windows, sorry, the Microsoft Intel duopoly. And they
1129840	1135920	were going to make, and part of that was the PowerPC. Now the PowerPC was a RISC-based
1135920	1142080	architecture from IBM, but the idea was that Motorola and IBM would create the chips.
1142960	1151220	Motorola, IBM, and Apple would all build PowerPC systems. Apple would move Macintosh to PowerPC
1151220	1157280	and so forth. The funny thing is, I was actually at IBM at that time and then went to Motorola.
1157280	1163440	So I got to see a lot of PowerPC-based systems that never got to market. There were some cool
1163440	1171260	ones, but that's just how it is. Going back to the 6800, as I said, that was Motorola's,
1171260	1176420	you know, 8-bit processor initially. And there were some problems with it. One thing they
1176420	1183620	discovered from feedback from the customers or potential customers was that one, they thought
1183620	1189460	it was just a little bit too powerful for what they needed. But more importantly, a lot of their
1189460	1197040	potential customers thought it was too expensive as a chip. Motorola was charging over $300 for a
1197040	1202280	chip. And you need to understand is that when you're building a system, yes, you know, your
1202280	1207380	CPU chip is important, but there's also other chips you need. And if it's already 300 bucks for
1207380	1212040	that CPU chip, and then add the others, then you have a kind of an expensive system. And that was
1212180	1217820	a problem. One of the engineers at Motorola by the name of Chuck Peddle was involved with that.
1217820	1224900	And he was like trying to work out a low cost alternative at Motorola for the 6800 until
1224900	1230920	basically Motorola told him to knock it off. Yeah. And so he wasn't happy by that. Some of those
1230920	1236740	people weren't happy. So they left Motorola. This is a group of people that included Chuck Peddle,
1236740	1242840	an associate by the name of Bill Minch. And they left Motorola and they went to the next company
1242840	1250240	on the slide there. So let me make a couple of things really clear about this company.
1250500	1256200	Because a lot of people get this wrong, get these two things wrong. I've seen it in YouTube channels,
1256200	1262400	on videos on YouTube that are incorrect. So first of all, is how do you say its name?
1263280	1272160	If you think it's MOS Technology, you're wrong. It is MOS Technology because you don't want to
1272160	1278800	confuse it with another company that exists at the time called MOS Tech, which I listed up there.
1278800	1284920	And that's very true because I know as a kid, well at that time, I was even confused myself.
1285080	1291700	The next thing that I've seen that several videos would claim is that Chuck Peddle and the other
1291700	1298960	guys from Motorola founded MOS Technology. No, they did not. MOS had already been in existence
1298960	1307460	for several years as a, again, as a memory company. They just joined the company. There,
1307460	1315600	they created two chips, the 6501 and the 6502. And if you're going, well, I've heard of the 6502.
1315720	1319780	I never heard of the 6501. Well, there's a reason. Let me explain it.
1320400	1326900	These two chips are logically, are mostly the same in terms of architecturally. It was meant
1326900	1331760	to be a scaled down version of 6800. I'll show, I'll show, I'll explain that shortly.
1332480	1339600	But there were some differences. The main difference is the 6501 was pin compatible
1340260	1347860	with the 6800. That means if you're, if you have a board that you designed to use the 6800,
1348660	1355600	you can then go get a 6501, which would be way, way, way cheaper and plop it in and off you,
1355600	1359580	off you run. You know, the op code would, would not be compatible. You would still have to
1359580	1364120	program it, but you would save your development time because you've got, you know, you've already
1364120	1370660	got a board that'll use it. Motorola didn't like that and they sued them. So they never brought
1370660	1377200	it to market. I don't understand how you can sue over that. I mean, you, you know, you copyright
1377200	1382000	your pin outs. I don't, I don't understand that because Intel didn't, as far as I know, never,
1382000	1389780	never, you know, sued Zilog about the Z80. So I don't understand that. So anyway, so the 6502 is
1389780	1393900	what came out. They did make a lot of different derivatives, things that were like slightly
1393900	1400120	different of it and so forth. MOS technology existed in a separate company. Commodore later
1400120	1406280	soon bought them out. So they would have a ready source of chips. So they also were the ones that
1406280	1410700	manufactured the specialized chips for the Commodores and the Amiga computers.
1412100	1418840	And unfortunately MOS went under when Commodore went under. However, one of those other guys I
1418840	1426060	mentioned, Bill Minch, he left Commodore and formed his own company called Western Design
1426060	1430940	Company. I had to be kind of careful with some of that. They say Western Digital, which is wrong.
1431520	1438280	And then he licensed the 6502 chip to make it because that was the common thing there is you'd
1438280	1444700	have multiple companies making chips. Then what he did was he teamed up with a couple other
1444700	1452720	companies that were making 6502 and they developed a new version of it called the 65CO2. The C means
1452720	1459580	it's made using CMOS. And it's an improved version of 6502. They fixed some bugs. They
1459580	1467760	added some opcodes and they still make them today. You want a 6502 chip today, you can still
1467760	1473800	buy them. They're a few bucks. You can go to like DigiKey and Mouser and those guys and you can still
1473800	1483780	get it. Shortly thereafter, he made a new version and that's the 65816, which is an 816 bit version
1483780	1494660	of the 6502. It can emulate fully the 6502 or can go, you know, an 816 bit processor. It's best
1494660	1501200	known and used has been in the Apple IIgs, which was not quite the last Apple II, but probably one
1501200	1508380	of the best ones. And it was used in the Super Nintendo. So if you use a Super Nintendo, guess
1508380	1515060	what, you use that. So that's... and these, as I said, the other group is compute processor, that's
1515060	1521300	the 8s. So these are the 6s. There are a few other companies. I just want to quickly mention Texas
1521300	1528960	Instrument. Huge in calculators, still big in calculators. But I was surprised to learn that
1528960	1535280	for a period of time, they actually made many computers. They took that architecture and made
1535420	1543920	a processor called the TMS9900, which they used in their computer called the TI99 slash 4,
1543920	1551240	which I remember it. It was an interesting computer. I'll say it that way.
1551240	1558500	The processor was an 816 processor. The problem was, you know, there's debate whether
1558500	1563960	it was kind of a crippled design because of infighting within the company. So it wasn't
1563960	1570840	very successful. Another company, which is I thought I should list more as a could have been
1570840	1579280	is National Semiconductor. They had a series of chips called the 32000. And I do know that
1579280	1587180	Atari looked at them, maybe Amiga looked at them as possibly the processor for the next generation.
1587180	1593140	But they didn't go with them and said they went with Motorola 68000. So who knows what
1593140	1598880	might have happened if that didn't go. The last one I'll mention is RCA. Yes,
1598880	1604920	yes, that's Radio Communications of America. They had an 8-bit processor called the 1802.
1605080	1609700	All I would say for that is take a look at that on Wikipedia. It's very, very interesting.
1609900	1617740	They actually use that in space probes. So kind of insane. Now, if you're like, well,
1617740	1621180	you forgot this company, you forgot that company. There are other companies out there.
1621180	1627940	A lot of them, all they do is they make chips. They don't design chips. Even today,
1627940	1634540	Apple designs their own software, their own silicon, the M1, 2, 3, and 4. But they don't
1634540	1639660	make it. They go to another company and say, here, here's a design, make us these chips.
1640460	1646920	ARM, you know, ARM is nothing more than, you know, a licensing company. They don't make ARM chips.
1646920	1652540	They design the ARM architecture. They give it to other companies like Broadcom and all the others,
1652540	1659500	and they make it. You know, this has a, you know, an ARM processor in it. ARM didn't make it.
1659520	1664640	They went to Broadcom and, you know, which is part, you know, tied to the Raspberry Pi people,
1664640	1670740	and they made it. That's just how it is. I thought I should make, I should mention this,
1670740	1673320	because a lot of people don't understand, again, about, you know, if you don't understand the
1673320	1677680	history of computers, when you think about the IBM PC, and they, some people think how, oh,
1677680	1683240	how radical it is, and, you know, standardized things, and that's just not quite the way it was.
1683240	1689400	In the early 70s, we did have a standard, which was, you know, many companies, and I mentioned
1689400	1694300	several, you know, Altair, MSCI, Fromenco, and a lot of these others, who built standard business
1694300	1702360	computers. They used, used the Z80 chip. They had what was called the S100 bus, which also known as
1702360	1709360	the Altair bus, which was an IEEE standard bus up until the 19, the mid 90s. People were still
1709360	1719340	making S100 based systems, and they used CPM as the operating system. But unfortunately, other than
1719340	1724320	that, there was, there was little standards that, you know, floppies, drives was all over the place.
1724320	1729660	You had eight, you know, eight inch, you had five and a quarter, you had, you know, you might not
1729660	1735240	know what the, what I mean by hard sector and soft sector, double sided, double density, you know,
1735240	1742180	is all a lot of complexity with these things. It was pretty crazy. Look into the CPM operating
1742180	1750220	system. Again, it's one of like, what might have been CP, we might have been using CPN instead of
1750220	1758740	MS-DOS, if certain things had not gone certain ways. It's either a, either a ridiculous story,
1758740	1765320	or a sad story, or however you want to look at it. So, it goes a little beyond what I wanted to
1765320	1773920	talk about here, but it is interesting. So, I don't know if people, I've been saying things like
1773920	1780500	8-bit, 16-bit, I've even said like 8, 16. Does anyone know, understand what the hell I'm saying
1780500	1787280	when I say these things? I see some hands raised. Okay, good, if that's the case, because a lot of
1787280	1796780	people don't. It's, it's ridiculous. To give you an example, Atari came out with one of their game
1796780	1805220	consoles toward the end called the Jaguar, which they toted as being a 64-bit system. And their,
1805740	1812720	their marketing tagline was, you know, do the math. But if you look at the system, and I'm
1812720	1820920	pretty positive that, no, it was not a 64-bit system. It was, I think, either 16 or 32. That's
1820920	1826540	the problem with these terminologies is that we as technology people, we understand that, oh,
1826540	1831300	this is an 8-bit system. This is a 16-bit. Oh, yeah, we have, we can have an 8, 16 that's in
1831300	1836740	between that's more powerful. But then you get to these marketing dweebs, and they just, you know,
1836740	1841140	do ridiculous things. I came across an article around this time where they talked about this
1841140	1846660	system. And they were claiming it was a 64-bit system. And I'm like, wait, wait a minute, I know
1846660	1852740	what the processor is in that system. It isn't. It isn't a 64-bit. And I'm reading the article,
1852740	1858420	and I'm realizing that the person who wrote it was like adding things together. Like, oh, well,
1858420	1863580	it's, you know, I'm taking the address bus and the data bus and this, and I'm adding them all
1863580	1869400	together. And it's 64-bit. So it's a 64-bit system. I'm like, no, that's not how it works.
1871140	1875880	I was also surprised to learn, because only because I never used these computers that we
1875880	1883020	also had 12 and 24-bit and 48-bit computers at one time, which I was surprised, but I never
1883580	1889280	used those. You know, when we talk about processors, these are the things we look at,
1889280	1892380	you know, clock speed. I remember people think that clock speed is real important,
1892380	1898680	and it's not as important as people think. If you go and watch these YouTube videos where
1898680	1902500	people are doing it, you know, they're looking at a new board and seeing how powerful it is,
1902500	1907040	they're not going and looking at the dang clock speed. They're going to run benchmarks to see,
1907040	1912980	oh, how fast can it do these things? So that's more important. But this is kind of interesting
1912980	1922000	is that the 6502 has a 0.43 versus a 68,000 of 0.75. If that's not clear, that means that the
1922000	1928680	6502 is actually faster than the 68,000. But that's also gets into logic of, you know, why
1929260	1933640	we went with RISC processors because, you know, they're more powerful because they're kind of
1933640	1939340	stripped down. The address bus is entering that tells us how much memory we can access.
1939340	1946760	Almost all 8-bit systems have a 24-bit address bus, which is why they only have 64K of memory.
1947440	1951600	The size and number of registers are kind of interesting because you got some CPUs that have
1951600	1957460	like one or two registers, and others would like multiple. If you don't understand what I mean by
1957580	1962220	a register, that's the storage space, if you will, within the processor. If you're going to do
1962220	1966600	anything, you have to pull it out of memory, pull it into the processor and work with it.
1966740	1972240	The data bus is what's important because that's the highway, the data highway within the computer
1972240	1975960	that data is moving around. If you got an 8-bit processor,
1975960	1980760	all these auxiliary chips need to be 8-bit. You can't be mixing and matching.
1982420	1988820	So I always like to throw this out, which is the IBM PC, which had all these capabilities.
1989420	1995540	How many people think this was a 16-bit system? How many people think this was an 8-bit system?
1995540	2003420	Okay, good. It's an 8-bit system because the 8088 processor is really an 8 16-bit processor.
2003420	2008100	So the PC is an 8-bit system, even though most people think it's 16 bits.
2009200	2015780	A lot of the... I really can't call them a clone in the early days, more of the IBM compatible.
2015900	2022740	They were full 16-bit because they either use the 8086 or the 8186 and so forth.
2022740	2027400	So it's actually kind of interesting. So let's get into, you know, these chips.
2027400	2032060	I talked about the 6800. These are the specs. I'm not going to read it.
2033000	2040560	That's actually what they look like. Please note it had 72 instructions, what we call opcode.
2041100	2046620	As I said, it was really cost $360. That was in 70s dollars.
2047120	2051080	Then over time, they reduced it to $179, then to $69.
2051360	2056360	I don't know how long they were making this, but what I've been able to see is they were
2056360	2064600	still making these for probably a couple of decades. Now, I was trying to find a similar
2064600	2070540	chart to what I show here for the 6502, but I thought that was useful because again,
2070540	2073700	people need to understand that when a company makes a processor,
2073700	2077920	they're making other chips to work with it. So in this case, you see that, you know,
2077920	2082920	you have the 68000 processor. In this case, they have a separate chip for the clock.
2083780	2089400	Then they have, of course, chips for ROM and RAM. And then they have a PIA, that's a peripheral
2089400	2094640	interface adapter. And then of course, a communications adapter. So the whole idea
2094640	2099440	was that if Motorola is not just selling you the processor, that's what true of all these companies,
2099440	2104920	they're selling you the complete set of chips for your system.
2107800	2112300	Architecturally, this is what we look at. We look at the inside with the registers,
2112300	2119820	you see the 6800 versus the 6502. The 6800 had two registers, they got rid of one. But
2119820	2124100	otherwise, they're pretty similar. They have index registers and stack registers and so forth.
2124100	2127980	Those are all needed inside the chip to do the work that it does.
2130320	2135640	So then we have the 6502, which of course, you see, it looks just the same. It's a four pin
2135640	2143900	dip, as it's called. It has only 55 instructions versus the 77 of the 6800.
2145020	2151760	So the funny thing is, I've actually read some stuff where people have claimed, I don't know
2151760	2159380	if that's true or not, is that the 6502 might be the first risk chip, because they reduced
2159380	2167600	the instruction set. I don't know who can make that determination. But that's what they did.
2168480	2175500	The original cost for this chip was $25. And one of the ways they were able to do this was not
2175500	2182440	just that it was a reduced design, was they were able to improve manufacturing. Now, as I understand
2182440	2189120	it, and those of you who have more knowledge, you can give me the accurate and tell me I got
2189120	2196800	this wrong. But as I understand it, the chip yield at that time was pretty lousy, as in you'd run a
2196940	2203900	make a bunch of chips, and 70% of them were bad, i.e. had to throw them away, which is why
2203900	2209100	chips are so costly, because the yield was so poor. But apparently someone that, you know,
2209100	2214300	one of the motor engineers that came to MOS had worked out a way, I don't know what it is, I'm
2214300	2221800	I'm not an engineer in this area, a way of fixing the chips after production, such that
2221800	2230480	they had a good yield going and suddenly going from being 70% bad to like 30% bad. And thus they
2230480	2236600	were able to sell the chips a lot cheaper. And it was because of this price that a couple of guys
2236600	2242860	by the name of Steve Jobs and Steve Wozniak looked at this and they're like, hey, this is the chip
2242860	2248580	that we can use to put together this little home computer we've been thinking about, which if you
2248580	2252480	don't know who those people are, those are the guys that created the Apple One and the Apple Two
2252480	2264140	and so forth. So what have been the 6502 been used for? A lot of stuff. Over in the UK, the
2264140	2272780	Acorn computers, the BBC Micro used it, the Apple One, the Two and the Three, and all the variations
2272780	2281460	used it. The Atari home game systems, the Atari 8-bit systems used it. Commodore used it for
2282140	2290900	all the pet models of VIC-20, 64 and so forth. The Nintendo used it. Others used it. And
2292040	2301160	Bender from Futurama used the 6502. Then of course, as I said, the 65816 chip was used in
2301160	2308040	the 2GS and the Super NES. And as I said, Western Design is still making and selling these chips.
2309460	2314300	That's all they do. As far as I know, that's pretty much what they manufacture. So clearly,
2314300	2318140	people are using these for a lot of embedded systems. Sadly, I don't know. They don't even say
2318140	2322380	specifically what they're being used for, but it's got to be used heavily.
2322840	2328860	Another interesting computer is the Kim one, which was created by Chuck Peddle at MOS. It was a
2328860	2336240	single board computer to kind of sell the 6502. It was so cheap that people bought that. Those are
2336240	2341460	very collectible. I've never seen one. So I'm not even sure. I think they were probably about yay
2341460	2350820	big. And if it's not clear, that keypad is basically hexadecimal numbers and some other
2350820	2358060	commands. So no, it's not a typewriter keyboard. I know that Commodore was still making these even
2358060	2365380	though after they bought out MOS. And then of course, some of the secondary sources for 652
2365380	2372180	made their own the SIM one and the AIM 65. And then I found this kind of interesting slide,
2372180	2376380	I thought was interesting. It showed all the different systems, the clones of it that popped
2376380	2383400	up. I actually brought one that I've been building that I need to try to fix, which is this is the
2383400	2389720	PAL one. So you can see it's pretty small. It's got a keypad and LED. There's something wrong
2389720	2394300	with it. I got to try to figure out how to fix this. But you know, if you come to me, if you
2394300	2400560	visit me at the hardware hacking village, you can have a chance to take a look at it and so forth.
2400560	2406220	That's why I brought it. So programming, which is always so much fun, which is
2407940	2414040	a semi-language program, which is either miserable or whatever. I think most people,
2414040	2417720	if you've done programming, you've probably done high level programming. I know I have, you know,
2417720	2423380	C and BASIC and Pascal and so forth. The way I look at it is these programs are written
2423930	2431660	to make it easier for us to put in, put down our ideas into how a program should work.
2431900	2438240	But the thing is, is they have to be then converted into the language of the machines,
2438240	2444160	which is machine code, which is, you know, binary coding and so forth. How good that is,
2444160	2449300	is unknown. That's why many people do still write, do a semi-language programming because
2450060	2454900	they can, you know, get down to the nitty gritty of the hardware and actually write to it.
2455220	2460120	Unfortunately, it's not really fun, but people do write it. I was actually surprised that
2460120	2466920	if you visit NoStarchPress here, they actually have a book on ARM semi-language programming.
2466920	2473500	And I think they also have one for x86 programming. So the thing is also with
2473500	2476600	program is when we do these higher level languages, there's things like, you know,
2476600	2481960	an if then statement, you know, if this condition has been met, then do this. If you got a for loop
2481960	2487840	or a while loop and all that, they don't, that doesn't exist in a semi-languages. You do have
2487840	2494720	things like a compare command, like, hey, do these two things compare, which is higher, which is
2494720	2500640	lower. But from that, then you have to build that logic of that if statement or the for loop and
2500640	2509900	this sort of stuff. So it becomes a little bit more complex. So this is what 6502 looks like.
2509900	2515580	And it's, I guess, three letter coding. And these are some of the ones in like, there's an add with
2515580	2519900	carry, there's the compare, there's the load the accumulator, that means you're grabbing
2522060	2526300	a number out of memory and pulling the accumulator so you can do math on it.
2527660	2535780	The 6502 has only two math, math commands, it can add and it can subtract. And that's it.
2536060	2541720	If you want to do multiply and divide, you're going to have to use add and subtract.
2543500	2549680	So, and of course, if you're, have any sense, you're going to, you're going to comment your code.
2549680	2553460	Otherwise, we're going to look at your semi-language, your semi-coding like, I don't know what the hell
2553460	2560220	you're doing here. If you would like to try out 6502 semi-language, I found this really cool
2560220	2565820	website. It uses JavaScript. So you can actually do a semi-language programming there. And it's
2565820	2569840	both not, it's not just, it's not just like, oh, here's a window to do a semi-language. It is done
2569840	2574220	as a tutorial where you can go on there and you can write, you know, put in the code, you can see
2574220	2578860	what happens and so forth. And also it is here with this other one, which is an online tutorial.
2578860	2584460	Yeah. Feel free to take pictures of these. These are really good. So this is what a semi-language
2584460	2594160	looks like. The left side is a semi-language to do a bubble sort. And then on the right side is
2594160	2601540	bubble sort in, I think, C. So that looks like really, really fun things to write.
2602280	2607300	Which is probably why I don't recall doing a whole lot of, a lot of semi-language even in
2607300	2614540	college. Really simple stuff. Okay. This is the point where I would recommend you might want to
2614540	2618500	pull your phones out because I'm going to be giving a lot of resources. You are totally free
2618500	2625860	to take pictures. That's why I do this. I'm always the mind of, I'm here to help educate you and show
2625860	2635880	you where you can go next after this. So websites right at the top, 6502.org is like the place for
2635880	2644360	anything about the 6502. There's Buku resources, emulators, software sources, hardware, tutorials,
2644360	2649440	and everything like that. The other one is a neat one that I discovered. They have a lot of pages on
2649440	2656620	the 6502 and so forth. And a lot on the CHEM 1, including PDF scans of a lot of the documentation,
2656620	2662060	which I thought was really, really cool. The last one is the Internet Archive.
2662060	2666980	If you are interested in looking for books and you can't find them or they're really,
2666980	2674140	really expensive, try going there and searching. You can probably find them as PDF scan. So all
2674140	2678560	the books I talk about, you can probably find them there if you don't want them. Me, I want
2678560	2687620	physical books. That's just me. So I'm not sure if you guys are familiar with Adam Osborne,
2687620	2692600	Osborne Computer. But one of the things that I liked about him is he had his own publishing
2692600	2699240	company, which then became part of McGraw-Hill, as Osborne McGraw-Hill. And it was one of my
2699240	2705650	favorite sources for books. So he did a series called An Introduction to Microcomputers that had
2707180	2714160	four volumes numbered zero through three. But I only recommend you look at getting the first two.
2714160	2718620	You can get them really inexpensive off of like Amazon and eBay.
2718760	2723620	Make sure you get the last edition. But those are really, really good introduction to this.
2725060	2731000	I don't have volume two and three. People ask for stupid money for it and I'm like, sorry.
2731100	2737680	But if you really are into the hardware of microprocessors, the last two books you might
2737680	2742920	want to get, I actually got them. They're literally about two inches thick. They're
2742920	2745440	not going to tell you how to program these, but they're going to tell you about all the
2745440	2750760	electronics and the hardware of these processors. To me, that was like really, really cool.
2750920	2758960	But I'm a nerd. So what can you say? When it comes to a semi-language program,
2758960	2767000	one of my two authors is Lance Leventhal, who did all these things through Osborne McGraw-Hill.
2767280	2772560	He did the 65021, which had a second edition. That's what it looks like. He also did an
2772560	2778820	semi-language subroutine series, which I was not aware of, but I got the 65021 recently.
2779180	2788080	His 68000, I know I used that in college, but he did others. He did a 6800, a 6809,
2788080	2796640	the Z8000, the 8085, and so forth, as well as a semi-language subroutine for some of these ones.
2796640	2804900	Please be advised that people are asking stupid money for these, but if you go on lulu.com,
2804900	2811700	someone has made available his Z80 and the first edition of the 6502 book there on Lulu,
2811700	2817500	and I think they cost about 20 bucks or 30. Yeah, I think about 20 bucks or 30 bucks.
2817500	2823480	So if you don't want to buy a used copy, go there. The other guy is Rodney Zaks,
2823480	2830040	who founded Cybex Books, which is still around, but as an imprint of Wiley. He did actually a
2830040	2837820	four-book series on the 6502. I know I used his 6502 book in college. The last one is the fourth
2837820	2844140	edition with that really cool cover. I have most of the series. I'm trying to find the application
2844140	2849700	book, but I want that cover. But he's got a really great Z80 book that I want to get. Again,
2849700	2855800	I'm not going to pay the stupid money people are asking for, but he's another good one.
2855800	2865860	I found on Tindy that someone had reprinted these MOS books on the Chem 1. I actually
2865860	2870820	brought one of them with me that you guys can take a look at. I got the user manual.
2871500	2877020	But he had these on Tindy. He might be running out. So if you want them, get them while the
2877020	2884620	is good. Other books are these on the 65816. I've had the Osborne one, but I've never done
2884620	2890900	programming. The last one was actually from Brady, but now Western Design has reprinted it so you can
2890900	2898880	easily get it off of Amazon. But I've had people... I've read stuff that people don't think it's that
2898880	2904460	good of a book for a semi-language program. So just be aware. I have not got it myself,
2904460	2909340	so I cannot speak. So you want to actually play around and program with these. Well,
2909340	2914800	you have various options. It's kind of depending on what you want. Do you want hardware or are you
2914800	2921080	happy with software or something in between? That's up to you. There are many communities
2921080	2925360	of fans that still keep these things going, and they're actually creating new stuff.
2926220	2934440	I can actually have Wi-Fi on my Atari 8-bits. I can use compact flash and SD cards for storage.
2934460	2940020	Because of the work that these people have done. So if you want, you can go get the classic 8-bit.
2940020	2945820	You can go on eBay and take a look. Just be aware that sometimes they work, sometimes they don't.
2945820	2949100	Most of the buyers are pretty honest. They'll say like, no, this doesn't work. You're getting
2949100	2953100	this for parts or whatever. You might need to do some retrobriting, which is to clean up the
2953100	2964440	coloring and so forth. But I've gotten an 800, a 1200XL, and a 130XE off of eBay for what I
2964440	2975060	thought was reasonable prices. So just be aware. If you want brand new, check out this.
2975740	2983060	This is an effort of a guy by the name of the 8-bit guy. It's a brand new 6502-based system.
2983060	2989580	They are currently making and selling developer systems that cost about 300 bucks. They're still
2989580	2995840	having people developing software and so forth. I think it's kind of a cool project,
2995840	3002340	so take a look at it. Like I said, you can do Chem-1 clones. Like I said, this is a Chem-1 clone.
3002460	3008540	I got this off of Tendy and I got the extra stuff. I'm trying to get this thing to work and so forth.
3010240	3014760	If you want different, there's all other. If you go into Tendy and just search for 6502,
3014760	3019520	you can find out there's the Pico computer. I actually brought mine with me. I still got
3019520	3025420	to get that working. The Roscoe is kind of interesting. It's real old school computer,
3025420	3029220	that's what it stands for, or you can do the other one. But there's others that are there
3029220	3034180	on Tendy. It's like what you want. Do you want a computer where you're going to have to basically
3034180	3038340	hook it to your laptop and send a code and whatnot? Or do you want one that's more of
3038440	3043020	a standalone computer with a keyboard and screen? There's different options.
3043260	3048240	If you don't want that, you can go hardware alternatives. One is emulation through what's
3048240	3054220	called Field Programmable Gate Array. Look into the MiSTer project, where people are
3055140	3062940	emulating all kinds of retro computers in this MiSTer system. You might have seen the various
3062940	3069920	minis that have been hit in the market. There has been the Atari 400 mini, and the Atari 2600,
3069920	3075140	and the Commodore mini, and the Amiga mini, and the Nintendo mini, and the Sega mini,
3075140	3081760	and I'm probably missing some, and they're all done with FPGA. Then there's this interesting one,
3081760	3087560	which is the Mega 65 from Germany, which they have basically recreated what would have been
3087560	3093580	Commodore's last 8-bit system using FPGA. I thought about getting it until I looked at the price,
3093580	3101360	and it's like, not yet. And if you just want software emulation, again, check out the 6502
3101360	3109520	or for that. Videos, there's a lot of cool videos out there. The 8-bit guy is a neat guy. He's the
3109520	3116140	guy behind the Commander X16. LowSpecGamer has some neat videos. The first one is on the 6502.
3116240	3122980	He did one of the Z80. Recommend you look up his one on the ARM. You will then learn why
3123500	3132880	you have the 6502 to thank for ARM processors. And also look for videos with Chuck Peddle,
3132880	3138000	Bill Minch, Rodney Zaks, and all these other guys. They're really, really cool. You want events and
3138000	3143240	groups, there's the Vintage Computer Federation, and I was really shocked that they have these
3143240	3149900	all around the country as well as overseas. And look for groups in your area that are into
3150400	3156420	retrocomputing. So if you want to contact me, that's my Twitter handle. I am on the
3157020	3161400	DEF CON Discord as well as there's one for the makers community. So if you want to reach out
3161400	3168200	to me, that's great. That's my LinkedIn. I would recommend you, there's a retro tech community
3169440	3174920	over there someplace that you can drop by then. I was disappointed they had no Atari stuff.
3174920	3179440	Sorry, I'm an Atarian. And there's also the Hardware Hacking Village. After this, I'm going
3179440	3184320	to head over to the Hardware Hacking Village. I'll have a few of my things with me. You want to
3184320	3187880	talk with me and tell me I'm an idiot. I don't know what the hell I'm talking about. I shouldn't
3187880	3194180	have been here. Or what have you or you have questions and comments and whatnot. I'm happy
3194180	3200460	to hang out there and you can see you can, I'll even let you touch my stuff. So thank you very
3200460	3204300	much and I will see you all later.
