News for hackers. Stuff that matters.
Re:How did Woz write the Apple 1 BASIC before building the c... by dhosek on Saturday November 14, 2026 @10:52PM (#50503838)
I find it amusing that so many of the comments were surprised about hand-assembling 6502 code. When I came to the Apple ][, assemblers were relatively more accessible, but even at around $200, it was well beyond my financial means so I would write code longhand in spiral bound graph paper notebooks in four columns: Addresses, labels, hex codes (up to three bytes per opcode) and then the assembly code.

And that $200 being out of bounds went pretty low: for the first couple years of my programming life, floppy disks were beyond my means, so any code I wrote lived in its official version as hand-written code and would have to be retyped any time I wanted it.

Re:How did Woz write the Apple 1 BASIC before building the c... by ssl-3 on Sunday November 15, 2026 @12:08AM (#50504175)
[delayed]
Re:How did Woz write the Apple 1 BASIC before building the c... by robotresearcher on Sunday November 15, 2026 @12:15AM (#50504208)
It’s still available if you want to try it :)

Like blowing into a gourd is still available to a modern saxophonist.

Re:How did Woz write the Apple 1 BASIC before building the c... by ssl-3 on Sunday November 15, 2026 @12:24AM (#50504262)
[delayed]
Re:How did Woz write the Apple 1 BASIC before building the c... by efitz on Sunday November 15, 2026 @01:20AM (#50504480)
It was fun; you should try it!
Re:How did Woz write the Apple 1 BASIC before building the c... by pseudohadamard on Sunday November 15, 2026 @02:47AM (#50504913)
Kids these days... that's exactly how I wrote code, the 6502 was simple enough that you quickly memorized all the opcodes, and you sketched it out on paper and desk-checked it before typing it in... which you did by banging rocks together to get ones and zeros. Ay, we had it tough, but you know, we were happy in those days.
Re:How did Woz write the Apple 1 BASIC before building the c... by ssl-3 on Sunday November 15, 2026 @03:00AM (#50504986)
I once worked worked with a guy who did 6502 assembler, for CompuServe[1], in their home base of Columbus. Good dude; I wish I'd chatted with him more.

He wasn't happy about the position he was in while we were chatting, except it paid some bills and it provided good health insurance.

By comparison, I never learned any 6502.

But we both answered the phones the same way in that call center, and both we worked to give callers the best troubleshooting advice we could given our understandings of that system.

[1]: https://en.wikipedia.org/wiki/CompuServe

Re:How did Woz write the Apple 1 BASIC before building the c... by lanstin on Sunday November 15, 2026 @11:31AM (#50508209)
I did this for my non apple 6502 machine - the issue I always had was how much space to put in between subroutines so I could change them later and not have to redo all the jumps. I think after a while I just did one 256 byte block per subroutine and screw memory efficiency (not for the last time in the following forty five years). The only time I crunched it back down was for a “use almost all 8K for the decimal digits of E” (which was fun and much faster than Pi but not totally useful as I couldn’t print them or save them to tape).
Re:How did Woz write the Apple 1 BASIC before building the c... by compsciphd on Sunday November 15, 2026 @03:15AM (#50505061)
if you play blurays / want to make them region free, you can experience it today (the HDMV bytecode that run the non java parts)
Re:How did Woz write the Apple 1 BASIC before building the c... by flomo on Sunday November 15, 2026 @12:21AM (#50504241)
My local teenager Apple crowd could get you almost any game, or disk copy utility, or etc. But never an assembler or complied BASIC, or Apple Pascal or anything like that. I was insufficiently 1335.

Anyway, my career in writing 6502 machine code in pencil pretty much ended at "Hello World".

Re:How did Woz write the Apple 1 BASIC before building the c... by BuildTheRobots on Sunday November 15, 2026 @02:54AM (#50504952)
1335? Though to be fair you were very almost 1337...
Re:How did Woz write the Apple 1 BASIC before building the c... by dlcarrier on Sunday November 15, 2026 @01:22AM (#50504489)
…and then you accidentally type 'O' instead of '0' when entering it, and it doesn't work.
Re:How did Woz write the Apple 1 BASIC before building the c... by mitxela on Sunday November 15, 2026 @01:29AM (#50504524)
If you even had that button on your keyboard.

Apple 1 users had a keyboard. But its developers may have been using a hex keypad, or an array of toggle switches.

Re:How did Woz write the Apple 1 BASIC before building the c... by skeeter2020 on Sunday November 15, 2026 @10:28AM (#50507636)
When I see old photos of the toggle switch arrays my finger pads start to ache in sympathy!
Re:How did Woz write the Apple 1 BASIC before building the c... by fy20 on Sunday November 15, 2026 @01:53AM (#50504632)
Using a slashed zero when writing was common for this reason. The BBC Micro even had that instead of unslahsed 0 on its keyboard.
Re:How did Woz write the Apple 1 BASIC before building the c... by raverbashing on Sunday November 15, 2026 @02:07AM (#50504710)
And honestly assembly consisted of tens of instructions, not hundreds

You could go a long way with mov/jz/jnz etc and basic bios calls

Re:How did Woz write the Apple 1 BASIC before building the c... by f055 on Sunday November 15, 2026 @04:18AM (#50505337)
I was 4yo when I re-typed my first program from Atari manual to my Atari 800xl and was baffled that I had to retype it after restarting the computer. I tried saving it to a cassette tape but that didn’t work well. I envied my cousins who had their Atari with 5 inch floppy drive.
Re:How did Woz write the Apple 1 BASIC before building the c... by YiaCtmYqo6M7i on Sunday November 15, 2026 @04:43AM (#50505469)
That's nothing, I was 2 years old when i built my first computer from transistors!
Re:How did Woz write the Apple 1 BASIC before building the c... by jonathanlydall on Sunday November 15, 2026 @08:01AM (#50506636)
Speaking as a father of a 4 and 6 year old, and trying to think back to my own (lack of) capabilities at that age, a 4yo being able to re-type a program into a computer seems quite extraordinary.
Re:How did Woz write the Apple 1 BASIC before building the c... by askbjoernhansen on Sunday November 15, 2026 @10:23AM (#50507578)
I think life was a little slower, so typing a program from hand written notes into the computer was pretty good for getting dopamine.

I was a little older than 4, but I learned to transcribe random snippets from the programming manual into the computer about the time I learned to read; and later I'd program (Pascal, not assembly) by hand writing when in school and then run home and try it out. What else were you going to do?

Re:How did Woz write the Apple 1 BASIC before building the c... by setopt on Sunday November 15, 2026 @03:12PM (#50510236)
I wasn't as young either, but when I was 5yo my dad tried to teach me C programming (it wasn't a great success at that age, but I did at least understand what a variable is and stuff like that). When we started, I could already use the command line to some extent, as he had taught me how to start my favorite video games on our DOS computer.
Re:How did Woz write the Apple 1 BASIC before building the c... by dextrous on Sunday November 15, 2026 @02:35PM (#50509913)
When I was a 4 yr old my Mom was still trying to get me not to eat paste when we did arts and crafts.
Re:How did Woz write the Apple 1 BASIC before building the c... by mbreese on Sunday November 15, 2026 @05:49PM (#50511720)
I know I could start a program from a floppy on an Atari around that age (4-6ish). But when you’re trying to play a game, there is motivation. And honestly, in the 8 bit days, if you got stuck, you’d just reboot and it was a clean slate. Today? It’s a bit more difficult.
Re:How did Woz write the Apple 1 BASIC before building the c... by dhosek on Monday November 16, 2026 @09:46AM (#50518140)
At age 7, my son had taught himself enough computing that he figured out how to rewrite a program he’d done in Scratch to the same program in Python.
Re:How did Woz write the Apple 1 BASIC before building the c... by JKCalhoun on Sunday November 15, 2026 @07:58AM (#50506619)
I'm working on a modern "The First Book of KIM" [1] and there are pages of assembly code for games, utilities. Alongside the assembly is the machine code (byte code).

As near as I can tell, the assembly is not formatted in a way that would actually assemble. Furthermore, there are missing labels, errors… My understanding is that the assembly is there more or less as documentation—it was the machine code that the person purchasing the book was expected to enter into KIM.

[1] https://archive.org/details/The_First_Book_of_KIM

A new game for the fifty-year-old KIM-1: https://engineersneedart.com/blog/yahtc/yahtc.html

Re:How did Woz write the Apple 1 BASIC before building the c... by WesolyKubeczek on Sunday November 15, 2026 @08:09AM (#50506687)
> for the first couple years of my programming life, floppy disks were beyond my means, so any code I wrote lived in its official version as hand-written code and would have to be retyped any time I wanted it.

Vimes boots theory exemplified!

Re:How did Woz write the Apple 1 BASIC before building the c... by oldjohnnylane on Sunday November 15, 2026 @10:14AM (#50507489)
That’s because we’ve had multiple generations of programmers who don’t know what’s under the hood. It is a complete disconnect between hardware and software. I don’t know if that’s good or bad, it just is. FWIW I went to computer camp in the early 80s and the advanced assembly class was exactly what woz did: write on paper and type in hex bytes from the monitor (call -151. If you know you know … 99% of people here think a monitor is just the screen, that’s what I mean).
Re:How did Woz write the Apple 1 BASIC before building the c... by RaftPeople on Sunday November 15, 2026 @02:02PM (#50509633)
I did this on 6809 for a long time when I got started, just pages full of numbers with some hand written comments. The relative addressing modes made it easier for inserting or moving chunks of code.

I didn't even know what an assembler was until I ran into someone more knowledgeable about this stuff.