Hi, I'm following the SNES development tutorial https://wiki.superfamicom.org/snes/show/ASM+Tutorial+Part+2 and have run into a problem that I can't solve. I'm hoping that someone here can help!
I'm trying to learn about tables. The tutorial gives the following example of using tables to change a value based upon the values in a table:
However when I try to build the program, I get the following error:
I'm using wla-65816.exe to assemble my code, from which the above error is generated.
Does anyone know what the problem is?
Many thanks in advance!
I'm trying to learn about tables. The tutorial gives the following example of using tables to change a value based upon the values in a table:
Code:
Table:
db $08,$1C,$24,$48 ; Table of timer values. Value can't go beyond #$FF unless in 16-bit mode.
LDX $19 ; Mario's power-up state.
LDA Table,x ; Load the table, indexed by power-up ($19)
STA $1490 ; get the value into $1490.
RTL ; Return
db $08,$1C,$24,$48 ; Table of timer values. Value can't go beyond #$FF unless in 16-bit mode.
LDX $19 ; Mario's power-up state.
LDA Table,x ; Load the table, indexed by power-up ($19)
STA $1490 ; get the value into $1490.
RTL ; Return
However when I try to build the program, I get the following error:
Quote:
Pass 1...
gamecode.asm:35: ERROR: Unknown symbol "db".
gamecode.asm:35: ERROR: Unknown symbol "db".
I'm using wla-65816.exe to assemble my code, from which the above error is generated.
Does anyone know what the problem is?
Many thanks in advance!