Skip to content

Commit

Permalink
Bugfix Sposh high score saving
Browse files Browse the repository at this point in the history
  • Loading branch information
vaguerant committed Apr 29, 2024
1 parent 5bf3233 commit 71980ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ MV810Asm redalarm-save.asm redalarm-save.vb /V /H "Red Alarm (USA).vb"
MV810Asm sposh-save.asm sposh-save.vb /V /H "Space Squash (Japan).vb"
MV810Asm vert-u-save.asm vert-u-save.vb /V /H "Vertical Force (USA).vb"
MV810Asm vert-j-save.asm vert-j-save.vb /V /H "Vertical Force (Japan).vb"
MV810Asm vtetris-save.asm vtetris-save.vb /V /H "V-Tetris (Japan).vb"
MV810Asm water-save.asm water-save.vb /V /H "Waterworld (USA).vb"
```
You will need to supply clean original ROMs. Filenames are examples only.
Expand Down
4 changes: 0 additions & 4 deletions sposh-save.asm
Original file line number Diff line number Diff line change
Expand Up @@ -492,17 +492,13 @@ SAVE_SCORE:

SAVE_SCORE_AREA:
st.h r12, 0x00D0[r1] ; restored from original
shl 1, r11
movhi 0x600, r11, r1
shr 1, r11
st.b r12, SRAM_SCORE_AREA[r1]
jr SAVE_SCORE_AREA_RETURN

SAVE_SCORE_LEVEL:
st.h r12, 0x00E4[r1] ; restored from original
shl 1, r11
movhi 0x600, r11, r1
shr 1, r11
st.b r12, SRAM_SCORE_LEVEL[r1]
jr SAVE_SCORE_LEVEL_RETURN

Expand Down

0 comments on commit 71980ea

Please sign in to comment.