Prev: 195F Up: Map Next: 1A2B
1975: OELRoutine14
Used by the routine at OELRoutine12.
OELRoutine14 1975 XOR A
1976 LD (OELVariable02),A
1979 CALL OELRoutine14_1
This entry point is used by the routine at OELRoutine12.
OELRoutine14_0 197C LD A,$01
197E LD (OELVariable02),A
This entry point is used by the routines at OELRoutine02, OELRoutine12, OELRoutine24 and 1E42.
OELRoutine14_1 1981 LD A,(OELVariable02)
1984 AND A
1985 JR Z,OELRoutine14_2
1987 LD HL,(escape_table_pointers)
198A JR OELRoutine14_3
OELRoutine14_2 198C LD HL,(lone_table_pointers)
OELRoutine14_3 198F LD A,(OELVariable01)
1992 LD C,A
1993 LD B,$00
1995 SLA C
1997 RL B
1999 ADD HL,BC
199A LD (OELWord13),HL
199D LD A,(OELVariable01)
19A0 CP $FF
19A2 JR Z,OELRoutine14_10
19A4 LD C,(HL)
19A5 INC HL
19A6 LD B,(HL)
19A7 INC HL
19A8 LD E,(HL)
19A9 INC HL
19AA LD D,(HL)
19AB EX DE,HL
19AC OR A
19AD SBC HL,BC
19AF LD A,(OELVariable12)
19B2 CP L
19B3 JR Z,OELRoutine14_10
19B5 JR C,OELRoutine14_4
19B7 SUB L
19B8 LD B,$01
19BA JR OELRoutine14_5
OELRoutine14_4 19BC LD H,A
19BD LD A,L
19BE SUB H
19BF LD B,$00
OELRoutine14_5 19C1 PUSH AF
19C2 LD (OELVariable13),A
19C5 LD A,B
19C6 LD (OELVariable14),A
19C9 LD A,B
19CA AND A
19CB JR Z,OELRoutine14_7
19CD POP AF
19CE LD C,A
19CF LD B,$00
19D1 LD A,(OELVariable01)
19D4 LD E,A
19D5 LD A,$FF
19D7 SUB E
19D8 LD E,A
19D9 LD HL,(OELWord13)
19DC INC HL
19DD INC HL
OELRoutine14_6 19DE PUSH DE
19DF LD E,(HL)
19E0 INC HL
19E1 LD D,(HL)
19E2 EX DE,HL
19E3 ADD HL,BC
19E4 EX DE,HL
19E5 DEC HL
19E6 LD (HL),E
19E7 INC HL
19E8 LD (HL),D
19E9 INC HL
19EA POP DE
19EB DEC E
19EC JR NZ,OELRoutine14_6
19EE CALL OELRoutine15
19F1 JR OELRoutine14_10
OELRoutine14_7 19F3 POP AF
19F4 LD C,A
19F5 LD B,$00
19F7 LD A,(OELVariable01)
19FA LD E,A
This entry point is used by the routine at save_routine.
OELRoutine14_8 19FB LD A,$FF
19FD SUB E
19FE LD E,A
19FF LD HL,(OELWord13)
1A02 INC HL
1A03 INC HL
OELRoutine14_9 1A04 PUSH DE
1A05 LD E,(HL)
1A06 INC HL
1A07 LD D,(HL)
1A08 EX DE,HL
1A09 OR A
1A0A SBC HL,BC
1A0C EX DE,HL
1A0D DEC HL
1A0E LD (HL),E
1A0F INC HL
1A10 LD (HL),D
1A11 INC HL
1A12 POP DE
1A13 DEC E
1A14 JR NZ,OELRoutine14_9
1A16 CALL OELRoutine15
OELRoutine14_10 1A19 LD HL,(OELWord13)
1A1C LD E,(HL)
1A1D INC HL
1A1E LD D,(HL)
1A1F LD HL,(OELWord12)
1A22 LD A,(OELVariable12)
1A25 LD C,A
1A26 LD B,$00
1A28 LDIR
1A2A RET
Prev: 195F Up: Map Next: 1A2B