Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with sprites occasionally disappearing #5

Merged
merged 1 commit into from Jan 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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