139 points · by klelatti · 2y ago · 86 comments
(The patent office messed up and swapped drawings; there's a slush maker patent with a diagram showing instruction decoder, registers, and so forth.)
What totally confused me at the time though were program listings in assembly (I couldn't figure out how you were meant to type those in) and especially the discussions of OS-9. I didn't know what it was, and even in some cases where I found a Radio Shack with the Tandy OS-9 distro, it was like 100$ and didn't have any games as near as I could tell, so I couldn't figure out why you would pay so much for it. Also I lived in a rural location where even the nearest 6809-oriented BBS would have meant expensive toll calls, so I missed the opportunity to learn that way.
Anyway skip forward, I started to college in 1993, immediately found Usenet, then Linux, and spent the next 30 years or so steeped in that world. Every so often I would go back and do a little reading on the 6809 world, but because I had never really understood most of what was going on, I didn't have a great deal of nostalgia.
Finally though, a few weeks ago I came across a link (maybe here?) to a release of the VCC emulator, and although I had played with a couple of 6809 emulators before, I hadn't really gone down the rathole of finding the MultiPak roms, or hard disk controller paks, etc. I found a couple of hard drive images, one from the NitrOS9 Ease of Use project, and another random NitrOS9 image packed with old software. What was particularly fascinating to me was the NitrOS9 source itself- since my introduction to Unix was in the 486-MMU-having-era, to see what people were able to do with a 6809 and an assembler was just a joy to read and understand.
I feel like probably everything that has ever needed doing on a 6809 has probably been done, and I've done enough 8 bit assembly stuff in school that I don't have a powerful urge to go back and make something myself, but boy what a feeling of having come full circle when I cd'd into the NitrOS9 source directory and found a makefile of all things! I feel so fortunate to have been able to live through a time of such explosive growth and change, and hope to get the chance to do a little OS-9 hacking when I retire some day :)
One use of all that was to fix the CoCo's clone of the arcade video game Galaxian, called Galactic Attack[1]. The CoCo had analog joysticks, and the writer of Galactic Attack thought it would be neat to have the ship you control track the X axis of the joystick. Except it would be unfair to whip the joystick from one side of the screen to the other while avoiding the enemy shots. So in the Galactic Attack game, the player ship lazily tracked the position of the joystick, moving slowly to the position of the stick. In practice this made the player ship hard (for me) to control and felt unresponsive. And it made it hard to hold still in the case an enemy bomb was close by.
I had already modified one of my Atari 2600 joysticks to work on the CoCo (probably a Rainbow magazine article). So what I did next was to modify the joystick routine to just create three zones (move left, dead zone, move right) for the X axis values. The game may or may not have been written with all relative branches (instead of absolute), so I might have had to fix that too.
Good times.
Eventually, I got a hold of the 6800 instruction set manual. It had what, 40 instructions? Small enough for me to "get" it. All of a sudden, it all made sense.
So I have a soft spot for the good ole' 6800! I eventually designed, built, and programmed my own 6800 single board computer. I had a blast with that project.
I was most proud of noticing that on the 8080 there is some sort of halt signal pin, and a separate pause signal pin (might not have those names right, maybe it was memory ready?). Anyway, one of them detected the leading edge and the other detected the trailing edge of the clock, so I was able to rig up a pushbutton for single stepping the processor without having to figure out how to make a pushbutton debouncer circuit which I was having a lot of trouble with...
good times
How old were you if I may ask?
Just a few months when I got to wire wrapping. I was somewhat astonished when it worked, I thought I'd have more problems, but I did check and recheck all my work as I went because I was fearful.
I had an older relative who had a job testing components (beyond plugging them in and looking at the lights he didn't know much about them) and he showed me around the lab where he worked (they were doing components for the Fidelity chess challenger) and gave me a bunch of drop-out chips that had failed the tests, including 2114(?) static ram chips and a couple of 8080s. I don't know what tests they failed, but they worked for me.
http://zoom.interoscitor.com/PetersonEnterprises/Consulting/...
It's pretty tedious to program it since the I/O is all in binary and you have to use toggle switches to key in binary machine code.
Both are fine processors, the 6502 was technically not quite where the 6800 was but nothing that you couldn't solve using a couple of macros (and a Macro assembler was table stakes for anybody serious enough to go after this stuff and so you rolled your own because buying one was prohibitively expensive).
The 6502 had an edge in available software and books, especially once the Commodore took hold. Community mattered, even back then! The 6800 was laid out much more sensible from an instruction set perspective, the term used is 'orthogonality', if you know the rules you can predict the existence of a particular mnemonic and parameters easily, whereas with the 6502 it was mostly a matter of learning it all by heart. Easy to do because both were tiny in comparison with todays CPUs. I suspect that's where the GP's nightmare comment relates to, the fact that the 6502 always felt like it could have been so much better if they had spent a bit more time on this subject.
The 6800, it's more modern and upgraded brother, the 6809 and the much larger 68000 all were much more logical and predictable. The Z80 became widespread due to - amongst others - Sinclair with the ZX-80 and ZX-81, and Radio Shack using them in their line of TRS-80 micro computers, and a large number of people cut their teeth on those. I had access to them at work (I worked for Tandy on Saturdays, which was the European name for RS) and never found that chip much to my liking, but it was the engine behind the CP/M software environment.
Programming in assembler (or even directly in machine code) is an exercise in abstraction to the point that you have to have a very good memory and to be able to limit the scope of what you are doing to be able to make any progress at all. But it beat the pants of BASIC (the most common alternative on micro computers at the time) in terms of speed and control so if you wanted to do anything serious with those machines that's how you did it.
The 6502 had awesome hardware support in terms of peripherals and the machines you found it in (with the BBC Micro model 'B' as the pinnacle of home computing at the time) and the 6800/6809 had an edge if you wanted to roll your own system from scratch. Various bus based systems (S-100, Eurocards, VME) gave you the option to build systems and to swap out the CPU with something else. The BBC again led the way here by speccing a bus called 'the Tube' (a pun on the London underground) that allowed you to build specialist co-processors that used the original BBC as an I/O processor.
I completely agree with your comment about "community matters". You could really see this in the demo scene for the C64 (as well as the games programming world).
My friend's older brother had a ZX Spectrum, which I lusted after (mostly for the games). I was still too young to really "get" assembly, and it was only really when I got to the end of high school that I got into it.
BBCs were very rare here in Aus, but I did pore over a magazine column that featured them. I vaguely remember the Tube being mentioned.
https://spectrum.ieee.org/q-a-with-co-creator-of-the-6502-pr...
Oh I see you are talking about the 16 bit stack pointer and probably the 16 bit Index register. Fair enough on an 16 bit address bus those are fairly convenient but it's interesting that it just tends to mean if you use SOA or AOS for you data design. I don't think 6502 is really much harder to code than 6800 or 6809.
The 6800's larger register set (yes, 16-bit stack pointer and index registers, but also dual accumulators), richer instruction set, more consistent use of status flags, and hardware features like DMA support with no additional hardware/not a special version of the processor are what makes it more of a "real processor" to me.
I still hack on both, though, so I'm not trying to say the 6502 is some kinda turd no one should program :P
Not really, I think. Doesn’t it directly follow from (FTA)b“Motorola’s 700 page manual for the system even showed how to use the 6800 family to create a complete ‘Point-of-Sale’ terminal”?
In the 1970s, how would you connect that to a computer without a modem?
What shops would have a that in the (air-conditioned) back room?
Motorola dropped prices on the 6800 in response, but they still couldn't match MOS's pricing.
The result of that though is an excellent example of 'software eating the world' and allowed for a whole pile of other tricks to be pulled (in software!) that would have required more circuitry in other computers. For instance, the tape interface used it, as well as the joystick interface. If you were a bit more adventurous you could use it for analog in as well as analog out.
Remember, you can also spend all day exploiting zero page mode in the 6800, but you'll never be able to move the 6502's stack :P
That folks turned out complex, feature-complete operating systems several times on 6502 is as impressive as those things being done on e.g. the DEC PDP-8, IMO. Doubly so when you consider that the 6502 hackers were often just that, hackers and hobbyists without an industrial-grade budget.
Bill Mensch tells IEEE Spectrum directly that the 6502 was designed to compete with the Intel 4040, and specifically says not the 8080 or 6800. I don't know how much more "primary" a reference can get, folks.
1974 - 6800 / 8080
1975 - 6502
1976 - Z80
1977 - 8085
1978 - 6809 / 8086
1979 - 68000 / 8088 / Z8000