3 ms·
> What is this "LD A, 0" syntax? Is it a z80 thing? Well, I never wrote any 6502 so I can't compare, but yes, you could load immediate values into any register
by vanderZwan 11mo ago
> What is this "LD A, 0" syntax? Is it a z80 thing?
Well, I never wrote any 6502 so I can't compare, but yes, you could load immediate values into any register except the flag register on the Z80. Was that not a thing on the 6502?
- jgrahamc 11mo agoThe 6502 instruction set was really limited but there were three registers: A, X, Y and there were immediate load instructions for each: LDA #0, LDX #0, LDY #0.