Prev: BC70 Up: Map Next: BCC3
BCA3: Save / Load block of memory.
Used by the routine at Game_Save.
Game_SaveBlock BCA3 CALL $04C6 Save block
BCA6 JR Game_SaveBlock_0
This entry point is used by the routine at Game_Load.
Game_LoadBlock BCA8 SCF Load block
BCA9 INC D
BCAA EX AF,AF'
BCAB DEC D
BCAC DI
BCAD LD A,$0F
BCAF OUT ($FE),A
BCB1 CALL $0562
Game_SaveBlock_0 BCB4 PUSH AF
BCB5 XOR A
BCB6 OUT ($FE),A
BCB8 EI
BCB9 LD A,$7F
BCBB IN A,($FE)
BCBD RRA
BCBE JR NC,Game_SaveBlock_1
BCC0 POP AF
BCC1 RET
Game_SaveBlock_1 BCC2 POP AF
Prev: BC70 Up: Map Next: BCC3