![]() |
Routines |
| Prev: 57487 | Up: Map | Next: 57597 |
|
Used by the routine at MakeTiles.
Clears the flags at offset 16 of every slot of the map objects that is free.
|
||||||||||
| ClearFreeSlotFlags | 57578 | LD DE,26 | DE=26. | |||||||
| ClearFreeSlotFlags_Loop | 57581 | LD A,(IX+0) | Read offset 0 of IX. | |||||||
| 57584 | CP 255 | Jump to ClearFreeSlotFlags_Next if A is not 255. | ||||||||
| 57586 | JR NZ,ClearFreeSlotFlags_Next | |||||||||
| 57588 | LD (IX+16),0 | Store 0 at offset 16 of IX. | ||||||||
| ClearFreeSlotFlags_Next | 57592 | ADD IX,DE | IX gains DE. | |||||||
| 57594 | DJNZ ClearFreeSlotFlags_Loop | Decrease B and jump to ClearFreeSlotFlags_Loop until none remain. | ||||||||
| 57596 | RET | Return. | ||||||||
| Prev: 57487 | Up: Map | Next: 57597 |