Skip to content

Commit

Permalink
Merge pull request #301 from nub1604/develop
Browse files Browse the repository at this point in the history
Fix bug getPalette
  • Loading branch information
alekmaul authored Jan 18, 2025
2 parents 00f1c4c + f0fba1e commit 2fcd807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pvsneslib/source/videos.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,6 @@ getPalette:

sep #$20
lda 8,s ; get paletteSize (6+2)
dea ; to have 0..palette size
tax

lda 7,s ; get palette entry (5+2)
Expand All @@ -1081,7 +1080,9 @@ getPalette:
and #$7F ; remove openbus read
inc tcc__r0 ; to go to msb
sta [tcc__r0]
rep #$20 ; 16bit if *paletteColors leaves 8bit page boundary
inc tcc__r0 ; to go to next entry
sep #$20
pla
ina
dex
Expand Down

0 comments on commit 2fcd807

Please sign in to comment.