![]() |
Routines |
| Prev: E7E3 | Up: Map | Next: E833 |
|
Used by the routines at Run_Game and Handle_Death.
Clears the object records from the record of Sabreman (at Sabreman_Record) up to the end of the records at Small_Object_Records, which are 0110 bytes.
|
||||
| Clear_Object_Records | E825 | LD HL,$8F1A | Point HL at the record of Sabreman. | |
| E828 | LD BC,$0110 | Set the number of bytes to clear to 0110. | ||
| Clear_Object_Records_Loop | E82B | LD (HL),$00 | Clear a byte. | |
| E82D | INC HL | Move on to the next byte. | ||
| E82E | DEC BC | Decrease the byte counter and loop back until all of the object records have been cleared. | ||
| E82F | LD A,B | |||
| E830 | OR C | |||
| E831 | JR NZ,Clear_Object_Records_Loop | |||
|
Continue on to Check_Stalactite_Contact.
|
||||
| Prev: E7E3 | Up: Map | Next: E833 |