Language…
9 users online: Cristian Cardoso, dotCoockie, Golden Yoshi, Green, Lsh0426, Maw, Sweetdude,  Telinc1, Torchkas - Guests: 262 - Bots: 390
Users: 64,795 (2,377 active)
Latest user: mathew

Strange data appears out of nowhere...

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:
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!
Change LDA to LDA.l since you're reading tables from ROM without changing the data bank
Originally posted by Erik
Change LDA to LDA.l since you're reading tables from ROM without changing the data bank

It says:
Code
error: (E5045): Invalid opcode length specification. [---- lda.i freeze,X]


EDIT: Oh, it's L...
So tha-at's how it works!
it's L not i

edit: damn ninjas
Originally posted by Erik
Change LDA to LDA.l since you're reading tables from ROM without changing the data bank

Thank you very much! It worked. After a little bit of testing, the patch will be available as an update here.
So tha-at's how it works!