Prev: 44914 Up: Map Next: 44942
44922: Next Light
Used by the routine at MoveLights.
Moves on to the next light, and when all of them have been moved makes the routine return.
Input
IX Light
Output
A 1
F The zero flag is reset
NextLight 44922 LD DE,4 Each light is four bytes long.
44925 ADD IX,DE Move on to the next light.
44927 PUSH IX Copy the address into HL...
44929 POP HL Pop it into HL.
44930 LD DE,44974 Point DE at the end of the lights.
44933 AND A Compare the address with it.
44934 SBC HL,DE
44936 JR C,MoveLights_Light Loop back if there are more lights.
44938 LD A,1 Set A to 1 and clear the zero flag.
44940 AND A
44941 RET Return.
Prev: 44914 Up: Map Next: 44942