6ADA: Routine at 6ADA
6ADA |
LD A,($5B23) |
6ADD |
OR A |
6ADE |
JR NZ,$6B1E |
6AE0 |
LD A,($5B00) |
6AE3 |
CP $02 |
6AE5 |
RET C |
6AE6 |
CP $08 |
6AE8 |
RET NC |
6AE9 |
LD A,($5B1D) |
6AEC |
OR A |
6AED |
RET NZ |
6AEE |
LD A,($5B22) |
6AF1 |
OR A |
6AF2 |
RET NZ |
6AF3 |
LD HL,($5B20) |
6AF6 |
LD A,($5B27) |
6AF9 |
LD C,A |
6AFA |
LD A,$0B |
6AFC |
SUB C |
6AFD |
LD C,A |
6AFE |
LD A,H |
6AFF |
CP C |
6B00 |
RET NC |
6B01 |
LD A,R |
6B03 |
AND $0F |
6B05 |
RET NZ |
6B06 |
LD A,($5B35) |
6B09 |
AND $03 |
6B0B |
LD H,A |
6B0C |
LD L,$1E |
6B0E |
LD ($5B24),HL |
6B11 |
LD A,$58 |
6B13 |
LD C,$2A |
6B15 |
CALL $6BC1 |
6B18 |
LD A,$01 |
6B1A |
LD ($5B23),A |
6B1D |
RET |
6B1E |
DEC A |
6B1F |
JR NZ,$6B6D |
6B21 |
LD HL,($5B24) |
6B24 |
DEC L |
6B25 |
LD ($5B24),HL |
6B28 |
LD DE,($5B20) |
6B2C |
LD A,L |
6B2D |
SUB E |
6B2E |
CP $0A |
6B30 |
JR NC,$6B40 |
6B32 |
LD A,$01 |
6B34 |
LD ($5B1D),A |
6B37 |
INC A |
6B38 |
LD ($5B23),A |
6B3B |
DEC L |
6B3C |
LD ($5B1E),HL |
6B3F |
RET |
6B40 |
LD A,H |
6B41 |
CP D |
6B42 |
RET Z |
6B43 |
JR C,$6B48 |
6B45 |
DEC H |
6B46 |
JR $6B49 |
6B48 |
INC H |
6B49 |
CALL $60F6 |
6B4C |
LD A,(DE) |
6B4D |
INC DE |
6B4E |
CP $2D |
6B50 |
JR Z,$6B55 |
6B52 |
CP $2F |
6B54 |
RET NZ |
6B55 |
LD A,(DE) |
6B56 |
CP $2D |
6B58 |
JR Z,$6B5D |
6B5A |
CP $2F |
6B5C |
RET NZ |
6B5D |
PUSH HL |
6B5E |
CALL $6BAE |
6B61 |
POP HL |
6B62 |
LD ($5B24),HL |
6B65 |
LD A,$58 |
6B67 |
LD C,$2A |
6B69 |
CALL $6BC1 |
6B6C |
RET |
6B6D |
DEC A |
6B6E |
JR NZ,$6B8B |
6B70 |
LD HL,($5B24) |
6B73 |
DEC L |
6B74 |
JR Z,$6B86 |
6B76 |
LD ($5B24),HL |
6B79 |
BIT 0,L |
6B7B |
RET Z |
6B7C |
DEC H |
6B7D |
INC H |
6B7E |
JR Z,$6B83 |
6B80 |
DEC H |
6B81 |
JR $6B49 |
6B83 |
CALL $6BAE |
6B86 |
XOR A |
6B87 |
LD ($5B23),A |
6B8A |
RET |
6B8B |
DEC A |
6B8C |
JR NZ,$6BA2 |
6B8E |
LD A,$04 |
6B90 |
LD ($5B23),A |
6B93 |
LD HL,($5B24) |
6B96 |
DEC L |
6B97 |
LD ($5B24),HL |
6B9A |
LD A,$4D |
6B9C |
LD C,$2B |
6B9E |
CALL $6BC1 |
6BA1 |
RET |
6BA2 |
LD HL,($5B24) |
6BA5 |
DEC L |
6BA6 |
CALL $6BB1 |
6BA9 |
XOR A |
6BAA |
LD ($5B23),A |
6BAD |
RET |
6BAE |
LD HL,($5B24) |
6BB1 |
LD C,$2D |
6BB3 |
XOR A |
6BB4 |
PUSH HL |
6BB5 |
CALL $6114 |
6BB8 |
POP HL |
6BB9 |
XOR A |
6BBA |
LD C,$2D |
6BBC |
INC L |
6BBD |
CALL $6114 |
6BC0 |
RET |
6BC1 |
PUSH HL |
6BC2 |
PUSH AF |
6BC3 |
PUSH BC |
6BC4 |
CALL $6114 |
6BC7 |
POP BC |
6BC8 |
POP AF |
6BC9 |
POP HL |
6BCA |
INC L |
6BCB |
INC A |
6BCC |
CALL $6114 |
6BCF |
RET |