Prev: A0F7 Up: Map Next: A11A
A104: Increment Pointer And Compare
IncrementPointerAndCompare A104 INC IY Step on two places.
A106 INC IY
IncrementPointerAndCompare_Loop A108 LD L,(IY-$02) Read the previous pointer, clear the carry and save HL on the stack.
A10B LD H,(IY-$01)
A10E AND A
A10F PUSH HL
A110 SBC HL,DE Jump ahead to IncrementPointerAndCompare_Next if the two pointers meet.
A112 JR Z,IncrementPointerAndCompare_Next
A114 POP IY
A116 JR IncrementPointerAndCompare_Loop Jump back to IncrementPointerAndCompare_Loop to read the next schedule entry.
Return.
IncrementPointerAndCompare_Next A118 POP HL Restore the matching pointer from the stack.
A119 RET Return.
Prev: A0F7 Up: Map Next: A11A