I am making a timer patch. There are 6 bytes that it should copy or compare to the timer: $02, $07, $09 and $30, $20, $10 (or any other ones, the result, surprisingly doesn't change), but it always uses $40, $21, $9C and $0B, $42, $9C.
This is how I define the bytes:
This is how I use them:
and
X is always from $00 to $02.
Also, I couldn't even find these bytes in the ROM.
So tha-at's how it works!
This is how I define the bytes:
Code
warp: db $02,$07,$09 freeze: db $30,$20,$10
This is how I use them:
Code
lda warp,X sta !timer,X
and
Code
lda freeze,X sta !timer,X
X is always from $00 to $02.
Also, I couldn't even find these bytes in the ROM.
So tha-at's how it works!