Prev: 877C Up: Map Next: 87B9
8787: Routine at 8787
Used by the routines at 9ECA, 9EDC, AD36 and B3E8.
8787 CALL $88E8 Call 88E8.
878A EXX Switch to the shadow registers.
878B CALL $8826 Call 8826.
878E EXX Switch back to the normal registers.
This entry point is used by the routine at 877C.
878F LD A,($5E56)
8792 SUB (IX+$04)
8795 JP Z,$880D
8798 JP M,$87AA
879B LD C,A
879C LD A,($5E5A)
879F CP C
87A0 JP C,$880D
87A3 SUB C
87A4 LD ($5E5A),A
87A7 JP $87B9
87AA EXX
87AB NEG
87AD LD C,A
87AE LD A,($5E59)
87B1 CP C
87B2 JP C,$880C
87B5 SUB C
87B6 JP $8820
Prev: 877C Up: Map Next: 87B9