add background_index var

This commit is contained in:
Safyrus 2022-04-02 23:01:24 +02:00
parent ebdc99b941
commit aeccbff288
1 changed files with 4 additions and 1 deletions

View File

@ -61,13 +61,16 @@
palettes: .res 25 palettes: .res 25
.export _palettes=palettes .export _palettes=palettes
background_index: .res 1
.export _background_index=background_index
; Background data to send to PPU during VBLANK ; Background data to send to PPU during VBLANK
; Packet structure: ; Packet structure:
; byte 0 = v.ssssss (v= vertical draw, s= size) ; byte 0 = v.ssssss (v= vertical draw, s= size)
; byte 1-2 = ppu adress ; byte 1-2 = ppu adress
; byte 3-s = tile data ; byte 3-s = tile data
; packet of size 0 means there is no more data to draw ; packet of size 0 means there is no more data to draw
background: .res 128 background: .res 127
.export _background=background .export _background=background