Totally simple thing I'm sure I've missed, but is there a way to do c-style #defines for declaring constant values with nesasm?
Thanks!
djcc
Have you tried .equ or = ?
It varies from assembler to assembler, but in many, you can use .equ or = to declare a label, such as
MyVariable .equ $0123
or
MyVariable = $0123
RandomValue:
.dw $0000
RandomVales:
.dw $0000,$0000
RandomBytes:
.db $00,$00
I am pretty sure that's how to do it.
NAME = value works fine with nesasm, and so does NAME EQU value (note: no dot in front of EQU).