Logo
Explore Help
Sign In
pokehacks/pokecrystal-board
0
0
Fork 0
You've already forked pokecrystal-board
mirror of https://gitlab.com/xCrystal/pokecrystal-board.git synced 2025-12-11 05:02:16 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
87faa77b5b2838cd2fd873e2ed87f1ddf37683c1
pokecrystal-board/engine/events/checksave.asm

21 lines
279 B
NASM
Raw Normal View History

Remove all address comments
2018-06-24 16:09:41 +02:00
CheckSave::
Say "BANK(Foo) ; aka BANK(Bar)" to clarify that Foo and Bar share a bank
2019-01-12 15:17:20 -05:00
ld a, BANK(sCheckValue1) ; aka BANK(sCheckValue2)
Harmonize engine/{movie, pokemon} with pokegold (renames GetSRAMBank to OpenSRAM) To do: engine/{menus, overworld}
2020-06-17 17:03:38 -04:00
call OpenSRAM
Remove all code from main.asm (some labeled INCBINs, like out-of-context graphics, are still present) engine/routines/ stores isolated out-of-context routines as individual files. It might be preferable later to append them to their related engine/ files in unique little SECTIONs, relying on the linkerscript to place them appropriately; or some other organization method. In the meantime, they're now easily findable apart from main.asm's other content.
2017-12-24 19:35:35 -05:00
ld a, [sCheckValue1]
ld b, a
ld a, [sCheckValue2]
ld c, a
call CloseSRAM
ld a, b
cp SAVE_CHECK_VALUE_1
jr nz, .ok
ld a, c
cp SAVE_CHECK_VALUE_2
jr nz, .ok
ld c, $1
ret
.ok
ld c, $0
ret
Reference in New Issue Copy Permalink
Powered by Gitea Page: 84ms Template: 5ms
English
English
Licenses API