![]() |
Routines |
| Prev: 44914 | Up: Map | Next: 44942 |
|
Used by the routine at MoveLights.
Moves on to the next light, and when all of them have been moved makes the routine return.
|
||||||||||||||
| 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 |