I'm reading through this guide here -- http://bbitmaster.com/neshackingtutorial3.txt
In it is the following listing
The initial STA $01 statement. I have no idea what the accumulator value is at this point. Does it get zero'd out? I don't think the guides have mentioned that, so it feels like it should be loading a trash value into that memory address.
Can someone clarify what the startup behavior for the A register is supposed to be?
In it is the following listing
Quote:
.ORG $8000
LDX #$05
STA $01
LDA #$03
CPX $01
BEQ theend
DEC $01
CPX $01
BEQ theend
DEC $01
CPX $01
BEQ theend
DEC $01
CPX $01
BEQ theend
theend:
BRK
LDX #$05
STA $01
LDA #$03
CPX $01
BEQ theend
DEC $01
CPX $01
BEQ theend
DEC $01
CPX $01
BEQ theend
DEC $01
CPX $01
BEQ theend
theend:
BRK
The initial STA $01 statement. I have no idea what the accumulator value is at this point. Does it get zero'd out? I don't think the guides have mentioned that, so it feels like it should be loading a trash value into that memory address.
Can someone clarify what the startup behavior for the A register is supposed to be?