Hacker News

Favorites Setup
Comment by iberator | original | How did Woz write the Apple 1 BASIC before building the computer?
[−]iberator · 2026-11-15 Sun 00:22 UTC · link
It's easy to relearn those skills:

Just design and build a virtual CPU architecture in the language of your choice:) (not verilog but php, c, rust, zig or whatever)

You create architecture, then OPCODES, then you can write simple programs in machine code.

Then its SUPER EASY to write an assembler and disassembler.

Then forth compiler.

I did it all once as I was homeless on my phone in the mall .

Fun and educational, even if you don't know assembly prior.

[−]le-mark · 2026-11-15 Sun 02:04 UTC · link
I read a book on C that had this as an excercise; blew my mind at the time. It’s really a great excercise. I created and simulated an equihash machine this way many years ago; back when gpus were used for such thing as crypto mining and not ai!
[−]potato-peeler · 2026-11-15 Sun 05:41 UTC · link
Which book?
[−]le-mark · 2026-11-15 Sun 12:15 UTC · link
“C How to Program” Deitel and Deitel 3rd edition.
[−]potato-peeler · 2026-11-15 Sun 05:42 UTC · link
> Fun and educational, even if you don't know assembly prior.

Any book or resource? How do you do this without assembly?