News for hackers. Stuff that matters.
Re:How did Woz write the Apple 1 BASIC before building the c... by valeena on Saturday November 14, 2026 @09:03PM (#50503265)
I'm sorry I don't understand - you had to buy instructions?
Re:How did Woz write the Apple 1 BASIC before building the c... by totallymike on Saturday November 14, 2026 @09:18PM (#50503335)
$nn was a common way to write numeric literals in assembly languages, to differentiate from memory addresses or other uses for values
Re:How did Woz write the Apple 1 BASIC before building the c... by valeena on Saturday November 14, 2026 @10:12PM (#50503633)
Ah ok, it does make sense now! Super interesting to read about the devices from back then and the difference from the then-Assembly and the one we use nowadays
Re:How did Woz write the Apple 1 BASIC before building the c... by fweimer on Sunday November 15, 2026 @03:19PM (#50510284)
$ is still used today for AT&T syntax x86-64 assembly. It just means that a constant follows. If it's in hexadecimal, it will still need the 0x prefix.

I think Turbo Pascal used $ as a prefix for hexadecimal literals.

Re:How did Woz write the Apple 1 BASIC before building the c... by rbehrends on Saturday November 14, 2026 @09:27PM (#50503383)
$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).
Re:How did Woz write the Apple 1 BASIC before building the c... by valeena on Saturday November 14, 2026 @10:11PM (#50503621)
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
Re:How did Woz write the Apple 1 BASIC before building the c... by mrandish on Saturday November 14, 2026 @11:15PM (#50503965)
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. :-)

Re:How did Woz write the Apple 1 BASIC before building the c... by valeena on Sunday November 15, 2026 @08:07AM (#50506669)
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
Re:How did Woz write the Apple 1 BASIC before building the c... by mrandish on Sunday November 15, 2026 @03:56PM (#50510658)
> 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 Intel to be the dominant ISA a few times. Today, as far as computing devices go, it's "If the CPU isn't Intel/AMD, it's an ARM" but for decades before that it was "If the CPU isn't Intel, it's 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 finally beat Motorola, they missed the rise of ARM, their next mortal enemy.

Re:How did Woz write the Apple 1 BASIC before building the c... by valeena on Sunday November 15, 2026 @05:01PM (#50511303)
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!

Re:How did Woz write the Apple 1 BASIC before building the c... by mrandish on Sunday November 15, 2026 @06:05PM (#50511849)
> 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 / 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 and abstract modern systems become, I can always map my mental model back to the ground truth that 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 them at the local computer club. That took me to founding my first company and 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 femployees, thousands of engineers, hundreds of PhD researchers, millions of customers and billions in sales.

So... yeah, deep understanding from first principles scales. Highly recommended. :-)

Re:How did Woz write the Apple 1 BASIC before building the c... by mrandish on Sunday November 15, 2026 @12:13AM (#50504198)
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.

Re:How did Woz write the Apple 1 BASIC before building the c... by valeena on Sunday November 15, 2026 @08:18AM (#50506735)
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!!
Re:How did Woz write the Apple 1 BASIC before building the c... by mrandish on Sunday November 15, 2026 @02:56PM (#50510098)
While the C64 came out a couple years after my Coco, the CPU inside it was a variant of the MOS 6502 which launched 3 years earlier than the Motorola 6809 and was used in the Apple II (1977).

The 6502 was a feature reduced and much cheaper near-clone of the 6809's predecessor, the Motorola 6800. 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-70's/early 80s 8-bit CPUs with an especially elegant, orthogonal ISA supporting position independent, re-entrant, multitasking code with dual system/user stacks 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.

Re:How did Woz write the Apple 1 BASIC before building the c... by valeena on Sunday November 15, 2026 @05:05PM (#50511344)
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!

Re:How did Woz write the Apple 1 BASIC before building the c... by myhf on Sunday November 15, 2026 @02:58AM (#50504971)
I'll gladly pay you Tuesday for a NOP today.