![]() |
Routines |
| Prev: 41207 | Up: Map | Next: 41242 |
|
Used by the routines at WalkSavedClauseList, LinkCharacterWhenFlagged, CopyPointerToStack, RecordResultCharacterScript, DispatchCharacterScript, GetScriptPointer and CopyClockLink.
Step pointer and compare.
|
||||
| IncrementPointerAndCompare | 41220 | INC IY | Step on two places. | |
| 41222 | INC IY | |||
| IncrementPointerAndCompare_Loop | 41224 | LD L,(IY-2) | Read the previous pointer, clear the carry and save HL on the stack. | |
| 41227 | LD H,(IY-1) | |||
| 41230 | AND A | |||
| 41231 | PUSH HL | |||
| 41232 | SBC HL,DE | Jump ahead to IncrementPointerAndCompare_Next if the two pointers meet. | ||
| 41234 | JR Z,IncrementPointerAndCompare_Next | |||
| 41236 | POP IY | |||
| 41238 | JR IncrementPointerAndCompare_Loop | Jump back to IncrementPointerAndCompare_Loop to read the next schedule entry. | ||
|
Return.
|
||||
| IncrementPointerAndCompare_Next | 41240 | POP HL | Restore the matching pointer from the stack. | |
| 41241 | RET | Return. | ||
| Prev: 41207 | Up: Map | Next: 41242 |