Prev: E855 Up: Map Next: E87B
E859: Routine at E859
Used by the routines at D69F, DEED and E901.
E859 PUSH DE Stash DE and HL on the stack.
E85A PUSH HL
E85B LD HL,($D5B0) HL=*D5B0.
E85E LD DE,$9470 HL-=9470.
E861 SBC HL,DE
E863 JR Z,$E873 Jump to E873 if HL is equal to 00.
E865 LD HL,($D5B0) HL=*D5B0.
E868 LD A,(HL) A=*HL.
E869 INC HL Increment HL by one.
E86A LD ($D5B0),HL Write HL to *D5B0.
E86D LD ($E3BD),A Write A to *E3BD.
E870 POP HL Restore HL and DE from the stack.
E871 POP DE
E872 RET Return.
E873 LD SP,($D22E) SP=*Storage_StackPointer.
E877 IM 1 Interrupt mode 01.
E879 EI Enable interrupts.
E87A RET Return.
Prev: E855 Up: Map Next: E87B