Prev: E08F Up: Map Next: E0FD
E0EA: Clear Free Slot Flags
Used by the routine at MakeTiles.
Clears the flags at offset 10 of every slot of the map objects that is free.
Input
B Number of slots
IX Address of the first slot
ClearFreeSlotFlags E0EA LD DE,$001A DE=1A.
ClearFreeSlotFlags_Loop E0ED LD A,(IX+$00) Read offset 00 of IX.
E0F0 CP $FF Jump to ClearFreeSlotFlags_Next if A is not FF.
E0F2 JR NZ,ClearFreeSlotFlags_Next
E0F4 LD (IX+$10),$00 Store 00 at offset 10 of IX.
ClearFreeSlotFlags_Next E0F8 ADD IX,DE IX gains DE.
E0FA DJNZ ClearFreeSlotFlags_Loop Decrease B and jump to ClearFreeSlotFlags_Loop until none remain.
E0FC RET Return.
Prev: E08F Up: Map Next: E0FD