![]() |
Routines |
| Prev: 39809 | Up: Map | Next: 39849 |
|
Used by the routines at Table_FindTheRecord, TableFindAnExit, ConditionSamePlaceAsThePlayer, ExitsFindTheExitToANamedPlace, TableFindAnExitInADirection and ExitsFindTheExitToALocation.
Steps to the next record in a table.
|
||||||||||||||
| Table_StepThroughThreeByteRecords | 39827 | EXX | Switch register sets before the index is stepped. | |||||||||||
| 39828 | LD DE,3 | Move onto the next record IX=IX+0003. | ||||||||||||
| 39831 | ADD IX,DE | |||||||||||||
| 39833 | LD D,(IX+2) | Read byte 2 of this record. | ||||||||||||
| 39836 | LD E,(IX+1) | Read byte 1 of this record. | ||||||||||||
| 39839 | PUSH DE | Read byte 0 of this record. | ||||||||||||
| 39840 | POP IY | |||||||||||||
| 39842 | LD A,(IX+0) | |||||||||||||
| 39845 | CP 255 | Set flag if this is the termination character (255). | ||||||||||||
| 39847 | EXX | Exchange registers. | ||||||||||||
| 39848 | RET | Return. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: 39809 | Up: Map | Next: 39849 |