Hacker News new | ask | show | jobs
by rbehrends 18 days ago
$XX was a form of hex code notation, used by the 6502 and Motorola processors assembly language. But not universal: in 8080 or Z80 assembly, hex values were denoted by a `H` suffix (this required adding a `0` at the front if the leading digit was in the A-F range to distinguish them from idenitifiers).
1 comments

Thanks for the answer! Wow, the Assembly from back then seems very different from today's - I'm learning it In uni currently. I'll have to ask my teacher
Here's the reference card I learned assembler from: https://colorcomputerarchive.com/repo/Documents/Datasheets/M...

I still have it in a box, as well as a working sample of the computer in my collection.

I've sent it to my teacher along with the the link to the thread!! I know he had a C64 as first computer and from my quick search it wasn't that long after your Motorola... Bet he'll like that!!
While the C64 (1982) came out a two years after my Coco (1980), the CPU inside the C64 was a variant of the MOS 6502 (1976), launched 3 years earlier than the Motorola 6809 (1979) in my Coco and was used in the Apple II (1977).

The 6502 was a feature reduced and much cheaper pin-compatible competitor inspired by the 6809's predecessor, the Motorola 6800 (1974). While the 6809 was 2x-3x more expensive than the 6502, it was (and still is) widely considered the most advanced of all the late-70s / 80s-era 8-bit CPUs with an especially elegant, orthogonal ISA supporting position independent, re-entrant, multitasking code with dual system/user stacks, layered interrupts and powerful indirect addressing modes.

One little known bit of history is the 6809 was powerful enough that Jef Raskin's team at Apple used the 6809 for the initial Macintosh prototypes before Steve Jobs managed to cut a steep discount deal with Motorola on the workstation-priced 68000 CPU. The 6809 ISA can be considered almost a "68000 Jr", and the 680x0 family went on to power the Mac, Amiga, Atari ST and Sun, Apollo, and HP workstations throughout the 80s and early 90s. Had I known how inferior the Coco was in gaming, as it had no graphics hardware like sprites, tiles or scrolling, I wouldn't have chosen it. Fortunately, it was also the only widely available home computer (in the US) with a CPU ISA that would prepare me for the multitasking future.

One day I'll have to try one of those old devices! It's so interesting, how powerful it was for that time and how it lead to today's technology...

Also thinking they went to the Moon with that! It proves how powerful such CPUs were!

Oh, yeah... didn't even think of that. Sorry!

Since I was entirely self-taught on that first computer with zero prior education and no books other than the included manuals and a 6809 CPU reference card a very kind sales rep at Motorola mailed to me for free, I learned hex representation that way. It actually still seems a bit weird when I see other hex notations. :-)

I believe it's not the first time I've read someone saying that a Motorola sales rep mailed them something like this! Also, nowadays you wouldn't associate Motorola to something computer related... I can remember Motorola phones being more popular before the smart phone era but something related to computer, nope
> nowadays you wouldn't associate Motorola to something computer related...

You kids are making me feel old! :-) The next CPU Motorola launched after the 8/16 bit 6809 was the first member of their 16/32 bit family, the legendary 68000. For over 15 years the 680x0 CPU family powered the: Macintosh, Amiga, Atari ST, and Sun, Apollo & HP workstations. Motorola wasn't just a footnote, they were #2 to Intel for decades and almost beat them more than once. Today, as far as computing devices go, it's "If the CPU isn't Intel x86, it's an ARM" but for decades it was "If the CPU isn't Intel, it's a Motorola."

By the mid-90s, in a last push to beat Intel's forthcoming new 32-bit Pentium, Motorola, IBM and Apple all joined to create a single new 32-bit CPU, the PowerPC. The battle was close but Intel's x86 momentum, singular focus and superior fabs finally beat Motorola. By the late 90s, as Intel was engaged in mortal combat to beat Motorola, they missed the rise of ARM, their next mortal enemy.

So interesting!

And, hey, the kid here was born mid-90s so I was a little bit too young to really know about Motorola's CPUs :')

But to be fair until recently I didn't know much about CPUs, Assembly and all!

> the kid here was born mid-90s

I was just trying to live up to the cranky OG 'Gray Beard' persona of calling everyone under 30 "a kid." :-)

It is kind of a shock to hear though because "Intel vs Motorola" was how the personal computer world was divided for so long. Kind of like someone saying "one doesn't think of Pepsi as being involved in cola beverages."

These days it's kind of edgy and cool you're thinking about CPU instructions and low-level architecture at all. I'm obviously a bit biased but I think there's something powerful about understanding a domain from first principles. It tends to scale and be resilient in ways most surface knowledge isn't. No matter how complex modern systems become, I can always map my mental model back to a single ground truth. Somewhere under all those layers of abstraction, registers are executing instructions which do things to values and addresses over busses at the speed of clocks.

The intuitive understanding I gained as a purely self-taught assembly language programmer and hacker with zero computer classes and no college degree scaled beyond stuffing hand-duped floppies into baggies and selling 28 of them at the local computer club for $10 ea. That first $280 took me to founding a company and over several years growing it to a dozen employees and tens of thousands of customers, then doing it twice again, scaling to hundreds of employees, hundreds of thousands of customers and a shelf full of Product of the Year awards. From there I sold my third startup to a Fortune 500 Valley tech giant and ended up running new product creation for a global org with tens of thousands of employees, thousands of engineers, hundreds of PhD researchers, millions of customers and billions in sales.

So... yeah, deep understanding from first principles seems to scale well. Highly recommended. :-)