Fix pre-shift bug in the tile address calculation

This commit is contained in:
Lucas Scharenbroich 2021-10-11 16:47:38 -05:00
parent 4338b64338
commit 4d224a92d9
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ _GetTileAddr
bit #2*TILE_HFLIP_BIT ; Check if the horizontal flip bit is set
beq :no_flip
inc ; Set the LSB
:no_flip and #TILE_ID_MASK ; Mask out non-id bits
:no_flip and #TILE_ID_MASK*2 ; Mask out non-id bits
asl ; x4
asl ; x8
asl ; x16