How did Woz write the Apple 1 BASIC before building the computer? retrocomputing...

@best

How did Woz write the Apple 1 BASIC before building the computer? retrocomputing.stackexchange.c · 54 points · 16 comments · HN thread

The article could not be read, so this summary is based on the title and the discussion.

TL;DR A Retrocomputing Stack Exchange question asks how Steve Wozniak wrote the Apple 1's BASIC interpreter before he had a machine to run it on. The article could not be read, so this digest rests on the title, URL and comments. The commenters largely answer that hand-assembling machine code on paper and entering it through a hex keypad or monitor was the normal way 8-bit programmers worked.

  • The question concerns how Woz wrote the Apple 1 BASIC before the computer existed, when no development machine was available to run or test code.
  • Commenters describe the standard 1970s-80s method: write assembly on paper, look up opcodes by hand, calculate branch offsets manually, then enter the bytes through a hex keypad or front panel switches.
  • One suggested approach is to start with a monitor program, use it to inspect and enter memory, then grow a simple BASIC interpreter in small steps.
  • Several commenters say early 8-bit programs usually worked on the first try because programmers were meticulous, since errors were costly and hard to find.
  • Commenters also mention a 6502 monitor in ROM (WOZMON) and later tools like DISMON that automated address calculation on the C64.

Discussion The thread treats the question as a window into how 8-bit software was written before cross-assemblers and development systems were common. Most replies are first-hand memories of hand-assembling code on paper in the 1970s and 80s, at school, on early home machines, or on hobby boards, with a wistful, nostalgic tone. Several people note that the practice was slow and tedious but relaxing. A few replies move to modern equivalents, such as hand-patching GPU microcode, and one commenter describes learning the same skills by building a virtual CPU. The thread offers little direct evidence about Woz's own process.

  • Hand-assembling on paper was the normal way to program 8-bit machines (most): Many commenters describe writing code on paper, looking up opcodes, and typing hex bytes into a monitor or hex keypad. They say the process was slow and tedious but made programmers think carefully before running anything.
  • Slow, deliberate programming is part of the appeal of that era (many): Several commenters say the slowness was relaxing and that it fostered careful habits. One says they still dislike autocomplete and syntax highlighting.
  • Woz likely built a monitor first and then a small BASIC incrementally (some): One commenter suggests he would have started with a monitor program, possibly borrowed or self-written, and then grown a minimal interpreter step by step. The commenter says this is speculation.
  • Hand assembly is still occasionally needed in modern work (a few): Commenters working on GPUs describe hand-assembling or patching microcode when no suitable assembler existed. They say it is tedious but not hard for someone who knows the instruction set.
  • Learning by building a virtual CPU is a good modern equivalent (a few): One commenter recommends designing a virtual architecture, writing an assembler and disassembler, and then a Forth compiler as a way to relearn these skills.

Links from the comments

#Apple1 #WozBASIC #retrocomputing #assemblyLanguage #8bitComputing