![]() |
Routines |
| Prev: 9B81 | Up: Map | Next: 9BA9 |
|
Used by the routines at Table_FindTheRecord, TableFindAnExit, ConditionSamePlaceAsThePlayer, ExitsFindTheExitToANamedPlace, TableFindAnExitInADirection and ExitsFindTheExitToALocation.
Steps to the next record in a table.
|
||||||||||||||
| Table_StepThroughThreeByteRecords | 9B93 | EXX | Switch register sets before the index is stepped. | |||||||||||
| 9B94 | LD DE,$0003 | Move onto the next record IX=IX+0003. | ||||||||||||
| 9B97 | ADD IX,DE | |||||||||||||
| 9B99 | LD D,(IX+$02) | Read byte 2 of this record. | ||||||||||||
| 9B9C | LD E,(IX+$01) | Read byte 1 of this record. | ||||||||||||
| 9B9F | PUSH DE | Read byte 0 of this record. | ||||||||||||
| 9BA0 | POP IY | |||||||||||||
| 9BA2 | LD A,(IX+$00) | |||||||||||||
| 9BA5 | CP $FF | Set flag if this is the termination character (FF). | ||||||||||||
| 9BA7 | EXX | Exchange registers. | ||||||||||||
| 9BA8 | RET | Return. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: 9B81 | Up: Map | Next: 9BA9 |