From fe7b09d97b8acdc69fdbfd69fe6dc1865ef05231 Mon Sep 17 00:00:00 2001 From: Safyrus <54881649+Safyrus@users.noreply.github.com> Date: Sat, 2 Apr 2022 23:23:00 +0200 Subject: [PATCH] add background_index var --- asm/memory.asm | 1 + include/zp_variables.h | 5 +++++ 2 files changed, 6 insertions(+) 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)