How did Woz write Apple 1 BASIC before he built the computer?
This is a Retrocomputing Stack Exchange question and its answers about how Steve Wozniak wrote the BASIC for the Apple 1. He wrote real 6502[1] machine code on paper and converted each instruction to hexadecimal by hand, because time-sharing[2] computer fees of several thousand dollars were beyond his means. He noted addresses and instructions on paper and looked up the machine code values, instead of using an assembler[3]. Only the BASIC itself was tested on the Apple 1; the stack machine that evaluates expressions was implemented in ALGOL and tested on a computer.
The interpreter could be split into an editor, a tokenizer[4], an execution loop, an expression evaluator, and a handler function for each command, which made it possible to work on small pieces on paper. Apple 1 BASIC was about 4 KiB. Integer BASIC, which shipped with early Apple II computers, also started from a handwritten original that was never assembled by a tool. Wozniak said in a 1984 Byte interview that he wrote the BASIC before the computer and that it took much longer than the computer's design.
The answers focus on how he actually developed and tested the code, separating a high-level plan from real 6502 machine code and asking whether a host computer such as an HP machine was used. For Integer BASIC, the figures from a disassembly of the Apple II version are about 6 KiB of code and roughly 2,000 instructions.
Read the original retrocomputing.stackexchange.comDiscussion on GeekNews
Discussion
Commenters mostly say that hand assembly was the normal way for 8-bit hobbyists, who could not afford a second machine, and that paper coding was slow but made people think carefully. Others add that they wrote code on paper for years, while one notes that professionals usually ran assemblers on larger machines such as the PDP-11 or DEC-10.
Links from the post and discussion
Sources
-
KRGeekNews KO
Woz는 컴퓨터를 만들기도 전에 어떻게 Apple 1 BASIC을 작성했을까?
-
Retrocomputing Stack Exchange
How did Woz write the Apple 1 BASIC before building the computer? (2021)


