Is there a better way to do this:
why not just say;
clearmem
ldx with the number of memory registers you need to clear
lda $00
sta in the last memory address you want to clear, x (absolute indexing)
dex
bne clearmem
(sorry I'm a confused beginner)
T
Code:
txa ; x=0
clrmem:
sta $000,x ; a = o
sta $100,x
sta $200,x
sta $300,x
sta $400,x
sta $500,x
sta $600,x
sta $700,x ; Remove this if you're storing reset-persistent data
inx
bne clrmem
clrmem:
sta $000,x ; a = o
sta $100,x
sta $200,x
sta $300,x
sta $400,x
sta $500,x
sta $600,x
sta $700,x ; Remove this if you're storing reset-persistent data
inx
bne clrmem
why not just say;
clearmem
ldx with the number of memory registers you need to clear
lda $00
sta in the last memory address you want to clear, x (absolute indexing)
dex
bne clearmem
(sorry I'm a confused beginner)
T