Hacker News new | ask | show | jobs
by sedatk 11 days ago
Actually, BASIC’s flat structure helped me a lot in understanding Z80 assembly when I was 12. You see, memory addresses were line numbers, registers were variables, JP was GOTO, CALL was GOSUB. CP was IF, JP, Z was THEN GOTO, and LD was LET, and so forth.
1 comments

> You see, memory addresses were line numbers, registers were variables,

There was only a single[1] register though, the accumulator.

[1] Okay, there was the PC as well. Maybe a flags register too? But only one used for variables, IIRC.

You seem to be confusing Z80 with 6502.
> You seem to be confusing Z80 with 6502.

You're quite correct, I did confuse the two.

Too late to edit it now, but at least your response will stand as a correction.