![]() |
Routines |
| Prev: 39174 | Up: Map | Next: 39325 |
|
Used by the routine at Draw_Room.
Writes 1 to byte 15 of each of the nineteen object records, so that each of the sprites is drawn without being erased first (see Update_Object_Sprite).
|
||||
| Flag_Objects_For_Redraw | 39311 | LD HL,36617 | Point at byte 15 of the first record (First_Weapon_Redraw_Flags). | |
| 39314 | LD DE,16 | Set the size of a record to 16. | ||
| 39317 | LD BC,4865 | Set the number of records to 19 and the value to flag them with to 1. | ||
| Flag_Objects_For_Redraw_Loop | 39320 | LD (HL),C | Set byte 15 of the record. | |
| 39321 | ADD HL,DE | Move on to the next record. | ||
| 39322 | DJNZ Flag_Objects_For_Redraw_Loop | Decrease the counter and loop back until all of the records are flagged. | ||
| 39324 | RET | Return. | ||
| Prev: 39174 | Up: Map | Next: 39325 |