Prev: CFB6 Up: Map Next: D008
CFCF: Get Script Pointer
Used by the routine at HandleCommandType_0E_0C_0B_0A.
GetScriptPointer CFCF CALL FindCharacterScriptEntry Call FindCharacterScriptEntry.
CFD2 LD E,(IX+$01) E=*IX+01.
CFD5 LD D,(IX+$02) D=*IX+02.
CFD8 LD ($9FD9),DE Write DE to *CurrentCharacter_CommandPosition.
CFDC LD (IY+$01),E Write E to *IY+01.
CFDF LD (IY+$02),D Write D to *IY+02.
CFE2 PUSH IX DE=IX (using the stack).
CFE4 POP DE
CFE5 PUSH IY Stash IY on the stack.
CFE7 LD IY,$9FE9 IY=CharacterListPointer.
CFEB CALL IncrementPointerAndCompare Call IncrementPointerAndCompare.
CFEE LD L,(IX-$02) L=*IX-02.
CFF1 LD H,(IX-$01) H=*IX-01.
CFF4 LD (IY-$02),L Write L to *IY-02.
CFF7 LD (IY-$01),H Write H to *IY-01.
CFFA LD A,(IX+$05) A=*IX+05.
CFFD PUSH AF Stash AF on the stack.
CFFE CALL ProcessMemoryEntry Call ProcessMemoryEntry.
D001 CALL GetScriptPointerFromTimetable Call GetScriptPointerFromTimetable.
D004 POP AF Restore AF and IY from the stack.
D005 POP IY
D007 RET Return.
Prev: CFB6 Up: Map Next: D008