Live data from Hacker News

Motorola 6800

en.wikipedia.org

51–60 of 127 posts

Re: Motorola 6800

#51
post #13

Earlier quoted context omitted.

Well, it was the predecessor :)

There was the 6809 in between. I remember BYTE magazine's cover story, "A Microprocessor for the Revolution". Well, not quite, as it turned out! :)

I never got to use the 6800, but did use both the 6809 and 68000 in assembler. Both were a joy to work with.

Re: Motorola 6800

#52

Earlier quoted context omitted.

> "Test condition, decrement, and branch". All in one instruction The Z80 had that too - DJNZ (Decrement and Jump if Not Zero). Standard way of writing loops.

The 8080 lacked this, but even though the 8086 was more or less based on the 8080, this probably inspired the 8086 LOOPNZ instruction. Same idea, hardcoded to use the CX register instead of B on the Z80. The unoffical nicknames for the AX, BX, CX, DX were accumulator, base, count, and data. CX was used for the count for all looping and string move instructions. Similarly, BX was special purpose for indirect operation…

AX/CX/DX/BX (in machine code this is the order from 000 to 011) were intended as equivalent to AF/BC/DE/HL.

Re: Motorola 6800

#53
post #45

Earlier quoted context omitted.

$200k sounds like such a small number, but it was the dropping of the offending chip that was the gotcha.

Well...200k in 1975 $'s. And MOS was a startup, basically. So not a trivial amount. But yeah, a big part of the initial pitch was "you can use your same hardware design but replace the $300 CPU with our $25 CPU".

I knew a guy who tried to build a multi processor system with 16 6800s. Made a mistake with the power supply and ended up frying all of them.

Re: Motorola 6800

#54

Earlier quoted context omitted.

At our company we still use a MC68HC11 for an industrial device.

Be careful -- they're rapidly going obsolete. No one wants to fab old EPROM processes, and no one wants to package PLCCs anymore. If it's neither of those, I think you've got a bit more time. There are "compatibles" out there, and some of them are very good indeed, but they're not without their hassles.

I think I have a 68HC11 sitting around that I picked up for a project and never used. I wonder if it's worth anything?

Re: Motorola 6800

#55
post #13

Earlier quoted context omitted.

Well, it was the predecessor :)

There was the 6809 in between. I remember BYTE magazine's cover story, "A Microprocessor for the Revolution". Well, not quite, as it turned out! :)

The 6809 had some hobbyist/consumer prominence on this side of the pond in the TRS-80 CoCo - and some European similars. And there was a multitasking OS written for it - OS-9.

OS-9 has an interesting history in its own right. It was ported to a wide range of subsequent architectures. All sorts of applications - Fairlight synths, Philips CD-i, most of the traffic lights in the US in the 80s and 90s to name a few.

Re: Motorola 6800

#56

With the optics of _compiled_ code, how do the various 8-bitters stack up? (6809/6811, 65C02, Z80, H8, ...)? One would have to account for the frequency allowed by the ISA at iso-technologies (which makes including AVR somewhat tricky). I only have experience with Z80 and 65C02 and I believe the consensus is that a 4 MHz Z80 beats a 2 MHz 65C02, but neither is a particularly nice compiler target.

Just for modern perspective... you can use SDCC. It's an open-source optimizing C compiler targeting small microprocessors like the Z80 and various others. The project itself is terribly run--the maintainers recently pushed out an ABI change which broke everyone's code, but released it as a minor version bump. This ABI change did speed up the code, but that's small consolation to anyone who ended up with broken code.

IMO the Z80 is a lot nicer compiler target than the 6502, because the stack pointer is 16-bit and it's much easier to use the stack in general.

There are a couple C compilers for 6502 (like cc65 and WDC's C compiler) but they're not quite as good as SDCC, as far as I can tell. They're also not as actively maintained.

Re: Motorola 6800

#57
post #36
post #25

Serious question, why is this on Hacker News? is it a classic of some sort?

The 6800 definitely is a classic, yes. The classics included at least 6800, 6502, 8080, and Z80. (To some extent 8085, but as an "expanded" 8080 the Z80 dominated.) The four of them powered the most iconic systems at the start of the microprocessor "takeover" at the end of the seventies (at the same time as I entered my electronics education). The 6800 was kind of left behind by the others eventually, but was used in…

Was the 8085 ever used much as a microcomputer CPU? I've seen it as an embedded CPU, but I don't recall it getting much run as a general-purpose CPU.

Re: Motorola 6800

#58
post #9

I built a small multitasking kernel with a friend with a 68000 (m68000) in college. We implemented it on breadboards, I think with 30 or so feet of jumpers [0]. I had very little prior embedded experience, so it was trial by fire. It was a wonderful introduction to how kernels work (or at least concurrency and scheduling) at their most basic level, without having to deal with the complexity of virtual address spaces,…

> We implemented it on breadboards, I think with 30 or so feet of jumpers [0]...

> [0] - https://i.imgur.com/MKD7wTv.jpg

Based on your description, I expected to see a picture of 30 feet of breadboards filled with jumpers (https://en.wikipedia.org/wiki/Jumper_(computing)), maybe used as ROM or something. Your actual project was unfortunately much less ridiculous.

Re: Motorola 6800

#59
post #5

With the optics of _compiled_ code, how do the various 8-bitters stack up? (6809/6811, 65C02, Z80, H8, ...)? One would have to account for the frequency allowed by the ISA at iso-technologies (which makes including AVR somewhat tricky). I only have experience with Z80 and 65C02 and I believe the consensus is that a 4 MHz Z80 beats a 2 MHz 65C02, but neither is a particularly nice compiler target.

Some of that can be gleaned from this benchmark, published in Byte, in 1981: https://en.wikipedia.org/wiki/Byte_Sieve Results for a few 8/16 bit processors are here (and on subsequent pages): https://archive.org/details/byte-magazine-1981-09/page/n193/...

I ran the C version of this benchmark using llvm-mos's Clang for the 6502. The results:

21.4 seconds 5793 bytes

Which is middle of thepack for the Z80 benchmarks, but well below the 6502 ones. We're also using a slightly tweaked embedded printf written in C, so this could probably be improved somewhat there, sans any compiler changes.

Re: Motorola 6800

#60
post #51

Earlier quoted context omitted.

There was the 6809 in between. I remember BYTE magazine's cover story, "A Microprocessor for the Revolution". Well, not quite, as it turned out! :)

I never got to use the 6800, but did use both the 6809 and 68000 in assembler. Both were a joy to work with.

I never encountered the 6800, but I did talk to people in the 90's who thought the 6800 was pretty bad and the 6809 pretty good.

The 68000 is really a different class of CPU entirely, so I'm not sure why folks are discussing it here. Only the name is similar.

Post reply on HN