Expose the ApplyTiles subroutine

This commit is contained in:
Lucas Scharenbroich 2021-10-29 00:52:29 -05:00
parent 11bbe7be3d
commit b4155dc751
2 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,7 @@ GetTileAddr EXT
PushDirtyTile EXT ; A = address from GetTileStoreOffset, marks as dirty (will not mark the same tile more than once)
PopDirtyTile EXT ; No args, returns Y with tile store offset of the dirty tile
ApplyTiles EXT ; Drain the dirty tile queue and call RenderTile on each
RenderTile EXT ; Y = address from GetTileStoreOffset
GetTileStoreOffset EXT ; X = column, Y = row
TileStore EXT ; Tile store internal data structure

View File

@ -698,6 +698,14 @@ _PopDirtyTile2 ; alternate entry point
rts
; Run through the dirty tile list and render them into the code field
ApplyTiles ENT
phb
phk
plb
jsr _ApplyTiles
plb
rtl
_ApplyTiles
bra :begin