![]() |
Routines |
| Prev: 59363 | Up: Map | Next: 59443 |
|
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 272 bytes.
|
||||
| Clear_Object_Records | 59429 | LD HL,36634 | Point HL at the record of Sabreman. | |
| 59432 | LD BC,272 | Set the number of bytes to clear to 272. | ||
| Clear_Object_Records_Loop | 59435 | LD (HL),0 | Clear a byte. | |
| 59437 | INC HL | Move on to the next byte. | ||
| 59438 | DEC BC | Decrease the byte counter and loop back until all of the object records have been cleared. | ||
| 59439 | LD A,B | |||
| 59440 | OR C | |||
| 59441 | JR NZ,Clear_Object_Records_Loop | |||
|
Continue on to Check_Stalactite_Contact.
|
||||
| Prev: 59363 | Up: Map | Next: 59443 |