Did I ever mention how much I hate the 6402 lda $n,x syntax being for two
completely different things and magically determined unless you remember to
threaten the assembler with violence ?
ldy #512
hd_read:
lda $34 ; I/O data via DP
- sta 0,x ; stores into data (user) bank
+ sta a:$0000,x ; stores into data (user) bank
inx
dey
bne hd_read
ldy #512
hd_write:
- lda 0,x ; load from data (user) bank
+ lda a:$0000,x ; load from data (user) bank
sta $34 ; I/O data via DP
inx
dey
rts
.bss
-
_hd_kmap:
.res 1