Prev: 5F80 Up: Map Next: 5FB0
5FA0: Reset Cubby Holes
Used by the routines at LevelNew and ResetPlayerData.
Copies the default contents of the ten cubby holes (five down each side of the play area) from DefaultState_CubbyHoles to CubbyHoles, and cancels any bonus item object at State_BonusItem.
ResetCubbyHoles 5FA0 LD HL,$5F2E Copy 0A bytes of data from DefaultState_CubbyHoles to CubbyHoles.
5FA3 LD DE,$5E23
5FA6 LD BC,$000A
5FA9 LDIR
5FAB XOR A Write 00 to State_BonusItem.
5FAC LD ($5E3C),A
5FAF RET Return.
Prev: 5F80 Up: Map Next: 5FB0