Skip to content

Commit

Permalink
Merge pull request #5 from splendidnut/main
Browse files Browse the repository at this point in the history
Fixed issue with sprites occasionally disappearing
  • Loading branch information
Al-Nafuur committed Jan 5, 2023
2 parents 9a7d0ed + 7f75020 commit fd5eb40
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions src/multisprite_kernel.asm
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 fd5eb40

Please sign in to comment.