Skip to content

Commit

Permalink
Fixed issue with sprites occasionally disappearing
Browse files Browse the repository at this point in the history
  • Loading branch information
splendidnut committed Jan 5, 2023
1 parent 9a7d0ed commit 7f75020
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions src/multisprite_kernel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,6 @@ rCacheNewSpriteY = wCacheNewSpriteY + superchipReadOfs
;----------------------------------------------------------------


FineAdjustTableBegin
.byte %01100000 ;left 6
.byte %01010000
.byte %01000000
.byte %00110000
.byte %00100000
.byte %00010000
.byte %00000000 ;left 0
.byte %11110000
.byte %11100000
.byte %11010000
.byte %11000000
.byte %10110000
.byte %10100000
.byte %10010000
.byte %10000000 ;right 8
FineAdjustTableEnd = FineAdjustTableBegin - 241

PFStart
.byte 87,43,0,21,0,0,0,10
blank_pf
Expand Down Expand Up @@ -336,6 +318,33 @@ nottoohigh

;-------------------------------------------------------------------------

;------------------------------------------------------------------------
;-- FineAdjustTable - HMove table
;--
;-- NOTE: This table needs to be here to prevent interference with
;-- the superchip due to the forced page-crossing used when
;-- accessing this table.

FineAdjustTableBegin
.byte %01100000 ;left 6
.byte %01010000
.byte %01000000
.byte %00110000
.byte %00100000
.byte %00010000
.byte %00000000 ;left 0
.byte %11110000
.byte %11100000
.byte %11010000
.byte %11000000
.byte %10110000
.byte %10100000
.byte %10010000
.byte %10000000 ;right 8

;-- label used when table is accessed via forced page-crossing
FineAdjustTableEnd = (FineAdjustTableBegin - 241)


;-------------------------------------------------------------------------
;----------------------Kernel Routine-------------------------------------
Expand Down

0 comments on commit 7f75020

Please sign in to comment.