All pastes #897075 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-09 05:33 UTC
rendered paste body
Load X with the number 1
Store X into address $00
Increment X
Store X into address $01
Increment X
Store X into address $02
Increment X
Store X into address $03
Load X from address $01


If I'm right, that code would look like this:

LDX #1
STX $00
INC X
STX $01
INC X
STX $02
INC X
STX $03
LDX $01