![]() |
Routines |
| Prev: A0F1 | Up: Map | Next: A104 |
|
Used by the routines at FollowLinkPointer, CheckCharacterBeingProcessed, RecordResultCharacterScript, ProcessObjectPointer, DispatchCharacterScript, FindCharacterScriptEntry_StartSearch, FindCharacterSavedPointer and ProcessCharacterAttribute.
Takes the record linked just before this one, or reports that the link is empty.
|
||||||||||||||
|
This will be restored back into HL by the end of the routine.
|
||||||||||||||
| FetchObjectPointerFromStack | A0F7 | PUSH HL | Read the pointer saved ahead of this record. | |||||||||||
| A0F8 | LD L,(IX-$02) | |||||||||||||
| A0FB | LD H,(IX-$01) | |||||||||||||
| A0FE | LD A,L | Is HL zero?. | ||||||||||||
| A0FF | OR H | |||||||||||||
|
Pretty clever way of using the stack here.
|
||||||||||||||
| A100 | EX (SP),HL | Swap the *SP with the object pointer, restoring HL to the original value. | ||||||||||||
| A101 | POP IX | Restore the saved character record from the stack. | ||||||||||||
| A103 | RET | Return. | ||||||||||||
| Prev: A0F1 | Up: Map | Next: A104 |