![]() |
Routines |
| Prev: 41354 | Up: Map | Next: 41415 |
|
Used by the routines at ApplySavedClause, ProcessLocationDisplay, RecordResultCharacterScript, ReadFirstDisplayLink and ReadNextDisplayLink.
Copies the character-record pointer and jumps to the routine that pointer holds.
|
||||||||||
| FollowRecordPointer | 41391 | PUSH HL | Keep the pointer, copy the record into it, and go to FollowRecordPointer_0. | |||||||
| 41392 | PUSH IX | |||||||||
| 41394 | POP HL | |||||||||
| 41395 | JR FollowRecordPointer_0 | |||||||||
|
Walks the linked character records from the link stored just ahead of the current record, running each one until the link is empty.
|
||||||||||
| FollowRecordPointer_ReadLink | 41397 | LD L,(IX-2) | Read the pointer saved ahead of this record, then call ProcessMemoryEntry to run memory entry. | |||||||
| 41400 | LD H,(IX-1) | |||||||||
| 41403 | CALL ProcessMemoryEntry | |||||||||
| 41406 | PUSH HL | Use the saved pointer as the character record. | ||||||||
| 41407 | POP IX | |||||||||
|
Loop while the link just read is not zero.
|
||||||||||
| FollowRecordPointer_0 | 41409 | LD A,L | Jump back to FollowRecordPointer_ReadLink while the pointer is not zero. | |||||||
| 41410 | OR H | |||||||||
| 41411 | JR NZ,FollowRecordPointer_ReadLink | |||||||||
| 41413 | POP HL | Restore the saved pointer from the stack. | ||||||||
| 41414 | RET | Return. | ||||||||
| Prev: 41354 | Up: Map | Next: 41415 |