![]() |
Routines |
| Prev: 28048 | Up: Map | Next: 28075 |
|
Used by the routine at Handle_Butterfly.
Scans the butterfly table at Butterfly_Room_Table and clears bit 7 of each level byte, marking all butterflies as available for collection.
|
||||
| Reset_Butterfly_Flags | 28062 | LD HL,27846 | Point HL at Butterfly_Room_Table (butterfly room/level table). | |
| Reset_Butterfly_Loop | 28065 | LD A,(HL) | Fetch the room byte from *HL. | |
| 28066 | CP 255 | Return if the terminator byte has been found. | ||
| 28068 | RET Z | |||
| 28069 | RES 7,(HL) | Clear bit 7 of the level byte at *HL (mark as uncollected). | ||
| 28071 | INC HL | Advance to the next entry. | ||
| 28072 | JR Reset_Butterfly_Loop | Jump back to Reset_Butterfly_Loop. | ||
| 28074 | RET | Return. | ||
| Prev: 28048 | Up: Map | Next: 28075 |