I recently switched to ca65 from nesasm and now I'm getting a bunch of errors for every time I'm trying to use a zero page variable. My code is still working correctly but I'm trying to figure out what's going on.
Here's an example of what I'm doing:
Code: Select all
; set direction
lda #$00
sta player_direction
Player direction is defined like this:
Code: Select all
.segment "ZEROPAGE"
player_direction: .res 1
Although this assembles, I'm getting the following warning:
Code: Select all
update-player.asm(17): Warning: Didn't use zeropage addressing for `player_direction'
I remember reading somewhere that there is some specific thing that I need to do to indi