Prev: 53174 Up: Map Next: 53256
53199: Get Script Pointer
Used by the routine at HandleCommandType_0E_0C_0B_0A.
GetScriptPointer 53199 CALL FindCharacterScriptEntry Call FindCharacterScriptEntry.
53202 LD E,(IX+1) E=*IX+1.
53205 LD D,(IX+2) D=*IX+2.
53208 LD (40921),DE Write DE to *CurrentCharacter_CommandPosition.
53212 LD (IY+1),E Write E to *IY+1.
53215 LD (IY+2),D Write D to *IY+2.
53218 PUSH IX DE=IX (using the stack).
53220 POP DE
53221 PUSH IY Stash IY on the stack.
53223 LD IY,40937 IY=CharacterListPointer.
53227 CALL IncrementPointerAndCompare Call IncrementPointerAndCompare.
53230 LD L,(IX-2) L=*IX-2.
53233 LD H,(IX-1) H=*IX-1.
53236 LD (IY-2),L Write L to *IY-2.
53239 LD (IY-1),H Write H to *IY-1.
53242 LD A,(IX+5) A=*IX+5.
53245 PUSH AF Stash AF on the stack.
53246 CALL ProcessMemoryEntry Call ProcessMemoryEntry.
53249 CALL GetScriptPointerFromTimetable Call GetScriptPointerFromTimetable.
53252 POP AF Restore AF and IY from the stack.
53253 POP IY
53255 RET Return.
Prev: 53174 Up: Map Next: 53256