News for hackers. Stuff that matters.
Re:How did Woz write the Apple 1 BASIC before building the c... by vr46 on Sunday November 15, 2026 @02:06AM (#50504705)
The days when I would remember everyone's telephone numbers AND Z80 instructions!

  10 FOR N=0 TO 28
  20 READ B: POKE 32768+N,B
  30 NEXT N
  40 RANDOMIZE USR 32768
  50 DATA 62,2,205,1,22,17,16,128
  60 DATA 1,13,0,205,60,32,24,245
  70 DATA 73,32,65,77,32,65,87,69
  80 DATA 83,79,77,69,13
Re:How did Woz write the Apple 1 BASIC before building the c... by anonzzzies on Sunday November 15, 2026 @02:13AM (#50504746)
Yep,I did hex data but I still can do z80 like this; assembler does not help as 3e reads and writes faster than ld a,x.
Re:How did Woz write the Apple 1 BASIC before building the c... by pjmlp on Sunday November 15, 2026 @03:05AM (#50505010)
Thanks for posting this snippet, this is exactly what I meant with DATA and small loader section on another comment.
Re:How did Woz write the Apple 1 BASIC before building the c... by stevekemp on Sunday November 15, 2026 @04:07AM (#50505275)
It's a little scary that I can recognize a lot of those instructions from memory, even though it's been 40 years since I first got my ZX Spectrum.

Of course more recently I've been doing a lot of z80-based CP/M retro-fun. But "62, xx" is obviously LD A,xx, and similarly the 205 is CD which is CALL.

Fun stuf, thanks for the post, you are indeed AWESOME.

Re:How did Woz write the Apple 1 BASIC before building the c... by ErroneousBosh on Sunday November 15, 2026 @07:04AM (#50506311)
"call 5633" at that which opens the IO stream given in A.
Re:How did Woz write the Apple 1 BASIC before building the c... by guenthert on Sunday November 15, 2026 @07:43AM (#50506536)
I thought that's silly, but uh, I did recognize the opcode for CALL as well.
Re:How did Woz write the Apple 1 BASIC before building the c... by stevekemp on Sunday November 15, 2026 @09:51AM (#50507332)
One of the reasons I prefer the port of BBC BASIC for CP/M, over Microsoft's, is that it supports inline Z80 assembler.
Re:How did Woz write the Apple 1 BASIC before building the c... by ErroneousBosh on Sunday November 15, 2026 @07:03AM (#50506305)
The neat thing about USR was that if I recall correctly it would pass the start address in BC, and return what value you placed in BC when it went back to BASIC.

I could have sworn the ROM spelled it RANDOMISE with the UK spelling though.

Re:How did Woz write the Apple 1 BASIC before building the c... by JdeBP on Sunday November 15, 2026 @11:36AM (#50508261)
It was the French RANDOMISE in Sinclair SuperBASIC on the QL and the ZX80/81. The Speccy used the Oxford spelling RANDOMIZE.
Re:How did Woz write the Apple 1 BASIC before building the c... by ErroneousBosh on Sunday November 15, 2026 @03:04PM (#50510170)
Strange that they would use the (incorrect) Oxford spelling, given that both Steve Vickers and Richard Altwasser are Cantabridgians.

You'd have thought they'd have taken any opportunity they could to distance themselves from the dark blue buggers, eh?

Re:How did Woz write the Apple 1 BASIC before building the c... by guenthert on Sunday November 15, 2026 @07:49AM (#50506573)
Uh, no checksums, shudder.
Re:How did Woz write the Apple 1 BASIC before building the c... by antod on Monday November 16, 2026 @12:59AM (#50514511)
That was about as far (or further) as I got trying to learn Z80 on the spectrum.

Being that DATA and POKE wanted decimal, while all the reference material (ie the one book I found) used hex meant a lot of tedious translation.