diff --git a/asm/memory.asm b/asm/memory.asm index 6de892b..5882c39 100644 --- a/asm/memory.asm +++ b/asm/memory.asm @@ -61,6 +61,7 @@ palettes: .res 25 .export _palettes=palettes + ; Index for the background data background_index: .res 1 .export _background_index=background_index diff --git a/include/zp_variables.h b/include/zp_variables.h index 10498df..11c8dba 100644 --- a/include/zp_variables.h +++ b/include/zp_variables.h @@ -68,6 +68,11 @@ extern uint8_t palettes[PALETTES_SIZE]; #pragma zpsym ("palettes") +// Index for the background data +extern uint8_t background_index; +#pragma zpsym ("background_index") + + // Background data to send to PPU during VBLANK // Packet structure: // byte 0 = v.ssssss (v= vertical draw, s= size)