Prev: 57487 Up: Map Next: 57597
57578: Clear Free Slot Flags
Used by the routine at MakeTiles.
Clears the flags at offset 16 of every slot of the map objects that is free.
Input
B Number of slots
IX Address of the first slot
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