Just a simple question about coding stuff:
Can I replace this:
LDA $19
CMP #$01
BEQ Return
LDA #$02
STA $1DF9
Return: RTS
With this:
LDA $19
BEQ Return
BRA Other_code
Return: RTS
Other_code:
LDA #$02
STA $1DF9
RTS?
I think LDA $19 BEQ xxx will compare directly #$01 and branch. Is that what it does?
My blog. I could post stuff now and then
My Assembly for the SNES tutorial (it's actually finished now!)
Can I replace this:
LDA $19
CMP #$01
BEQ Return
LDA #$02
STA $1DF9
Return: RTS
With this:
LDA $19
BEQ Return
BRA Other_code
Return: RTS
Other_code:
LDA #$02
STA $1DF9
RTS?
I think LDA $19 BEQ xxx will compare directly #$01 and branch. Is that what it does?
My blog. I could post stuff now and then
My Assembly for the SNES tutorial (it's actually finished now!)