From b4155dc75100f89c419598723e8f61b11ff9ef1f Mon Sep 17 00:00:00 2001 From: Lucas Scharenbroich Date: Fri, 29 Oct 2021 00:52:29 -0500 Subject: [PATCH] Expose the ApplyTiles subroutine --- src/GTE.s | 1 + src/blitter/Tiles.s | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/GTE.s b/src/GTE.s index 0e2b3c5..ba7d000 100644 --- a/src/GTE.s +++ b/src/GTE.s @@ -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 diff --git a/src/blitter/Tiles.s b/src/blitter/Tiles.s index d428e3e..049766d 100644 --- a/src/blitter/Tiles.s +++ b/src/blitter/Tiles.s @@ -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