Skip to content

Commit

Permalink
save-highscores: Add support for PAL
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Jan 23, 2021
1 parent 1bd0ee7 commit a9b13fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions save-highscores.s
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ INES_SRAM = 1 ; 1 = battery backed SRAM at $6000-7FFF
; patch to load from SRAM (and use a length instead of a terminator)

.segment "initHighScoreTable_patch"
; Address happens to be same for PAL
ips_segment "initHighScoreTable_patch",$8095

; initHighScoreTable_patch:
Expand All @@ -31,7 +32,7 @@ initHighScoreTable:
; start button patch to add saving

.segment "saveHighscoreStartPressed_patch"
ips_segment "saveHighscoreStartPressed_patch",$A295
ips_segment "saveHighscoreStartPressed_patch",highScoreEntryScreen+$94 ; $A295

; saveHighscoreStartPressed_patch:
jmp saveHighScores
Expand All @@ -49,4 +50,4 @@ saveHighScores:
inx
cpx #$51
bne @loop
jmp $A337
jmp highScorePosToY-4 ; @ret := $A337

0 comments on commit a9b13fd

Please sign in to comment.