Prev: A55D Up: Map Next: A5C4
A59F: Routine at A59F
Used by the routines at 9CE9, 9D48, 9D95, 9DFF, 9E4A, 9FC9, A2E4, B54A, B6DA, B77F, C989, ScriptInterpreter, D102, D1B2, D4A7, D590, D60B, D68C and DC6C.
A59F PUSH BC Stash BC, DE, IX, AF and HL on the stack.
A5A0 PUSH DE
A5A1 PUSH IX
A5A3 PUSH AF
A5A4 PUSH HL
A5A5 LD HL,$000C HL=000C.
A5A8 ADD HL,SP HL+=SP.
A5A9 LD ($A59D),HL Write HL to *A59D.
A5AC POP HL Restore HL from the stack.
A5AD LD A,($A00B) A=*A00B.
A5B0 AND A Jump to A5B6 if A is not zero.
A5B1 JR NZ,$A5B6
A5B3 LD ($A00C),A Write A to *A00C.
A5B6 CALL $A5C4 Call A5C4.
A5B9 POP AF Restore AF, IX, DE, BC and HL from the stack.
A5BA POP IX
A5BC POP DE
A5BD POP BC
A5BE POP HL
A5BF LD SP,($A59D) SP=*A59D.
This entry point is used by the routine at A5CD.
A5C3 JP (HL) Jump to *HL.
Prev: A55D Up: Map Next: A5C4