You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

7447 lines
121 KiB

; sz (send Zmodem) is a disassembly of CP/M 3 binaries by Wilfried Schmitten released in 1992.
; this file is an attempt to reconstruct the Z80 assembler source code which has been lost
; credit to Wilfried Schmitten for writing this program initially
;
; +-----------------------------------------------------------------+
; | This file is generated by The Interactive Disassembler (IDA) FW |
; | Copyright (c) 1997 by DataRescue sprl, <ida@datarescue.com> |
; | Professional version of IDA is at http://www.idapro.com |
; +-----------------------------------------------------------------+
;
; File Name C:\SZ.COM
; Format COM File
; Base Address: 0000h Range: 0100h - 1F80h Loaded length: 1E80h
; Processor: z80
; Target assembler: Table Driven Assembler (TASM) by Speech Technology Inc.
bdos .equ 0005h
A_READ .equ 3
A_STATIN .equ 7
A_STATOUT .equ 8
C_WRITESTR .equ 9
S_BDOSVER .equ 12
DRV_SET .equ 14
F_SFIRST .equ 17
DRV_GET .equ 25
F_DMAOFF .equ 26
DRV_DPB .equ 31
F_USERNUM .equ 32
S_SYSVAR .equ 49
;----------------------------------------------------------------------------
.org 100h
;----------------------------------------------------------------------------
; S u b r o u t i n e
start:
jp loc_0_10B
;----------------------------------------------------------------------------
.db 5Ah ; Z
.db 33h ; 3
.db 45h ; E
.db 4Eh ; N
.db 56h ; V
.db 1 ;
word_0_109: .dw 0 ; DATA XREF: start+Er
;----------------------------------------------------------------------------
loc_0_10B: ; CODE XREF: startj
ld sp, 2067h
ld hl, (word_0_109)
call sub_0_17C5
ld c, S_BDOSVER
call bdos
cp 30h
jp c, loc_0_21E
ld de, 231h
ld c, C_WRITESTR
call bdos
call sub_0_1F1
ld a, (80h)
or a
jp z, loc_0_226
ld hl, (word_0_1F78)
ld (hl), 2
ld de, 82h
ex de, hl
ld a, 0FFh
call sub_0_1EAB
ld hl, (word_0_1F78)
inc hl
ld a, (hl)
or a
jp z, loc_0_226
inc hl
ld e, (hl)
inc hl
ld d, (hl)
inc hl
ld a, (de)
cp 2Dh
jr nz, loc_0_157
call sub_0_3B3
ld e, (hl)
inc hl
ld d, (hl)
loc_0_157: ; CODE XREF: start+4Fj
ld a, d
or e
jr z, loc_0_196
ld hl, 2003h
ex de, hl
call sub_0_15D4
ld hl, 2003h
xor a
or (hl)
jr nz, loc_0_16D
ld a, (2001h)
ld (hl), a
loc_0_16D: ; CODE XREF: start+67j
ld (byte_0_8AE), a
ld bc, 0Dh
add hl, bc
dec de
ldi
ld de, 2003h
call sub_0_20C
or a
jp nz, loc_0_1E1
ld hl, (word_0_1F78)
ld a, (2002h)
or 0C0h
ld de, 2003h
call sub_0_17C9
ld (word_0_8A6), hl
ld a, c
ld (26F7h), a
loc_0_196: ; CODE XREF: start+59j
push af
push bc
push de
push hl
ld de, 36Ch
call sub_0_1E49
ld de, 36Ch
ld c, C_WRITESTR
call bdos
pop hl
pop de
pop bc
pop af
or a
jp z, loc_0_1E1
ex de, hl
ld h, b
ld l, c
add hl, hl
add hl, hl
add hl, hl
add hl, hl
ex de, hl
add hl, de
ld (26EFh), hl
ld de, (6)
ex de, hl
or a
sbc hl, de
ld (26F3h), hl
ld hl, 0
ld (26F1h), hl
ld (26F5h), hl
ld de, 385h
ld c, C_WRITESTR
call bdos
call sub_0_408
call sub_0_854
call sub_0_46A
loc_0_1E1: ; CODE XREF: start+7Ej start+ADj
; DATA XREF: ...
ld bc, 0
ld (2002h), bc
ld de, 2003h
call sub_0_20C
jp 0
; End of function start
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1F1: ; CODE XREF: start+26p
ld a, (4)
ld b, a
rlca
rlca
rlca
rlca
and 0Fh
ld (2000h), a
ld a, b
and 0Fh
inc a
ld (2001h), a
ld hl, (2000h)
ld (loc_0_1E1+1), hl
ret
; End of function sub_0_1F1
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_20C: ; CODE XREF: start+7Ap start+EBp
ld a, (de)
push af
dec de
ld a, (de)
ld e, a
ld c, F_USERNUM
call bdos
pop af
dec a
ld e, a
ld c, DRV_SET
jp bdos
; End of function sub_0_20C
;----------------------------------------------------------------------------
loc_0_21E: ; CODE XREF: start+1Bj
ld de, 259h
ld c, C_WRITESTR
call bdos
loc_0_226: ; CODE XREF: start+2Dj start+44j
ld de, 26Eh
ld c, C_WRITESTR
call bdos
jp 0
;----------------------------------------------------------------------------
.db 53h ; S
.db 5Ah ; Z
.db 20h ;
.db 66h ; f
.db 6Fh ; o
.db 72h ; r
.db 20h ;
.db 43h ; C
.db 50h ; P
.db 2Fh ; /
.db 4Dh ; M
.db 20h ;
.db 33h ; 3
.db 20h ;
.db 20h ;
.db 20h ;
.db 56h ; V
.db 20h ;
.db 31h ; 1
.db 2Eh ; .
.db 31h ; 1
.db 31h ; 1
.db 0Dh ;
.db 0Ah ;
.db 28h ; (
.db 43h ; C
.db 29h ; )
.db 20h ;
.db 39h ; 9
.db 32h ; 2
.db 20h ;
.db 77h ; w
.db 73h ; s
.db 68h ; h
.db 62h ; b
.db 67h ; g
.db 0Dh ;
.db 0Ah ;
.db 0Ah ;
.db 24h ; $
.db 73h ; s
.db 6Fh ; o
.db 72h ; r
.db 72h ; r
.db 79h ; y
.db 2Ch ; ,
.db 20h ;
.db 43h ; C
.db 50h ; P
.db 2Fh ; /
.db 4Dh ; M
.db 20h ;
.db 33h ; 3
.db 20h ;
.db 54h ; T
.db 6Fh ; o
.db 6Fh ; o
.db 6Ch ; l
.db 0Dh ;
.db 0Ah ;
.db 24h ; $
.db 75h ; u
.db 73h ; s
.db 61h ; a
.db 67h ; g
.db 65h ; e
.db 3Ah ; :
.db 20h ;
.db 73h ; s
.db 7Ah ; z
.db 20h ;
.db 5Bh ; [
.db 2Dh ; -
.db 3Fh ; ?
.db 70h ; p
.db 61h ; a
.db 62h ; b
.db 63h ; c
.db 78h ; x
.db 79h ; y
.db 7Ah ; z
.db 5Dh ; ]
.db 20h ;
.db 5Bh ; [
.db 64h ; d
.db 75h ; u
.db 3Ah ; :
.db 5Dh ; ]
.db 66h ; f
.db 6Eh ; n
.db 0Dh ;
.db 0Ah ;
.db 0Ah ;
.db 20h ;
.db 6Fh ; o
.db 70h ; p
.db 74h ; t
.db 69h ; i
.db 6Fh ; o
.db 6Eh ; n
.db 73h ; s
.db 3Ah ; :
.db 0Dh ;
.db 0Ah ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 3Fh ; ?
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 74h ; t
.db 68h ; h
.db 69h ; i
.db 73h ; s
.db 20h ;
.db 68h ; h
.db 65h ; e
.db 6Ch ; l
.db 70h ; p
.db 0Dh ;
.db 0Ah ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 70h ; p
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 70h ; p
.db 72h ; r
.db 6Fh ; o
.db 74h ; t
.db 65h ; e
.db 63h ; c
.db 74h ; t
.db 20h ;
.db 46h ; F
.db 69h ; i
.db 6Ch ; l
.db 65h ; e
.db 20h ;
.db 61h ; a
.db 74h ; t
.db 20h ;
.db 64h ; d
.db 65h ; e
.db 73h ; s
.db 74h ; t
.db 69h ; i
.db 6Eh ; n
.db 61h ; a
.db 74h ; t
.db 69h ; i
.db 6Fh ; o
.db 6Eh ; n
.db 0Dh ;
.db 0Ah ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 61h ; a
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 61h ; a
.db 70h ; p
.db 70h ; p
.db 65h ; e
.db 6Eh ; n
.db 64h ; d
.db 0Dh ;
.db 0Ah ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 62h ; b
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 72h ; r
.db 65h ; e
.db 63h ; c
.db 65h ; e
.db 69h ; i
.db 76h ; v
.db 65h ; e
.db 20h ;
.db 62h ; b
.db 69h ; i
.db 6Eh ; n
.db 61h ; a
.db 72h ; r
.db 79h ; y
.db 0Dh ;
.db 0Ah ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 63h ; c
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 63h ; c
.db 6Fh ; o
.db 6Eh ; n
.db 76h ; v
.db 65h ; e
.db 72h ; r
.db 74h ; t
.db 20h ;
.db 74h ; t
.db 6Fh ; o
.db 20h ;
.db 6Ch ; l
.db 6Fh ; o
.db 63h ; c
.db 61h ; a
.db 6Ch ; l
.db 20h ;
.db 6Ch ; l
.db 69h ; i
.db 6Eh ; n
.db 65h ; e
.db 66h ; f
.db 65h ; e
.db 65h ; e
.db 64h ; d
.db 0Dh ;
.db 0Ah ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 78h ; x
.db 2Ch ; ,
.db 79h ; y
.db 2Ch ; ,
.db 7Ah ; z
.db 20h ;
.db 50h ; P
.db 72h ; r
.db 6Fh ; o
.db 74h ; t
.db 6Fh ; o
.db 6Bh ; k
.db 6Fh ; o
.db 6Ch ; l
.db 6Ch ; l
.db 0Dh ;
.db 0Ah ;
.db 24h ; $
.db 20h ;
.db 20h ;
.db 20h ;
.db 20h ;
.db 46h ; F
.db 69h ; i
.db 6Ch ; l
.db 65h ; e
.db 28h ; (
.db 73h ; s
.db 29h ; )
.db 20h ;
.db 72h ; r
.db 65h ; e
.db 71h ; q
.db 75h ; u
.db 65h ; e
.db 73h ; s
.db 74h ; t
.db 65h ; e
.db 64h ; d
.db 0Dh ;
.db 0Ah ;
.db 0Ah ;
.db 24h ; $
.db 73h ; s
.db 74h ; t
.db 61h ; a
.db 72h ; r
.db 74h ; t
.db 20h ;
.db 79h ; y
.db 6Fh ; o
.db 75h ; u
.db 72h ; r
.db 20h ;
.db 6Ch ; l
.db 6Fh ; o
.db 63h ; c
.db 61h ; a
.db 6Ch ; l
.db 20h ;
.db 58h ; X
.db 2Fh ; /
.db 59h ; Y
.db 2Fh ; /
.db 5Ah ; Z
.db 4Dh ; M
.db 6Fh ; o
.db 64h ; d
.db 65h ; e
.db 6Dh ; m
.db 20h ;
.db 72h ; r
.db 65h ; e
.db 63h ; c
.db 65h ; e
.db 69h ; i
.db 76h ; v
.db 65h ; e
.db 20h ;
.db 70h ; p
.db 72h ; r
.db 6Fh ; o
.db 67h ; g
.db 72h ; r
.db 61h ; a
.db 6Dh ; m
.db 0Dh ;
.db 0Ah ;
.db 24h ; $
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_3B3: ; CODE XREF: start+51p
push hl
push de
loc_0_3B5: ; CODE XREF: sub_0_3B3+12j
inc de
ld a, (de)
or a
jr z, loc_0_3C7
ld hl, 3CAh
ld bc, 8
cpir
call z, sub_0_629
jr loc_0_3B5
;----------------------------------------------------------------------------
loc_0_3C7: ; CODE XREF: sub_0_3B3+5j
pop de
pop hl
ret
; End of function sub_0_3B3
;----------------------------------------------------------------------------
.db 3Fh ; ?
.db 50h ; P
.db 41h ; A
.db 42h ; B
.db 43h ; C
.db 58h ; X
.db 59h ; Y
.db 5Ah ; Z
.db 0EAh ; ê
.db 3 ;
.db 0E6h ; æ
.db 3 ;
.db 0E2h ; â
.db 3 ;
.db 2 ;
.db 4 ;
.db 0FCh ; ü
.db 3 ;
.db 0F6h ; ö
.db 3 ;
.db 0F0h ; ð
.db 3 ;
.db 26h ; &
.db 2 ;
.db 3Eh ; >
.db 1 ;
.db 18h ;
.db 6 ;
.db 3Eh ; >
.db 3 ;
.db 18h ;
.db 2 ;
.db 3Eh ; >
.db 4 ;
.db 32h ; 2
.db 52h ; R
.db 8 ;
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 32h ; 2
.db 0EBh ; ë
.db 26h ; &
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 32h ; 2
.db 0ECh ; ì
.db 26h ; &
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 32h ; 2
.db 0EEh ; î
.db 26h ; &
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 32h ; 2
.db 0EDh ; í
.db 26h ; &
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_408: ; CODE XREF: start+D8p
xor a
ld (byte_0_479), a
ld (byte_0_47D), a
ld c, 31h
ld de, 478h
call bdos
ld a, h
cpl
ld h, a
ld a, l
cpl
ld l, a
ld (word_0_488), hl
ld c, S_SYSVAR
ld de, 47Ch
call bdos
ld (word_0_484), hl
ld de, (word_0_488)
ld a, h
and d
ld h, a
ld a, l
and e
ld l, a
ld (word_0_47E), hl
ld c, 31h
ld de, 480h
call bdos
ld (word_0_486), hl
ld de, (word_0_488)
ld a, h
and d
ld h, a
ld a, l
and e
ld l, a
ld (word_0_482), hl
loc_0_450: ; CODE XREF: sub_0_46A+Cj
ld a, 0FEh
ld (byte_0_47D), a
ld de, 47Ch
ld c, S_SYSVAR
call bdos
ld a, 0FEh
ld (byte_0_481), a
ld de, 480h
ld c, S_SYSVAR
jp bdos
; End of function sub_0_408
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_46A: ; CODE XREF: start+DEp
ld hl, (word_0_484)
ld (word_0_47E), hl
ld hl, (word_0_486)
ld (word_0_482), hl
jr loc_0_450
; End of function sub_0_46A
;----------------------------------------------------------------------------
.db 28h ; (
byte_0_479: .db 0 ; DATA XREF: sub_0_408+1w
.db 0 ;
.db 0 ;
.db 24h ; $
byte_0_47D: .db 0 ; DATA XREF: sub_0_408+4w sub_0_408+4Aw
word_0_47E: .dw 0 ; DATA XREF: sub_0_408+2Dw
; sub_0_46A+3w
.db 22h ; "
byte_0_481: .db 0 ; DATA XREF: sub_0_408+57w
word_0_482: .dw 0 ; DATA XREF: sub_0_408+45w
; sub_0_46A+9w
word_0_484: .dw 0 ; DATA XREF: sub_0_408+20w
; sub_0_46Ar
word_0_486: .dw 0 ; DATA XREF: sub_0_408+38w
; sub_0_46A+6r
word_0_488: .dw 0 ; DATA XREF: sub_0_408+15w
; sub_0_408+23r ...
.db 3Ah ; :
.db 9Fh ; Ÿ
.db 26h ; &
.db 11h ;
.db 9Dh ; 
.db 4 ;
.db 0CDh ; Í
.db 49h ; I
.db 1Eh ;
.db 11h ;
.db 9Bh ; ›
.db 4 ;
.db 0Eh ;
.db 9 ;
.db 0C3h ; Ã
.db 5 ;
.db 0 ;
.db 0Dh ;
.db 0Ah ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 20h ;
.db 65h ; e
.db 72h ; r
.db 72h ; r
.db 6Fh ; o
.db 72h ; r
.db 28h ; (
.db 73h ; s
.db 29h ; )
.db 0Dh ;
.db 0Ah ;
.db 24h ; $
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_4AC: ; CODE XREF: sub_0_922+39p
ld de, 226Eh
ld hl, 4EDh
ld (hl), 3Ah
inc hl
xor a
ld b, 0Dh
call sub_0_1F03
inc de
call sub_0_1E26
dec de
ld a, (de)
add a, 40h
ld (byte_0_4E9), a
dec de
ld a, (de)
ld de, 4EAh
call sub_0_1E49
ld hl, 26E3h
ld de, 4FCh
call loc_0_71E
ld (hl), 0Dh
inc hl
ld (hl), 0Ah
inc hl
ld (hl), 24h
ld de, 4E7h
ld c, C_WRITESTR
jp bdos
; End of function sub_0_4AC
;----------------------------------------------------------------------------
.db 0Dh ;
.db 0Ah ;
byte_0_4E9: .db 0 ; DATA XREF: sub_0_4AC+17w
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 20h ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_508: ; CODE XREF: seg000:0AFAp
ld hl, 26A4h
ld de, 51Ch
call loc_0_71E
ld (hl), 24h
ld de, 51Bh
ld c, C_WRITESTR
jp bdos
; End of function sub_0_508
;----------------------------------------------------------------------------
.db 0Dh ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_526: ; CODE XREF: sub_0_8C1+33p
ld de, 542h
jr loc_0_52E
; End of function sub_0_526
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_52B: ; CODE XREF: sub_0_8C1+21p
ld de, 533h
loc_0_52E: ; CODE XREF: sub_0_526+3j
ld c, C_WRITESTR
jp bdos
; End of function sub_0_52B
;----------------------------------------------------------------------------
.db 46h ; F
.db 69h ; i
.db 6Ch ; l
.db 65h ; e
.db 20h ;
.db 73h ; s
.db 6Bh ; k
.db 69h ; i
.db 70h ; p
.db 70h ; p
.db 65h ; e
.db 64h ; d
.db 0Dh ;
.db 0Ah ;
.db 24h ; $
.db 63h ; c
.db 61h ; a
.db 6Eh ; n
.db 27h ; '
.db 74h ; t
.db 20h ;
.db 6Fh ; o
.db 70h ; p
.db 65h ; e
.db 6Eh ; n
.db 20h ;
.db 61h ; a
.db 6Eh ; n
.db 79h ; y
.db 20h ;
.db 66h ; f
.db 69h ; i
.db 6Ch ; l
.db 65h ; e
.db 0Dh ;
.db 0Ah ;
.db 24h ; $
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_558: ; CODE XREF: sub_0_15B6+Dp
ld hl, 55Fh
ld (hl), a
inc hl
ld (hl), c
ret
; End of function sub_0_558
;----------------------------------------------------------------------------
.db 0 ;
byte_0_560: .db 0 ; DATA XREF: sub_0_58Dr
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_561: ; CODE XREF: sub_0_561+1Fj
; sub_0_5AD+4p ...
or a
ld hl, (2067h)
ld de, 200h
sbc hl, de
jr z, loc_0_582
ld c, A_STATIN
call bdos
or a
jr z, loc_0_582
ld c, A_READ
call bdos
ld c, a
ld hl, 2067h
call sub_0_5F5
jr sub_0_561
;----------------------------------------------------------------------------
loc_0_582: ; CODE XREF: sub_0_561+9j sub_0_561+11j
ld hl, 560h
or (hl)
ret nz
ld hl, (2067h)
ld a, h
or l
ret
; End of function sub_0_561
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_58D: ; CODE XREF: sub_0_5AD+12p
ld a, (byte_0_560)
or a
ld hl, 2067h
jp z, loc_0_5D0
push af
ld hl, 560h
dec (hl)
dec hl
pop af
ld a, (hl)
ret
; End of function sub_0_58D
;----------------------------------------------------------------------------
.db 0Eh ;
.db 4 ;
.db 5Fh ; _
.db 0C3h ; Ã
.db 5 ;
.db 0 ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_5A6: ; CODE XREF: seg000:12ACp
ld c, A_STATOUT
call bdos
or a
ret
; End of function sub_0_5A6
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_5AD: ; CODE XREF: sub_0_15B6+11p
push bc
ld b, 5Fh
loc_0_5B0: ; CODE XREF: sub_0_5AD+Dj
push bc
call sub_0_561
pop bc
jr nz, loc_0_5BF
call sub_0_5C4
djnz loc_0_5B0
call sub_0_561
loc_0_5BF: ; CODE XREF: sub_0_5AD+8j
call nz, sub_0_58D
pop bc
ret
; End of function sub_0_5AD
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_5C4: ; CODE XREF: sub_0_5AD+Ap
push bc
ld a, 4
ld b, 0
loc_0_5C9: ; CODE XREF: sub_0_5C4+5j sub_0_5C4+8j
djnz loc_0_5C9
dec a
jr nz, loc_0_5C9
pop bc
ret
; End of function sub_0_5C4
;----------------------------------------------------------------------------
loc_0_5D0: ; CODE XREF: sub_0_58D+7j
ld e, (hl)
inc hl
ld d, (hl)
ld a, d
or e
ret z
dec de
ld (hl), d
dec hl
ld (hl), e
ld de, 4
add hl, de
push hl
ld e, (hl)
inc hl
ld d, (hl)
inc hl
add hl, de
ex (sp), hl
inc de
ld a, e
and 0FFh
ld (hl), a
inc hl
ld a, d
and 1
ld (hl), a
pop hl
ld a, 1
or a
ld a, (hl)
ret
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_5F5: ; CODE XREF: sub_0_561+1Cp
or a
push hl
ld e, (hl)
inc hl
ld d, (hl)
ld hl, 200h
sbc hl, de
pop hl
ret z
inc de
ld (hl), e
inc hl
ld (hl), d
inc hl
push hl
ld e, (hl)
inc hl
ld d, (hl)
inc hl
inc hl
inc hl
add hl, de
ex (sp), hl
inc de
ld a, e
and 0FFh
ld (hl), a
inc hl
ld a, d
and 1
ld (hl), a
pop hl
ld (hl), c
ret
; End of function sub_0_5F5
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_61C: ; CODE XREF: sub_0_854+15p
ld hl, 226Dh
ld b, 25h
jr loc_0_625
; End of function sub_0_61C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_623: ; CODE XREF: sub_0_854+1Ep
ld b, 6
loc_0_625: ; CODE XREF: sub_0_61C+5j
xor a
jp sub_0_1F03
; End of function sub_0_623
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_629: ; CODE XREF: sub_0_3B3+Fp sub_0_9D9+21j
; ...
add hl, bc
sla c
add hl, bc
ld c, (hl)
inc hl
ld h, (hl)
ld l, c
jp (hl)
; End of function sub_0_629
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_632: ; CODE XREF: seg000:06D0p sub_0_8C1+18p
; ...
xor a
push bc
push de
push hl
ld (hl), a
ld d, h
ld e, l
inc de
jr loc_0_641
; End of function sub_0_632
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_63C: ; CODE XREF: seg000:0725p seg000:0757p
; ...
push bc
push de
push hl
ldi
loc_0_641: ; CODE XREF: sub_0_632+8j
ldi
ldi
ldi
pop hl
pop de
pop bc
ret
; End of function sub_0_63C
;----------------------------------------------------------------------------
.db 0E5h ; å
.db 0DDh ; Ý
.db 0E1h ; á
.db 0D5h ; Õ
.db 0FDh ; ý
.db 0E1h ; á
.db 0DDh ; Ý
.db 7Eh ; ~
.db 3 ;
.db 0FDh ; ý
.db 0AEh ; ®
.db 3 ;
.db 0F2h ; ò
.db 60h ; `
.db 6 ;
.db 0DDh ; Ý
.db 0AEh ; ®
.db 3 ;
.db 0F8h ; ø
.db 3Fh ; ?
.db 0C9h ; É
.db 0DDh ; Ý
.db 0AEh ; ®
.db 3 ;
.db 0F2h ; ò
.db 6Ch ; l
.db 6 ;
.db 0CDh ; Í
.db 6Ch ; l
.db 6 ;
.db 37h ; 7
.db 18h ;
.db 0F1h ; ñ
.db 0C5h ; Å
.db 0D5h ; Õ
.db 0E5h ; å
.db 0EBh ; ë
.db 0B7h ; ·
.db 6 ;
.db 4 ;
.db 1Ah ;
.db 9Eh ; ž
.db 13h ;
.db 23h ; #
.db 10h ;
.db 0FAh ; ú
.db 0E1h ; á
.db 0D1h ; Ñ
.db 0C1h ; Á
.db 0C9h ; É
.db 0C5h ; Å
.db 0D5h ; Õ
.db 0E5h ; å
.db 6 ;
.db 4 ;
.db 1Ah ;
.db 0AEh ; ®
.db 20h ;
.db 4 ;
.db 13h ;
.db 23h ; #
.db 10h ;
.db 0F8h ; ø
.db 0E1h ; á
.db 0D1h ; Ñ
.db 0C1h ; Á
.db 0C9h ; É
.db 0C5h ; Å
.db 0D5h ; Õ
.db 0E5h ; å
.db 0B7h ; ·
.db 8 ;
.db 3Eh ; >
.db 4 ;
.db 8 ;
.db 1Ah ;
.db 8Eh ; Ž
.db 2 ;
.db 3 ;
.db 13h ;
.db 23h ; #
.db 8 ;
.db 3Dh ; =
.db 20h ;
.db 0F5h ; õ
.db 0E1h ; á
.db 0D1h ; Ñ
.db 0C1h ; Á
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_6A4: ; CODE XREF: seg000:0743p
push bc
push de
push hl
ex de, hl
or a
ex af, af'
ld a, 4
loc_0_6AC: ; CODE XREF: sub_0_6A4+11j
ex af, af'
ld a, (de)
sbc a, (hl)
ld (bc), a
inc bc
inc hl
inc de
ex af, af'
dec a
jr nz, loc_0_6AC
ex af, af'
pop hl
pop de
pop bc
ret
; End of function sub_0_6A4
;----------------------------------------------------------------------------
.db 0C5h ; Å
.db 0E5h ; å
.db 3Eh ; >
.db 1 ;
.db 86h ; †
.db 77h ; w
.db 30h ; 0
.db 9 ;
.db 6 ;
.db 3 ;
.db 23h ; #
.db 3Eh ; >
.db 0 ;
.db 8Eh ; Ž
.db 77h ; w
.db 10h ;
.db 0F9h ; ù
.db 0E1h ; á
.db 0C1h ; Á
.db 0C9h ; É
;----------------------------------------------------------------------------
loc_0_6D0: ; CODE XREF: sub_0_12DC+Cj
call sub_0_632
push bc
push hl
ld a, (hl)
sub 1
ld (hl), a
ld b, 3
loc_0_6DB: ; CODE XREF: seg000:06E0j
inc hl
ld a, (hl)
sbc a, 0
ld (hl), a
djnz loc_0_6DB
pop hl
pop bc
ret
;----------------------------------------------------------------------------
.db 0C5h ; Å
.db 0D5h ; Õ
.db 0E5h ; å
.db 0EBh ; ë
.db 3Eh ; >
.db 4 ;
.db 0F5h ; õ
.db 1Ah ;
.db 0A6h ; ¦
.db 2 ;
.db 3 ;
.db 13h ;
.db 23h ; #
.db 0F1h ; ñ
.db 3Dh ; =
.db 20h ;
.db 0F5h ; õ
.db 0E1h ; á
.db 0D1h ; Ñ
.db 0C1h ; Á
.db 0C9h ; É
.db 0 ;
.db 0CAh ; Ê
.db 9Ah ; š
.db 3Bh ; ;
.db 0 ;
.db 0E1h ; á
.db 0F5h ; õ
.db 5 ;
.db 80h ; €
.db 96h ; –
.db 98h ; ˜
.db 0 ;
.db 40h ; @
.db 42h ; B
.db 0Fh ;
.db 0 ;
.db 0A0h ;  
.db 86h ; †
.db 1 ;
.db 0 ;
.db 10h ;
.db 27h ; '
.db 0 ;
.db 0 ;
.db 0E8h ; è
.db 3 ;
.db 0 ;
.db 0 ;
.db 64h ; d
.db 0 ;
.db 0 ;
.db 0 ;
.db 0Ah ;
.db 0 ;
.db 0 ;
.db 0 ;
;----------------------------------------------------------------------------
loc_0_71E: ; CODE XREF: sub_0_4AC+28p
; sub_0_508+6p ...
ld (word_0_769), de
ld de, 2293h
call sub_0_63C
ld c, 9
ld de, 6F6h
xor a
ld (byte_0_764), a
ld a, 30h
ld (byte_0_75E), a
inc de
inc de
inc de
inc de
ld b, 0Ah
loc_0_73C: ; CODE XREF: seg000:075Bj
push bc
ld hl, 2293h
ld bc, 2297h
call sub_0_6A4
pop bc
jr c, unk_0_75D
push de
ld a, (byte_0_75E)
inc a
ld (byte_0_75E), a
ld de, 2293h
ld hl, 2297h
call sub_0_63C
pop de
djnz loc_0_73C
;----------------------------------------------------------------------------
unk_0_75D: .db 3Eh ; > ; CODE XREF: seg000:0747j
byte_0_75E: .db 30h ; DATA XREF: seg000:0733w seg000:074Ar
; ...
.db 0FEh ; þ
.db 30h ; 0
.db 20h ;
.db 5 ;
.db 3Eh ; >
byte_0_764: .db 0 ; DATA XREF: seg000:072Ew
.db 0B7h ; ·
.db 28h ; (
.db 0Dh ;
.db 21h ; !
word_0_769: .dw 0 ; DATA XREF: seg000:071Ew
.db 77h ; w
.db 23h ; #
.db 22h ; "
.db 69h ; i
.db 7 ;
.db 3Eh ; >
.db 30h ; 0
.db 32h ; 2
.db 64h ; d
.db 7 ;
.db 0Dh ;
.db 20h ;
.db 0B9h ; ¹
.db 3Ah ; :
.db 93h ; “
.db 22h ; "
.db 0E6h ; æ
.db 0Fh ;
.db 0C6h ; Æ
.db 30h ; 0
.db 2Ah ; *
.db 69h ; i
.db 7 ;
.db 77h ; w
.db 23h ; #
.db 36h ; 6
.db 0 ;
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_787: ; CODE XREF: seg000:0B26p
push af
loc_0_788: ; DATA XREF: sub_0_787+3w sub_0_12DC+3w
add a, 0
ld (loc_0_788+1), a
pop af
ret
; End of function sub_0_787
;----------------------------------------------------------------------------
.db 20h ;
.db 83h ; ƒ
.db 0B8h ; ¸
.db 0EDh ; í
.db 0E3h ; ã
.db 20h ;
.db 0BBh ; »
.db 0DEh ; Þ
;----------------------------------------------------------------------------
loc_0_797: ; CODE XREF: sub_0_118C+4Dp
; sub_0_118C+5Cp
push af
;----------------------------------------------------------------------------
.db 0FDh ; ý
.db 21h ; !
word_0_79A: .dw 229Fh ; DATA XREF: sub_0_7CF+2r
.db 0DDh ; Ý
.db 21h ; !
.db 9Bh ; ›
.db 22h ; "
.db 0DDh ; Ý
.db 0AEh ; ®
.db 0 ;
.db 26h ; &
.db 0 ;
.db 6Fh ; o
.db 29h ; )
.db 29h ; )
.db 44h ; D
.db 4Dh ; M
.db 0FDh ; ý
.db 9 ;
.db 0FDh ; ý
.db 7Eh ; ~
.db 0 ;
.db 0DDh ; Ý
.db 0AEh ; ®
.db 1 ;
.db 0DDh ; Ý
.db 77h ; w
.db 0 ;
.db 0FDh ; ý
.db 7Eh ; ~
.db 1 ;
.db 0DDh ; Ý
.db 0AEh ; ®
.db 2 ;
.db 0DDh ; Ý
.db 77h ; w
.db 1 ;
.db 0FDh ; ý
.db 7Eh ; ~
.db 2 ;
.db 0DDh ; Ý
.db 0AEh ; ®
.db 3 ;
.db 0DDh ; Ý
.db 77h ; w
.db 2 ;
.db 0FDh ; ý
.db 7Eh ; ~
.db 3 ;
.db 0DDh ; Ý
.db 77h ; w
.db 3 ;
.db 0F1h ; ñ
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_7CF: ; CODE XREF: sub_0_854+18p
push de
push hl
ld hl, (word_0_79A)
ld bc, 3FFh
add hl, bc
push hl
pop iy
ld ix, 78Fh
xor a
loc_0_7E0: ; CODE XREF: sub_0_7CF+5Bj
push af
ld hl, 0FFFFh
ld de, 0FFFFh
xor e
ld e, a
ld b, 8
loc_0_7EB: ; CODE XREF: sub_0_7CF+3Bj
scf
rr h
rr l
rr d
rr e
jr nc, loc_0_80A
ld a, e
xor (ix+0)
ld e, a
ld a, d
xor (ix+1)
ld d, a
ld a, l
xor (ix+2)
ld l, a
ld a, h
xor (ix+3)
ld h, a
loc_0_80A: ; CODE XREF: sub_0_7CF+25j
djnz loc_0_7EB
ld a, h
cpl
ld (iy+0), a
dec iy
ld a, l
cpl
ld (iy+0), a
dec iy
ld a, d
cpl
ld (iy+0), a
dec iy
ld a, e
cpl
ld (iy+0), a
dec iy
pop af
inc a
jr nz, loc_0_7E0
pop hl
pop de
ret
; End of function sub_0_7CF
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_82F: ; CODE XREF: seg000:0B29p sub_0_118C+20p
; ...
push af
loc_0_830: ; DATA XREF: sub_0_82F+16w
; sub_0_118C+3Fr ...
ld hl, 0
ld de, 1021h
xor h
ld h, a
ld b, 8
loc_0_83A: ; CODE XREF: sub_0_82F+14j
add hl, hl
jr nc, loc_0_843
ld a, h
xor d
ld h, a
ld a, l
xor e
ld l, a
loc_0_843: ; CODE XREF: sub_0_82F+Cj
djnz loc_0_83A
ld (loc_0_830+1), hl
pop af
ret
; End of function sub_0_82F
;----------------------------------------------------------------------------
.db 0 ;
.db 4 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0FCh ; ü
.db 0FFh ; ÿ
.db 0FFh ; ÿ
byte_0_852: .db 4 ; DATA XREF: sub_0_854r sub_0_854+9w
; ...
.db 20h ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_854: ; CODE XREF: start+DBp
ld a, (byte_0_852)
cp 4
jr nz, loc_0_860
ld a, 3
ld (byte_0_852), a
loc_0_860: ; CODE XREF: sub_0_854+5j
xor a
ld hl, 269Fh
ld b, 50h
call sub_0_1F03
call sub_0_61C
call sub_0_7CF
ld hl, 2067h
call sub_0_623
ld hl, (26F3h)
call sub_0_88A
ld hl, 400h
ld (26CFh), hl
call sub_0_8C1
jr c, loc_0_888
or a
ret
;----------------------------------------------------------------------------
loc_0_888: ; CODE XREF: sub_0_854+30j
scf
ret
; End of function sub_0_854
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_88A: ; CODE XREF: sub_0_854+24p
xor a
ld c, a
ld b, 8
ld a, h
loc_0_88F: ; CODE XREF: sub_0_88A+Cj
rlca
set 7, c
jr c, loc_0_898
rr c
djnz loc_0_88F
loc_0_898: ; CODE XREF: sub_0_88A+8j
ld a, h
and c
ld h, a
ld l, 0
ld (26F3h), hl
dec hl
ld (26DAh), hl
ret
; End of function sub_0_88A
;----------------------------------------------------------------------------
unk_0_8A5: .db 21h ; ! ; CODE XREF: sub_0_8C1+12p
word_0_8A6: .dw 0 ; DATA XREF: start+8Fw
.db 11h ;
.db 6Dh ; m
.db 22h ; "
.db 0EDh ; í
.db 0A0h ;  
.db 3Eh ; >
byte_0_8AE: .db 0 ; DATA XREF: start+6Dw
.db 12h ;
.db 13h ;
.db 1 ;
.db 0Bh ;
.db 0 ;
.db 0EDh ; í
.db 0B0h ; °
.db 2Ah ; *
.db 0A6h ; ¦
.db 8 ;
.db 1 ;
.db 10h ;
.db 0 ;
.db 9 ;
.db 22h ; "
.db 0A6h ; ¦
.db 8 ;
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_8C1: ; CODE XREF: sub_0_854+2Dp
xor a
ld (26A9h), a
ld a, 0FFh
ld (26AEh), a
ld a, (26F7h)
or a
jr z, loc_0_8F4
ld b, a
loc_0_8D1: ; CODE XREF: sub_0_8C1+2Bj
push bc
ld a, b
call unk_0_8A5
ld hl, 26DCh
call sub_0_632
call sub_0_922
push af
cp 5
call z, sub_0_52B
call sub_0_1C09
pop af
pop bc
jr c, loc_0_8F7
djnz loc_0_8D1
ld a, (26D9h)
or a
jr nz, loc_0_8FE
loc_0_8F4: ; CODE XREF: sub_0_8C1+Dj
call sub_0_526
loc_0_8F7: ; CODE XREF: sub_0_8C1+29j
call sub_0_15A8
ld a, 0FFh
scf
ret
;----------------------------------------------------------------------------
loc_0_8FE: ; CODE XREF: sub_0_8C1+31j
ld a, (byte_0_852)
cp 3
jr c, loc_0_920
jr nz, loc_0_91D
xor a
ld (26E1h), a
ld hl, (26EFh)
ld b, 80h
call sub_0_1F03
ld hl, 80h
ld (26E7h), hl
call loc_0_AE4
xor a
loc_0_91D: ; CODE XREF: sub_0_8C1+44j
call nz, sub_0_10DD
loc_0_920: ; CODE XREF: sub_0_8C1+42j
xor a
ret
; End of function sub_0_8C1
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_922: ; CODE XREF: sub_0_8C1+1Bp
ld de, 226Eh
call sub_0_1DA3
ld de, 0
srl h
rr l
rr e
ld d, l
ld l, h
ld h, 0
ld (26E3h), de
ld (26E5h), hl
ld hl, 26C3h
call sub_0_632
ld de, 226Eh
call sub_0_1BDB
jr z, loc_0_94C
xor a
ret
;----------------------------------------------------------------------------
loc_0_94C: ; CODE XREF: sub_0_922+26j
xor a
ld (269Fh), a
ld a, 0
ld (26D6h), a
ld (26D7h), a
ld de, 226Eh
call sub_0_4AC
ld hl, 26D9h
inc (hl)
call sub_0_972
ret c
cp 5
ret z
ld a, (byte_0_852)
cp 4
call nz, sub_0_A4C
ret
; End of function sub_0_922
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_972: ; CODE XREF: sub_0_922+40p
ld hl, (26EFh)
xor a
ld b, 80h
call sub_0_1F03
ld de, 226Fh
call sub_0_1E26
ld b, 0Ch
loc_0_983: ; CODE XREF: sub_0_972+1Bj
ld a, (hl)
call loc_0_1F10
jr nz, loc_0_98C
or 20h
ld (hl), a
loc_0_98C: ; CODE XREF: sub_0_972+15j
inc hl
djnz loc_0_983
ld hl, (26EFh)
call sub_0_1E9E
ld (hl), 0
inc hl
ld de, 26E3h
ex de, hl
push de
call loc_0_71E
pop de
ld a, (byte_0_852)
cp 3
ccf
ret nc
ld a, (26D8h)
cp 68h
call nz, sub_0_9D9
ret c
xor a
ld (26E1h), a
ld a, (byte_0_852)
cp 3
ld hl, 80h
ld (26E7h), hl
jp z, loc_0_AE4
ld hl, (26EFh)
call sub_0_1E9E
inc hl
call sub_0_1E9E
ld de, (26EFh)
or a
sbc hl, de
inc hl
ex de, hl
jp loc_0_C8B
; End of function sub_0_972
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_9D9: ; CODE XREF: sub_0_972+3Bp
ld a, (byte_0_852)
cp 3
ld a, 0
call nc, sub_0_1204
xor a
ld (26E2h), a
ld (26E0h), a
loc_0_9EA: ; CODE XREF: sub_0_9D9+2Aj
ld b, 0FFh
call sub_0_15B6
ld (26E0h), a
ld hl, 0A31h
ld bc, 5
cpir
jp z, sub_0_629
ld a, (26E0h)
ld (26E2h), a
jr loc_0_9EA
; End of function sub_0_9D9
;----------------------------------------------------------------------------
.db 6 ;
.db 14h ;
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 32h ; 2
.db 0E0h ; à
.db 26h ; &
.db 0FEh ; þ
.db 18h ;
.db 20h ;
.db 0ECh ; ì
.db 21h ; !
.db 0E2h ; â
.db 26h ; &
.db 0BEh ; ¾
.db 20h ;
.db 0E6h ; æ
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 3Eh ; >
.db 10h ;
.db 32h ; 2
.db 0A9h ; ©
.db 26h ; &
.db 0AFh ; ¯
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 0CDh ; Í
.db 0F0h ; ð
.db 0Bh ;
.db 0D8h ; Ø
.db 3Eh ; >
.db 4 ;
.db 32h ; 2
.db 52h ; R
.db 8 ;
.db 0AFh ; ¯
.db 0C9h ; É
.db 2Ah ; *
.db 0FEh ; þ
.db 43h ; C
.db 15h ;
.db 18h ;
.db 5 ;
.db 0Ah ;
.db 20h ;
.db 0Ah ;
.db 1Bh ;
.db 0Ah ;
.db 22h ; "
.db 0Ah ;
.db 26h ; &
.db 0Ah ;
.db 15h ;
.db 43h ; C
.db 0FEh ; þ
.db 18h ;
.db 76h ; v
.db 0Ah ;
.db 0DDh ; Ý
.db 0Ah ;
.db 7Ah ; z
.db 0Ah ;
.db 7Fh ; 
.db 0Ah ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_A4C: ; CODE XREF: sub_0_922+4Cp
xor a
ld (26A9h), a
ld a, 0FFh
ld (26AEh), a
ld hl, 26B7h
call sub_0_632
ld hl, 26DCh
call sub_0_632
loc_0_A61: ; CODE XREF: sub_0_A4C+25j
ld b, 0FFh
call sub_0_15B6
ld (26E0h), a
ld hl, 0A40h
ld bc, 4
cpir
jr nz, loc_0_A61
jp sub_0_629
; End of function sub_0_A4C
;----------------------------------------------------------------------------
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 3Eh ; >
.db 10h ;
.db 32h ; 2
.db 0A9h ; ©
.db 26h ; &
.db 0AFh ; ¯
.db 32h ; 2
.db 0E1h ; á
.db 26h ; &
.db 21h ; !
.db 0E3h ; ã
.db 26h ; &
.db 11h ;
.db 0B7h ; ·
.db 26h ; &
.db 1 ;
.db 0C7h ; Ç
.db 26h ; &
.db 0CDh ; Í
.db 0A4h ; ¤
.db 6 ;
.db 21h ; !
.db 0C7h ; Ç
.db 26h ; &
.db 11h ;
.db 4Ah ; J
.db 8 ;
.db 0CDh ; Í
.db 4Bh ; K
.db 6 ;
.db 21h ; !
.db 0 ;
.db 4 ;
.db 30h ; 0
.db 3 ;
.db 21h ; !
.db 80h ; €
.db 0 ;
.db 22h ; "
.db 0E7h ; ç
.db 26h ; &
.db 0EDh ; í
.db 4Bh ; K
.db 0E7h ; ç
.db 26h ; &
.db 0CDh ; Í
.db 0A2h ; ¢
.db 10h ;
.db 38h ; 8
.db 31h ; 1
.db 0B7h ; ·
.db 28h ; (
.db 4 ;
.db 7Ah ; z
.db 0B3h ; ³
.db 28h ; (
.db 16h ;
.db 21h ; !
.db 0E1h ; á
.db 26h ; &
.db 34h ; 4
.db 0CDh ; Í
.db 0E4h ; ä
.db 0Ah ;
.db 0D8h ; Ø
.db 21h ; !
.db 0B7h ; ·
.db 26h ; &
.db 11h ;
.db 0E7h ; ç
.db 26h ; &
.db 1 ;
.db 0B7h ; ·
.db 26h ; &
.db 0CDh ; Í
.db 8Eh ; Ž
.db 6 ;
.db 18h ;
.db 0BAh ; º
.db 6 ;
.db 5 ;
.db 0C5h ; Å
.db 3Eh ; >
.db 4 ;
.db 0CDh ; Í
.db 0A6h ; ¦
.db 12h ;
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0FEh ; þ
.db 6 ;
.db 28h ; (
.db 7 ;
.db 0C1h ; Á
.db 10h ;
.db 0EEh ; î
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 0C1h ; Á
.db 0AFh ; ¯
.db 0C9h ; É
;----------------------------------------------------------------------------
loc_0_AE4: ; CODE XREF: sub_0_8C1+58p
; sub_0_972+4Ej
xor a
ld (26E0h), a
ld (269Fh), a
ld a, (26E0h)
ld (26E2h), a
ld hl, 26B7h
ld de, 26A4h
call sub_0_63C
call sub_0_508
ld hl, (26E7h)
ld (word_0_B34), hl
ld a, l
cp 80h
ld a, 1
jr z, loc_0_B0C
ld a, 2
loc_0_B0C: ; CODE XREF: seg000:0B08j
call loc_0_12A6
ld a, (26E1h)
call loc_0_12A6
ld a, (26E1h)
cpl
call loc_0_12A6
call sub_0_12DC
ld ix, (26EFh)
ld a, (ix+0)
call sub_0_787
call sub_0_82F
push ix
call loc_0_12A6
pop ix
;----------------------------------------------------------------------------
.db 21h ; !
word_0_B34: .dw 0 ; DATA XREF: seg000:0B00w
.db 2Bh ; +
.db 22h ; "
.db 34h ; 4
.db 0Bh ;
.db 0DDh ; Ý
.db 23h ; #
.db 7Ch ; |
.db 0B5h ; µ
.db 20h ;
.db 0E3h ; ã
.db 3Ah ; :
.db 0A9h ; ©
.db 26h ; &
.db 0FEh ; þ
.db 10h ;
.db 28h ; (
.db 5 ;
.db 3Ah ; :
.db 89h ; ‰
.db 7 ;
.db 18h ;
.db 9 ;
.db 3Ah ; :
.db 32h ; 2
.db 8 ;
.db 0CDh ; Í
.db 0A6h ; ¦
.db 12h ;
.db 3Ah ; :
.db 31h ; 1
.db 8 ;
.db 0CDh ; Í
.db 0A6h ; ¦
.db 12h ;
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 32h ; 2
.db 0E0h ; à
.db 26h ; &
.db 3Ah ; :
.db 0E0h ; à
.db 26h ; &
.db 21h ; !
.db 9Ch ; œ
.db 0Bh ;
.db 1 ;
.db 6 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 0C3h ; Ã
.db 0BAh ; º
.db 0Bh ;
.db 3Ah ; :
.db 0E2h ; â
.db 26h ; &
.db 0FEh ; þ
.db 18h ;
.db 0C2h ; Â
.db 0BAh ; º
.db 0Bh ;
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 0C3h ; Ã
.db 0DDh ; Ý
.db 0Bh ;
.db 3Ah ; :
.db 0AEh ; ®
.db 26h ; &
.db 0FEh ; þ
.db 0FFh ; ÿ
.db 20h ;
.db 5 ;
.db 3Eh ; >
.db 10h ;
.db 32h ; 2
.db 0A9h ; ©
.db 26h ; &
.db 0C3h ; Ã
.db 0DDh ; Ý
.db 0Bh ;
.db 3Eh ; >
.db 0 ;
.db 32h ; 2
.db 0AEh ; ®
.db 26h ; &
.db 0AFh ; ¯
.db 32h ; 2
.db 9Fh ; Ÿ
.db 26h ; &
.db 0C9h ; É
.db 0C3h ; Ã
.db 0BAh ; º
.db 0Bh ;
.db 18h ;
.db 0FEh ; þ
.db 43h ; C
.db 15h ;
.db 6 ;
.db 0FFh ; ÿ
.db 99h ; ™
.db 0Bh ;
.db 8Fh ; 
.db 0Bh ;
.db 8Ch ; Œ
.db 0Bh ;
.db 80h ; €
.db 0Bh ;
.db 7Dh ; }
.db 0Bh ;
.db 71h ; q
.db 0Bh ;
.db 0FEh ; þ
.db 15h ;
.db 43h ; C
.db 18h ;
.db 0D3h ; Ó
.db 0Bh ;
.db 60h ; `
.db 0Bh ;
.db 60h ; `
.db 0Bh ;
.db 0DDh ; Ý
.db 0Bh ;
.db 3Ah ; :
.db 0E0h ; à
.db 26h ; &
.db 32h ; 2
.db 0E2h ; â
.db 26h ; &
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 32h ; 2
.db 0E0h ; à
.db 26h ; &
.db 21h ; !
.db 0AEh ; ®
.db 0Bh ;
.db 1 ;
.db 4 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 3Ah ; :
.db 0E2h ; â
.db 26h ; &
.db 0FEh ; þ
.db 18h ;
.db 0CAh ; Ê
.db 79h ; y
.db 0Bh ;
.db 18h ;
.db 0DDh ; Ý
.db 21h ; !
.db 9Fh ; Ÿ
.db 26h ; &
.db 34h ; 4
.db 0CDh ; Í
.db 8Ah ; Š
.db 4 ;
.db 3Ah ; :
.db 9Fh ; Ÿ
.db 26h ; &
.db 0FEh ; þ
.db 5 ;
.db 0DAh ; Ú
.db 0EBh ; ë
.db 0Ah ;
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 3Eh ; >
.db 0Bh ;
.db 32h ; 2
.db 0F8h ; ø
.db 26h ; &
.db 21h ; !
.db 0F8h ; ø
.db 26h ; &
.db 35h ; 5
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C8h ; È
.db 0CDh ; Í
.db 0EBh ; ë
.db 12h ;
.db 21h ; !
.db 79h ; y
.db 0Ch ;
.db 1 ;
.db 6 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 3Eh ; >
.db 6 ;
.db 0CDh ; Í
.db 4 ;
.db 12h ;
.db 18h ;
.db 0E3h ; ã
.db 21h ; !
.db 0A0h ;  
.db 26h ; &
.db 11h ;
.db 0AAh ; ª
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 3Eh ; >
.db 3 ;
.db 0CDh ; Í
.db 4 ;
.db 12h ;
.db 18h ;
.db 0D3h ; Ó
.db 21h ; !
.db 0AAh ; ª
.db 26h ; &
.db 0CDh ; Í
.db 32h ; 2
.db 6 ;
.db 3Eh ; >
.db 0 ;
.db 0CDh ; Í
.db 4 ;
.db 12h ;
.db 18h ;
.db 0C6h ; Æ
.db 0DDh ; Ý
.db 21h ; !
.db 0A0h ;  
.db 26h ; &
.db 0DDh ; Ý
.db 7Eh ; ~
.db 3 ;
.db 32h ; 2
.db 0D4h ; Ô
.db 26h ; &
.db 0E6h ; æ
.db 20h ;
.db 32h ; 2
.db 0A9h ; ©
.db 26h ; &
.db 3Ah ; :
.db 0D4h ; Ô
.db 26h ; &
.db 0E6h ; æ
.db 40h ; @
.db 32h ; 2
.db 0D5h ; Õ
.db 26h ; &
.db 0DDh ; Ý
.db 6Eh ; n
.db 0 ;
.db 0DDh ; Ý
.db 66h ; f
.db 1 ;
.db 22h ; "
.db 0CBh ; Ë
.db 26h ; &
.db 7Ch ; |
.db 0B5h ; µ
.db 20h ;
.db 0Bh ;
.db 3Ah ; :
.db 53h ; S
.db 8 ;
.db 17h ;
.db 17h ;
.db 67h ; g
.db 2Eh ; .
.db 0 ;
.db 22h ; "
.db 0CBh ; Ë
.db 26h ; &
.db 21h ; !
.db 0 ;
.db 4 ;
.db 22h ; "
.db 0CFh ; Ï
.db 26h ; &
.db 0AFh ; ¯
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 0DDh ; Ý
.db 21h ; !
.db 0A0h ;  
.db 26h ; &
.db 0DDh ; Ý
.db 7Eh ; ~
.db 3 ;
.db 0FEh ; þ
.db 12h ;
.db 0CAh ; Ê
.db 0F5h ; õ
.db 0Bh ;
.db 0C3h ; Ã
.db 0Bh ;
.db 0Ch ;
.db 0Eh ;
.db 12h ;
.db 1 ;
.db 10h ;
.db 0FEh ; þ
.db 0 ;
.db 6Ah ; j
.db 0Ch ;
.db 66h ; f
.db 0Ch ;
.db 66h ; f
.db 0Ch ;
.db 2Fh ; /
.db 0Ch ;
.db 22h ; "
.db 0Ch ;
.db 12h ;
.db 0Ch ;
;----------------------------------------------------------------------------
loc_0_C8B: ; CODE XREF: sub_0_972+64j
ld (word_0_CD2), de
ld hl, 26B7h
call sub_0_632
ld ix, 26AAh
ld a, (26EEh)
cp 0FFh
ld a, 1
jr z, loc_0_CAC
ld a, (26EDh)
cp 0FFh
ld a, 2
jr z, loc_0_CAC
xor a
loc_0_CAC: ; CODE XREF: seg000:0CA0j seg000:0CA9j
ld (ix+3), a
ld a, (26EBh)
cp 0FFh
ld a, 7
jr z, loc_0_CC2
ld a, (26ECh)
cp 0FFh
ld a, 3
jr z, loc_0_CC2
xor a
loc_0_CC2: ; CODE XREF: seg000:0CB6j seg000:0CBFj
ld (ix+2), a
xor a
ld (ix+1), a
ld (ix+0), a
ld a, 4
call sub_0_118C
;----------------------------------------------------------------------------
.db 1 ;
word_0_CD2: .dw 0 ; DATA XREF: seg000:0C8Bw
.db 3Eh ; >
.db 6Bh ; k
.db 0CDh ; Í
.db 0FDh ; ý
.db 10h ;
.db 0CDh ; Í
.db 0EBh ; ë
.db 12h ;
.db 21h ; !
.db 2Fh ; /
.db 0Dh ;
.db 1 ;
.db 8 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 18h ;
.db 0ACh ; ¬
.db 6 ;
.db 32h ; 2
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 38h ; 8
.db 0A5h ; ¥
.db 0FEh ; þ
.db 2Ah ; *
.db 28h ; (
.db 0E5h ; å
.db 18h ;
.db 0F3h ; ó
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 0C3h ; Ã
.db 0D9h ; Ù
.db 0Ch ;
.db 3Eh ; >
.db 5 ;
.db 0C9h ; É
.db 21h ; !
.db 0B3h ; ³
.db 26h ; &
.db 11h ;
.db 0FAh ; ú
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 0CDh ; Í
.db 8Fh ; 
.db 0Fh ;
.db 0D8h ; Ø
.db 21h ; !
.db 0B3h ; ³
.db 26h ; &
.db 11h ;
.db 0AFh ; ¯
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 11h ;
.db 0B7h ; ·
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 11h ;
.db 0BBh ; »
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 11h ;
.db 0BFh ; ¿
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 0EBh ; ë
.db 0CDh ; Í
.db 0D3h ; Ó
.db 6 ;
.db 0C3h ; Ã
.db 47h ; G
.db 0Dh ;
.db 1 ;
.db 10h ;
.db 0FEh ; þ
.db 7 ;
.db 8 ;
.db 0Dh ;
.db 5 ;
.db 9 ;
.db 0 ;
.db 0Dh ;
.db 0FDh ; ý
.db 0Ch ;
.db 0FAh ; ú
.db 0Ch ;
.db 0F6h ; ö
.db 0Ch ;
.db 0F6h ; ö
.db 0Ch ;
.db 0F6h ; ö
.db 0Ch ;
.db 0F6h ; ö
.db 0Ch ;
.db 0E9h ; é
.db 0Ch ;
.db 0AFh ; ¯
.db 32h ; 2
.db 0D3h ; Ó
.db 26h ; &
.db 32h ; 2
.db 9Fh ; Ÿ
.db 26h ; &
.db 0C3h ; Ã
.db 0B6h ; ¶
.db 0Dh ;
.db 0AFh ; ¯
.db 32h ; 2
.db 0F9h ; ù
.db 26h ; &
.db 3Eh ; >
.db 0FFh ; ÿ
.db 0CDh ; Í
.db 0D1h ; Ñ
.db 0Eh ;
.db 21h ; !
.db 6Eh ; n
.db 0Dh ;
.db 1 ;
.db 5 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 3Eh ; >
.db 5 ;
.db 0C9h ; É
.db 0AFh ; ¯
.db 0C9h ; É
.db 10h ;
.db 5 ;
.db 3 ;
.db 9 ;
.db 1 ;
.db 6Ch ; l
.db 0Dh ;
.db 81h ; 
.db 0Dh ;
.db 7Dh ; }
.db 0Dh ;
.db 69h ; i
.db 0Dh ;
.db 65h ; e
.db 0Dh ;
.db 0AFh ; ¯
.db 32h ; 2
.db 9Fh ; Ÿ
.db 26h ; &
.db 0CDh ; Í
.db 61h ; a
.db 5 ;
.db 28h ; (
.db 30h ; 0
.db 6 ;
.db 0Ah ;
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 21h ; !
.db 0A7h ; §
.db 0Dh ;
.db 1 ;
.db 5 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 20h ;
.db 0ECh ; ì
.db 0C3h ; Ã
.db 29h ; )
.db 6 ;
.db 3Eh ; >
.db 0 ;
.db 0CDh ; Í
.db 0D1h ; Ñ
.db 0Eh ;
.db 0C3h ; Ã
.db 5Ah ; Z
.db 0Dh ;
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 18h ;
.db 0E4h ; ä
.db 0FEh ; þ
.db 18h ;
.db 2Ah ; *
.db 13h ;
.db 93h ; “
.db 0A0h ;  
.db 0Dh ;
.db 0A0h ;  
.db 0Dh ;
.db 98h ; ˜
.db 0Dh ;
.db 98h ; ˜
.db 0Dh ;
.db 65h ; e
.db 0Dh ;
.db 2Ah ; *
.db 0CBh ; Ë
.db 26h ; &
.db 22h ; "
.db 0CDh ; Í
.db 26h ; &
.db 21h ; !
.db 0B7h ; ·
.db 26h ; &
.db 11h ;
.db 0AAh ; ª
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 3Eh ; >
.db 0Ah ;
.db 0CDh ; Í
.db 8Ch ; Œ
.db 11h ;
.db 0CDh ; Í
.db 42h ; B
.db 10h ;
.db 0D8h ; Ø
.db 22h ; "
.db 2 ;
.db 27h ; '
.db 3Ah ; :
.db 0D6h ; Ö
.db 26h ; &
.db 0FEh ; þ
.db 0FFh ; ÿ
.db 20h ;
.db 8 ;
.db 3Eh ; >
.db 68h ; h
.db 32h ; 2
.db 0D8h ; Ø
.db 26h ; &
.db 0C3h ; Ã
.db 16h ;
.db 0Eh ;
.db 3Ah ; :
.db 0F9h ; ù
.db 26h ; &
.db 0FEh ; þ
.db 4 ;
.db 38h ; 8
.db 8 ;
.db 3Eh ; >
.db 6Bh ; k
.db 32h ; 2
.db 0D8h ; Ø
.db 26h ; &
.db 0C3h ; Ã
.db 16h ;
.db 0Eh ;
.db 21h ; !
.db 0BBh ; »
.db 26h ; &
.db 11h ;
.db 0BFh ; ¿
.db 26h ; &
.db 0CDh ; Í
.db 7Dh ; }
.db 6 ;
.db 28h ; (
.db 0EDh ; í
.db 2Ah ; *
.db 0CBh ; Ë
.db 26h ; &
.db 7Ch ; |
.db 0B5h ; µ
.db 28h ; (
.db 10h ;
.db 2Ah ; *
.db 0CDh ; Í
.db 26h ; &
.db 0EDh ; í
.db 5Bh ; [
.db 2 ;
.db 27h ; '
.db 0EDh ; í
.db 52h ; R
.db 22h ; "
.db 0CDh ; Í
.db 26h ; &
.db 28h ; (
.db 0D8h ; Ø
.db 38h ; 8
.db 0D6h ; Ö
.db 3Eh ; >
.db 69h ; i
.db 32h ; 2
.db 0D8h ; Ø
.db 26h ; &
.db 3Ah ; :
.db 0D8h ; Ø
.db 26h ; &
.db 0EDh ; í
.db 4Bh ; K
.db 2 ;
.db 27h ; '
.db 0CDh ; Í
.db 0FDh ; ý
.db 10h ;
.db 11h ;
.db 2 ;
.db 27h ; '
.db 21h ; !
.db 0B7h ; ·
.db 26h ; &
.db 1 ;
.db 0B7h ; ·
.db 26h ; &
.db 0CDh ; Í
.db 8Eh ; Ž
.db 6 ;
.db 21h ; !
.db 0B7h ; ·
.db 26h ; &
.db 11h ;
.db 0BBh ; »
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 3Ah ; :
.db 0D8h ; Ø
.db 26h ; &
.db 0FEh ; þ
.db 6Bh ; k
.db 0CAh ; Ê
.db 51h ; Q
.db 0Dh ;
.db 0CDh ; Í
.db 61h ; a
.db 5 ;
.db 28h ; (
.db 51h ; Q
.db 6 ;
.db 0Ah ;
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 21h ; !
.db 84h ; „
.db 0Eh ;
.db 1 ;
.db 5 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 21h ; !
.db 0F9h ; ù
.db 26h ; &
.db 34h ; 4
.db 18h ;
.db 0E5h ; å
.db 3Eh ; >
.db 0 ;
.db 0CDh ; Í
.db 0D1h ; Ñ
.db 0Eh ;
.db 0FEh ; þ
.db 3 ;
.db 28h ; (
.db 32h ; 2
.db 0F5h ; õ
.db 21h ; !
.db 67h ; g
.db 20h ;
.db 0CDh ; Í
.db 23h ; #
.db 6 ;
.db 0CDh ; Í
.db 61h ; a
.db 5 ;
.db 20h ;
.db 0F5h ; õ
.db 3Eh ; >
.db 68h ; h
.db 1 ;
.db 0 ;
.db 0 ;
.db 0CDh ; Í
.db 0FDh ; ý
.db 10h ;
.db 0F1h ; ñ
.db 0C3h ; Ã
.db 5Ah ; Z
.db 0Dh ;
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 21h ; !
.db 0F9h ; ù
.db 26h ; &
.db 34h ; 4
.db 18h ;
.db 0C3h ; Ã
.db 0FEh ; þ
.db 18h ;
.db 2Ah ; *
.db 13h ;
.db 93h ; “
.db 79h ; y
.db 0Eh ;
.db 79h ; y
.db 0Eh ;
.db 58h ; X
.db 0Eh ;
.db 58h ; X
.db 0Eh ;
.db 65h ; e
.db 0Dh ;
.db 3Ah ; :
.db 0D6h ; Ö
.db 26h ; &
.db 0FEh ; þ
.db 0FFh ; ÿ
.db 0C2h ; Â
.db 0CAh ; Ê
.db 0Dh ;
.db 21h ; !
.db 0B7h ; ·
.db 26h ; &
.db 11h ;
.db 0AAh ; ª
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 3Eh ; >
.db 0Bh ;
.db 0CDh ; Í
.db 8Ch ; Œ
.db 11h ;
.db 3Eh ; >
.db 0FFh ; ÿ
.db 0CDh ; Í
.db 0D1h ; Ñ
.db 0Eh ;
.db 21h ; !
.db 0C5h ; Å
.db 0Eh ;
.db 1 ;
.db 4 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 18h ;
.db 0DCh ; Ü
.db 0C3h ; Ã
.db 4Eh ; N
.db 0Dh ;
.db 0AFh ; ¯
.db 0C9h ; É
.db 0C9h ; É
.db 3 ;
.db 9 ;
.db 1 ;
.db 5 ;
.db 0C4h ; Ä
.db 0Eh ;
.db 0C2h ; Â
.db 0Eh ;
.db 0BFh ; ¿
.db 0Eh ;
.db 0BDh ; ½
.db 0Eh ;
.db 32h ; 2
.db 0FAh ; ú
.db 0Eh ;
.db 0CDh ; Í
.db 0EBh ; ë
.db 12h ;
.db 21h ; !
.db 74h ; t
.db 0Fh ;
.db 1 ;
.db 9 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 3Eh ; >
.db 6 ;
.db 0CDh ; Í
.db 8Ch ; Œ
.db 11h ;
.db 18h ;
.db 0EBh ; ë
.db 0C9h ; É
.db 0F5h ; õ
.db 0CDh ; Í
.db 9 ;
.db 1Ch ;
.db 0F1h ; ñ
.db 0C9h ; É
.db 11h ;
.db 0AFh ; ¯
.db 26h ; &
.db 21h ; !
.db 0B3h ; ³
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 3Eh ; >
.db 0 ;
.db 0FEh ; þ
.db 0 ;
.db 3Eh ; >
.db 3 ;
.db 0C8h ; È
.db 11h ;
.db 0B7h ; ·
.db 26h ; &
.db 21h ; !
.db 0B3h ; ³
.db 26h ; &
.db 0CDh ; Í
.db 7Dh ; }
.db 6 ;
.db 3Eh ; >
.db 3 ;
.db 0C8h ; È
.db 0C3h ; Ã
.db 0D4h ; Ô
.db 0Eh ;
.db 21h ; !
.db 0B3h ; ³
.db 26h ; &
.db 11h ;
.db 0FAh ; ú
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 0CDh ; Í
.db 8Fh ; 
.db 0Fh ;
.db 0D8h ; Ø
.db 3Eh ; >
.db 0 ;
.db 32h ; 2
.db 0D6h ; Ö
.db 26h ; &
.db 21h ; !
.db 9Fh ; Ÿ
.db 26h ; &
.db 34h ; 4
.db 0CDh ; Í
.db 8Ah ; Š
.db 4 ;
.db 21h ; !
.db 0B3h ; ³
.db 26h ; &
.db 11h ;
.db 0B7h ; ·
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 11h ;
.db 0AFh ; ¯
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 11h ;
.db 0BBh ; »
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 11h ;
.db 0BFh ; ¿
.db 26h ; &
.db 0CDh ; Í
.db 7Dh ; }
.db 6 ;
.db 20h ;
.db 1Fh ;
.db 3Ah ; :
.db 0D3h ; Ó
.db 26h ; &
.db 3Ch ; <
.db 32h ; 2
.db 0D3h ; Ó
.db 26h ; &
.db 0FEh ; þ
.db 5 ;
.db 38h ; 8
.db 14h ;
.db 21h ; !
.db 20h ;
.db 0 ;
.db 0EDh ; í
.db 5Bh ; [
.db 0CFh ; Ï
.db 26h ; &
.db 0B7h ; ·
.db 0EDh ; í
.db 52h ; R
.db 30h ; 0
.db 8 ;
.db 0CBh ; Ë
.db 3Ah ; :
.db 0CBh ; Ë
.db 1Bh ;
.db 0EDh ; í
.db 53h ; S
.db 0CFh ; Ï
.db 26h ; &
.db 21h ; !
.db 0B3h ; ³
.db 26h ; &
.db 11h ;
.db 0BFh ; ¿
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 3Eh ; >
.db 9 ;
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 10h ;
.db 7 ;
.db 8 ;
.db 0FEh ; þ
.db 9 ;
.db 3 ;
.db 1 ;
.db 5 ;
.db 0FFh ; ÿ
.db 0E2h ; â
.db 0Eh ;
.db 0E9h ; é
.db 0Eh ;
.db 0EAh ; ê
.db 0Eh ;
.db 0F0h ; ð
.db 0Eh ;
.db 0Fh ;
.db 0Fh ;
.db 70h ; p
.db 0Fh ;
.db 70h ; p
.db 0Fh ;
.db 70h ; p
.db 0Fh ;
.db 70h ; p
.db 0Fh ;
.db 21h ; !
.db 0C3h ; Ã
.db 26h ; &
.db 11h ;
.db 0F3h ; ó
.db 26h ; &
.db 1 ;
.db 0C7h ; Ç
.db 26h ; &
.db 0CDh ; Í
.db 0A4h ; ¤
.db 6 ;
.db 21h ; !
.db 0FAh ; ú
.db 26h ; &
.db 11h ;
.db 0C7h ; Ç
.db 26h ; &
.db 0CDh ; Í
.db 4Bh ; K
.db 6 ;
.db 0D2h ; Ò
.db 0D2h ; Ò
.db 0Fh ;
.db 3Eh ; >
.db 0 ;
.db 32h ; 2
.db 0D7h ; ×
.db 26h ; &
.db 21h ; !
.db 0FAh ; ú
.db 26h ; &
.db 11h ;
.db 4Eh ; N
.db 8 ;
.db 1 ;
.db 0FEh ; þ
.db 26h ; &
.db 0CDh ; Í
.db 0E5h ; å
.db 6 ;
.db 21h ; !
.db 0FEh ; þ
.db 26h ; &
.db 0CDh ; Í
.db 1Dh ;
.db 10h ;
.db 0D8h ; Ø
.db 21h ; !
.db 0FEh ; þ
.db 26h ; &
.db 11h ;
.db 0DCh ; Ü
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 0EDh ; í
.db 4Bh ; K
.db 0F3h ; ó
.db 26h ; &
.db 0CDh ; Í
.db 0A2h ; ¢
.db 10h ;
.db 0D8h ; Ø
.db 0AFh ; ¯
.db 0C9h ; É
.db 21h ; !
.db 0C3h ; Ã
.db 26h ; &
.db 11h ;
.db 4Ah ; J
.db 8 ;
.db 1 ;
.db 0C7h ; Ç
.db 26h ; &
.db 0CDh ; Í
.db 0A4h ; ¤
.db 6 ;
.db 21h ; !
.db 0C7h ; Ç
.db 26h ; &
.db 11h ;
.db 0FAh ; ú
.db 26h ; &
.db 0CDh ; Í
.db 4Bh ; K
.db 6 ;
.db 0D2h ; Ò
.db 15h ;
.db 10h ;
.db 3Eh ; >
.db 0 ;
.db 32h ; 2
.db 0D7h ; ×
.db 26h ; &
.db 21h ; !
.db 0FAh ; ú
.db 26h ; &
.db 11h ;
.db 4Eh ; N
.db 8 ;
.db 1 ;
.db 0FEh ; þ
.db 26h ; &
.db 0CDh ; Í
.db 0E5h ; å
.db 6 ;
.db 21h ; !
.db 0FEh ; þ
.db 26h ; &
.db 0CDh ; Í
.db 17h ;
.db 10h ;
.db 0D8h ; Ø
.db 21h ; !
.db 0FEh ; þ
.db 26h ; &
.db 11h ;
.db 0DCh ; Ü
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 0EDh ; í
.db 4Bh ; K
.db 0F3h ; ó
.db 26h ; &
.db 0CDh ; Í
.db 0A2h ; ¢
.db 10h ;
.db 0D8h ; Ø
.db 0AFh ; ¯
.db 0C9h ; É
.db 0AFh ; ¯
.db 0C9h ; É
.db 0EBh ; ë
.db 21h ; !
.db 0C3h ; Ã
.db 26h ; &
.db 18h ;
.db 10h ;
.db 0CDh ; Í
.db 9 ;
.db 1Ch ;
.db 11h ;
.db 6Eh ; n
.db 22h ; "
.db 0CDh ; Í
.db 0DBh ; Û
.db 1Bh ;
.db 0EBh ; ë
.db 21h ; !
.db 0C3h ; Ã
.db 26h ; &
.db 0CDh ; Í
.db 32h ; 2
.db 6 ;
.db 0CDh ; Í
.db 7Dh ; }
.db 6 ;
.db 0C8h ; È
.db 0CDh ; Í
.db 0F9h ; ù
.db 1Bh ;
.db 20h ;
.db 5 ;
.db 0CDh ; Í
.db 0BCh ; ¼
.db 6 ;
.db 18h ;
.db 0F2h ; ò
.db 0EEh ; î
.db 4 ;
.db 0C8h ; È
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 21h ; !
.db 2 ;
.db 27h ; '
.db 0CDh ; Í
.db 32h ; 2
.db 6 ;
.db 21h ; !
.db 0BBh ; »
.db 26h ; &
.db 11h ;
.db 0DAh ; Ú
.db 26h ; &
.db 1 ;
.db 0DCh ; Ü
.db 26h ; &
.db 0CDh ; Í
.db 0E5h ; å
.db 6 ;
.db 21h ; !
.db 0BBh ; »
.db 26h ; &
.db 11h ;
.db 0C3h ; Ã
.db 26h ; &
.db 0CDh ; Í
.db 4Bh ; K
.db 6 ;
.db 0DAh ; Ú
.db 70h ; p
.db 10h ;
.db 0EDh ; í
.db 4Bh ; K
.db 0CFh ; Ï
.db 26h ; &
.db 0CDh ; Í
.db 0A2h ; ¢
.db 10h ;
.db 0D8h ; Ø
.db 3Ah ; :
.db 0D7h ; ×
.db 26h ; &
.db 32h ; 2
.db 0D6h ; Ö
.db 26h ; &
.db 0EBh ; ë
.db 0C9h ; É
.db 21h ; !
.db 0BBh ; »
.db 26h ; &
.db 11h ;
.db 0CFh ; Ï
.db 26h ; &
.db 1 ;
.db 0C7h ; Ç
.db 26h ; &
.db 0CDh ; Í
.db 8Eh ; Ž
.db 6 ;
.db 21h ; !
.db 0C3h ; Ã
.db 26h ; &
.db 11h ;
.db 0C7h ; Ç
.db 26h ; &
.db 0CDh ; Í
.db 4Bh ; K
.db 6 ;
.db 0DAh ; Ú
.db 8Ch ; Œ
.db 10h ;
.db 2Ah ; *
.db 0CFh ; Ï
.db 26h ; &
.db 0C9h ; É
.db 3Ah ; :
.db 0D7h ; ×
.db 26h ; &
.db 32h ; 2
.db 0D6h ; Ö
.db 26h ; &
.db 21h ; !
.db 0C3h ; Ã
.db 26h ; &
.db 11h ;
.db 0BBh ; »
.db 26h ; &
.db 1 ;
.db 0C7h ; Ç
.db 26h ; &
.db 0CDh ; Í
.db 0A4h ; ¤
.db 6 ;
.db 2Ah ; *
.db 0C7h ; Ç
.db 26h ; &
.db 0C9h ; É
.db 11h ;
.db 0 ;
.db 0 ;
.db 0CDh ; Í
.db 0C5h ; Å
.db 10h ;
.db 0CDh ; Í
.db 0F9h ; ù
.db 1Bh ;
.db 20h ;
.db 0Eh ;
.db 77h ; w
.db 21h ; !
.db 0C3h ; Ã
.db 26h ; &
.db 0CDh ; Í
.db 0BCh ; ¼
.db 6 ;
.db 13h ;
.db 0Bh ;
.db 78h ; x
.db 0B1h ; ±
.db 20h ;
.db 0EBh ; ë
.db 0C9h ; É
.db 0FEh ; þ
.db 4 ;
.db 3Eh ; >
.db 0FFh ; ÿ
.db 32h ; 2
.db 0D7h ; ×
.db 26h ; &
.db 0C8h ; È
.db 37h ; 7
.db 0C9h ; É
.db 0C5h ; Å
.db 0D5h ; Õ
.db 2Ah ; *
.db 0DCh ; Ü
.db 26h ; &
.db 19h ;
.db 0EDh ; í
.db 4Bh ; K
.db 0DAh ; Ú
.db 26h ; &
.db 7Ch ; |
.db 0A0h ;  
.db 67h ; g
.db 7Dh ; }
.db 0A1h ; ¡
.db 6Fh ; o
.db 0EDh ; í
.db 5Bh ; [
.db 0EFh ; ï
.db 26h ; &
.db 19h ;
.db 0D1h ; Ñ
.db 0C1h ; Á
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_10DD: ; CODE XREF: sub_0_8C1+5Cp
; sub_0_10DD+14j
ld hl, 26AAh
call sub_0_632
ld a, 8
call sub_0_1204
call sub_0_12EB
ret c
cp 10h
ret z
cp 8
jr nz, sub_0_10DD
ld a, 4Fh
call loc_0_12A6
ld a, 4Fh
jp loc_0_12A6
; End of function sub_0_10DD
;----------------------------------------------------------------------------
.db 32h ; 2
.db 6 ;
.db 27h ; '
.db 0C5h ; Å
.db 21h ; !
.db 0B7h ; ·
.db 26h ; &
.db 11h ;
.db 0A4h ; ¤
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 0CDh ; Í
.db 8 ;
.db 5 ;
.db 0C1h ; Á
.db 0CDh ; Í
.db 0DCh ; Ü
.db 12h ;
.db 11h ;
.db 0 ;
.db 0 ;
.db 3Ah ; :
.db 0A9h ; ©
.db 26h ; &
.db 0E6h ; æ
.db 20h ;
.db 20h ;
.db 3Bh ; ;
.db 78h ; x
.db 0B1h ; ±
.db 28h ; (
.db 12h ;
.db 0C5h ; Å
.db 0D5h ; Õ
.db 0CDh ; Í
.db 0C5h ; Å
.db 10h ;
.db 7Eh ; ~
.db 0CDh ; Í
.db 2Fh ; /
.db 8 ;
.db 0CDh ; Í
.db 82h ; ‚
.db 12h ;
.db 0D1h ; Ñ
.db 0C1h ; Á
.db 13h ;
.db 0Bh ;
.db 18h ;
.db 0EAh ; ê
.db 3Eh ; >
.db 18h ;
.db 0CDh ; Í
.db 0A6h ; ¦
.db 12h ;
.db 3Ah ; :
.db 6 ;
.db 27h ; '
.db 0CDh ; Í
.db 2Fh ; /
.db 8 ;
.db 0CDh ; Í
.db 0A6h ; ¦
.db 12h ;
.db 3Ah ; :
.db 32h ; 2
.db 8 ;
.db 0CDh ; Í
.db 82h ; ‚
.db 12h ;
.db 3Ah ; :
.db 31h ; 1
.db 8 ;
.db 0CDh ; Í
.db 82h ; ‚
.db 12h ;
.db 3Ah ; :
.db 6 ;
.db 27h ; '
.db 0FEh ; þ
.db 6Bh ; k
.db 0C8h ; È
.db 3Eh ; >
.db 11h ;
.db 0C3h ; Ã
.db 0A6h ; ¦
.db 12h ;
.db 78h ; x
.db 0B1h ; ±
.db 28h ; (
.db 12h ;
.db 0C5h ; Å
.db 0D5h ; Õ
.db 0CDh ; Í
.db 0C5h ; Å
.db 10h ;
.db 7Eh ; ~
.db 0CDh ; Í
.db 97h ; —
.db 7 ;
.db 0CDh ; Í
.db 82h ; ‚
.db 12h ;
.db 0D1h ; Ñ
.db 0C1h ; Á
.db 13h ;
.db 0Bh ;
.db 18h ;
.db 0EAh ; ê
.db 3Eh ; >
.db 18h ;
.db 0CDh ; Í
.db 0A6h ; ¦
.db 12h ;
.db 3Ah ; :
.db 6 ;
.db 27h ; '
.db 0CDh ; Í
.db 97h ; —
.db 7 ;
.db 0CDh ; Í
.db 0A6h ; ¦
.db 12h ;
.db 6 ;
.db 4 ;
.db 21h ; !
.db 9Bh ; ›
.db 22h ; "
.db 7Eh ; ~
.db 23h ; #
.db 0C5h ; Å
.db 0E5h ; å
.db 2Fh ; /
.db 0CDh ; Í
.db 82h ; ‚
.db 12h ;
.db 0E1h ; á
.db 0C1h ; Á
.db 10h ;
.db 0F4h ; ô
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_118C: ; CODE XREF: seg000:0CCEp
ld (2707h), a
ld a, 2Ah
call loc_0_12A6
ld a, 18h
call loc_0_12A6
call sub_0_12DC
ld a, (26A9h)
and 20h
jp nz, loc_0_11D1
ld a, 41h
call loc_0_12A6
ld a, (2707h)
call sub_0_82F
call loc_0_1282
ld hl, 26AAh
ld b, 4
loc_0_11B7: ; CODE XREF: sub_0_118C+37j
push bc
ld a, (hl)
inc hl
push hl
call sub_0_82F
call loc_0_1282
pop hl
pop bc
djnz loc_0_11B7
ld a, (loc_0_830+2)
call loc_0_1282
ld a, (loc_0_830+1)
jp loc_0_1282
;----------------------------------------------------------------------------
loc_0_11D1: ; CODE XREF: sub_0_118C+15j
ld a, 43h
call loc_0_12A6
ld a, (2707h)
call loc_0_797
call loc_0_12A6
ld hl, 26AAh
ld b, 4
loc_0_11E4: ; CODE XREF: sub_0_118C+64j
push bc
ld a, (hl)
inc hl
push hl
call loc_0_797
call loc_0_1282
pop hl
pop bc
djnz loc_0_11E4
ld hl, 229Bh
ld b, 4
loc_0_11F7: ; CODE XREF: sub_0_118C+75j
push bc
ld a, (hl)
inc hl
push hl
cpl
call loc_0_1282
pop hl
pop bc
djnz loc_0_11F7
ret
; End of function sub_0_118C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1204: ; CODE XREF: sub_0_9D9+7p sub_0_10DD+8p
ld (2707h), a
ld hl, 124Dh
call sub_0_15AB
call sub_0_12DC
ld a, (2707h)
call sub_0_82F
call sub_0_1262
ld hl, 26AAh
ld b, 4
loc_0_121E: ; CODE XREF: sub_0_1204+26j
push bc
ld a, (hl)
inc hl
push hl
call sub_0_82F
call sub_0_1262
pop hl
pop bc
djnz loc_0_121E
ld a, (loc_0_830+2)
call sub_0_1262
ld a, (loc_0_830+1)
call sub_0_1262
ld a, 0Dh
call loc_0_12A6
ld a, 0Ah
call loc_0_12A6
ld a, (2707h)
cp 8
ret z
ld a, 11h
jp loc_0_12A6
; End of function sub_0_1204
;----------------------------------------------------------------------------
.db 2Ah ; *
.db 2Ah ; *
.db 18h ;
.db 42h ; B
.db 0 ;
.db 30h ; 0
.db 31h ; 1
.db 32h ; 2
.db 33h ; 3
.db 34h ; 4
.db 35h ; 5
.db 36h ; 6
.db 37h ; 7
.db 38h ; 8
.db 39h ; 9
.db 61h ; a
.db 62h ; b
.db 63h ; c
.db 64h ; d
.db 65h ; e
.db 66h ; f
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1262: ; CODE XREF: sub_0_1204+12p
; sub_0_1204+21p ...
push af
ld hl, 1252h
ld b, 0
rra
rra
rra
rra
and 0Fh
ld c, a
add hl, bc
ld a, (hl)
call loc_0_12A6
pop af
ld hl, 1252h
ld b, 0
and 0Fh
ld c, a
add hl, bc
ld a, (hl)
jp loc_0_12A6
; End of function sub_0_1262
;----------------------------------------------------------------------------
loc_0_1282: ; CODE XREF: sub_0_118C+23p
; sub_0_118C+32p ...
ld (byte_0_12A5), a
ld bc, 9
ld hl, 12C1h
cpir
jp z, sub_0_629
and 60h
jr nz, unk_0_12A4
ld a, (26D5h)
or a
jr z, unk_0_12A4
ld hl, 12A5h
set 6, (hl)
ld a, 18h
call loc_0_12A6
;----------------------------------------------------------------------------
unk_0_12A4: .db 3Eh ; > ; CODE XREF: seg000:1292j seg000:1298j
byte_0_12A5: .db 0 ; DATA XREF: seg000:1282w
;----------------------------------------------------------------------------
loc_0_12A6: ; CODE XREF: seg000:0B0Cp seg000:0B12p
; ...
ld (byte_0_12B2), a
loc_0_12A9: ; CODE XREF: seg000:12AFj
call sub_0_561
call sub_0_5A6
jr z, loc_0_12A9
;----------------------------------------------------------------------------
.db 3Eh ; >
byte_0_12B2: .db 0 ; DATA XREF: seg000:12A6w
.db 0C3h ; Ã
.db 0A0h ;  
.db 5 ;
.db 3Ah ; :
.db 0B2h ; ²
.db 12h ;
.db 0E6h ; æ
.db 7Fh ; 
.db 0FEh ; þ
.db 40h ; @
.db 20h ;
.db 0E5h ; å
.db 18h ;
.db 0D9h ; Ù
.db 18h ;
.db 0Dh ;
.db 8Dh ; 
.db 10h ;
.db 90h ; 
.db 11h ;
.db 91h ; ‘
.db 13h ;
.db 93h ; “
.db 9Ah ; š
.db 12h ;
.db 9Ah ; š
.db 12h ;
.db 9Ah ; š
.db 12h ;
.db 9Ah ; š
.db 12h ;
.db 9Ah ; š
.db 12h ;
.db 9Ah ; š
.db 12h ;
.db 0B6h ; ¶
.db 12h ;
.db 0B6h ; ¶
.db 12h ;
.db 9Ah ; š
.db 12h ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_12DC: ; CODE XREF: seg000:0B1Cp sub_0_118C+Dp
; ...
xor a
ld h, a
ld l, a
ld (loc_0_788+1), a
ld (loc_0_830+1), hl
ld hl, 229Bh
jp loc_0_6D0
; End of function sub_0_12DC
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_12EB: ; CODE XREF: sub_0_10DD+Bp
xor a
ld (270Bh), a
ld hl, 400h
ld (2708h), hl
loc_0_12F5: ; CODE XREF: sub_0_12EB+61j
ld a, 5
ld (270Ah), a
ld b, 0FFh
call sub_0_15B6
jp c, loc_0_13A4
ld hl, 13B8h
ld bc, 3
cpir
jp z, sub_0_629
jr loc_0_133E
;----------------------------------------------------------------------------
.db 21h ; !
.db 0Ah ;
.db 27h ; '
.db 35h ; 5
.db 3Eh ; >
.db 10h ;
.db 0CAh ; Ê
.db 0A4h ; ¤
.db 13h ;
.db 6 ;
.db 0Ah ;
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 38h ; 8
.db 0DBh ; Û
.db 21h ; !
.db 0C1h ; Á
.db 13h ;
.db 1 ;
.db 2 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 18h ;
.db 12h ;
.db 21h ; !
.db 0Ah ;
.db 27h ; '
.db 35h ; 5
.db 3Eh ; >
.db 10h ;
.db 0CAh ; Ê
.db 0A4h ; ¤
.db 13h ;
.db 18h ;
.db 0C3h ; Ã
.db 6 ;
.db 0Ah ;
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 38h ; 8
.db 11h ;
;----------------------------------------------------------------------------
loc_0_133E: ; CODE XREF: sub_0_12EB+22j
ld hl, (2708h)
dec hl
ld (2708h), hl
ld a, h
or l
ld a, 0FCh
jp z, loc_0_13A4
jp loc_0_12F5
;----------------------------------------------------------------------------
.db 3Eh ; >
.db 0FFh ; ÿ
.db 0C3h ; Ã
.db 0A4h ; ¤
.db 13h ;
.db 3Eh ; >
.db 5 ;
.db 32h ; 2
.db 0Ah ;
.db 27h ; '
.db 0CDh ; Í
.db 0D1h ; Ñ
.db 14h ;
.db 38h ; 8
.db 46h ; F
.db 21h ; !
.db 0C7h ; Ç
.db 13h ;
.db 1 ;
.db 2 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 18h ;
.db 0D3h ; Ó
.db 0CDh ; Í
.db 0D1h ; Ñ
.db 14h ;
.db 38h ; 8
.db 34h ; 4
.db 21h ; !
.db 0CDh ; Í
.db 13h ;
.db 1 ;
.db 4 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 18h ;
.db 0C1h ; Á
.db 3Eh ; >
.db 10h ;
.db 32h ; 2
.db 0A8h ; ¨
.db 26h ; &
.db 0CDh ; Í
.db 54h ; T
.db 14h ;
.db 18h ;
.db 12h ;
.db 3Eh ; >
.db 10h ;
.db 32h ; 2
.db 0A8h ; ¨
.db 26h ; &
.db 0CDh ; Í
.db 1Ah ;
.db 14h ;
.db 18h ;
.db 8 ;
.db 3Eh ; >
.db 20h ;
.db 32h ; 2
.db 0A8h ; ¨
.db 26h ; &
.db 0CDh ; Í
.db 0DFh ; ß
.db 13h ;
.db 0F5h ; õ
.db 21h ; !
.db 0A0h ;  
.db 26h ; &
.db 11h ;
.db 0B3h ; ³
.db 26h ; &
.db 0CDh ; Í
.db 3Ch ; <
.db 6 ;
.db 0F1h ; ñ
;----------------------------------------------------------------------------
loc_0_13A4: ; CODE XREF: sub_0_12EB+14j
; sub_0_12EB+5Ej
ld hl, 13D9h
ld bc, 6
cpir
jr nz, loc_0_13B6
cp 98h
jr nz, loc_0_13B4
ld a, 10h
loc_0_13B4: ; CODE XREF: sub_0_12EB+C5j
scf
ret
;----------------------------------------------------------------------------
loc_0_13B6: ; CODE XREF: sub_0_12EB+C1j
or a
ret
; End of function sub_0_12EB
;----------------------------------------------------------------------------
.db 18h ;
.db 0AAh ; ª
.db 2Ah ; *
.db 54h ; T
.db 13h ;
.db 54h ; T
.db 13h ;
.db 0Fh ;
.db 13h ;
.db 6Bh ; k
.db 18h ;
.db 2Ch ; ,
.db 13h ;
.db 37h ; 7
.db 13h ;
.db 2Ah ; *
.db 18h ;
.db 6Bh ; k
.db 13h ;
.db 59h ; Y
.db 13h ;
.db 43h ; C
.db 41h ; A
.db 42h ; B
.db 18h ;
.db 0Fh ;
.db 13h ;
.db 7Dh ; }
.db 13h ;
.db 87h ; ‡
.db 13h ;
.db 91h ; ‘
.db 13h ;
.db 98h ; ˜
.db 6 ;
.db 10h ;
.db 0FFh ; ÿ
.db 0FEh ; þ
.db 0FCh ; ü
.db 0CDh ; Í
.db 0DCh ; Ü
.db 12h ;
.db 0CDh ; Í
.db 0FBh ; û
.db 14h ;
.db 0D8h ; Ø
.db 32h ; 2
.db 0Bh ;
.db 27h ; '
.db 0CDh ; Í
.db 97h ; —
.db 7 ;
.db 21h ; !
.db 0A0h ;  
.db 26h ; &
.db 6 ;
.db 4 ;
.db 0C5h ; Å
.db 0E5h ; å
.db 0CDh ; Í
.db 0FBh ; û
.db 14h ;
.db 0CDh ; Í
.db 97h ; —
.db 7 ;
.db 0E1h ; á
.db 0C1h ; Á
.db 77h ; w
.db 23h ; #
.db 0D8h ; Ø
.db 10h ;
.db 0F1h ; ñ
.db 6 ;
.db 4 ;
.db 0C5h ; Å
.db 0CDh ; Í
.db 0FBh ; û
.db 14h ;
.db 0CDh ; Í
.db 97h ; —
.db 7 ;
.db 0C1h ; Á
.db 0D8h ; Ø
.db 10h ;
.db 0F5h ; õ
.db 21h ; !
.db 9Bh ; ›
.db 22h ; "
.db 11h ;
.db 93h ; “
.db 7 ;
.db 0CDh ; Í
.db 7Dh ; }
.db 6 ;
.db 28h ; (
.db 34h ; 4
.db 18h ;
.db 36h ; 6
.db 0CDh ; Í
.db 0DCh ; Ü
.db 12h ;
.db 0CDh ; Í
.db 0FBh ; û
.db 14h ;
.db 0D8h ; Ø
.db 32h ; 2
.db 0Bh ;
.db 27h ; '
.db 0CDh ; Í
.db 2Fh ; /
.db 8 ;
.db 21h ; !
.db 0A0h ;  
.db 26h ; &
.db 6 ;
.db 4 ;
.db 0C5h ; Å
.db 0E5h ; å
.db 0CDh ; Í
.db 0FBh ; û
.db 14h ;
.db 0CDh ; Í
.db 2Fh ; /
.db 8 ;
.db 0E1h ; á
.db 0C1h ; Á
.db 77h ; w
.db 23h ; #
.db 0D8h ; Ø
.db 10h ;
.db 0F1h ; ñ
.db 6 ;
.db 2 ;
.db 0C5h ; Å
.db 0CDh ; Í
.db 0FBh ; û
.db 14h ;
.db 0CDh ; Í
.db 2Fh ; /
.db 8 ;
.db 0C1h ; Á
.db 0D8h ; Ø
.db 10h ;
.db 0F5h ; õ
.db 7Ch ; |
.db 0B5h ; µ
.db 20h ;
.db 4 ;
.db 3Ah ; :
.db 0Bh ;
.db 27h ; '
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 0CDh ; Í
.db 0DCh ; Ü
.db 12h ;
.db 0CDh ; Í
.db 0A4h ; ¤
.db 14h ;
.db 0D8h ; Ø
.db 32h ; 2
.db 0Bh ;
.db 27h ; '
.db 0CDh ; Í
.db 2Fh ; /
.db 8 ;
.db 21h ; !
.db 0A0h ;  
.db 26h ; &
.db 6 ;
.db 4 ;
.db 0C5h ; Å
.db 0E5h ; å
.db 0CDh ; Í
.db 0A4h ; ¤
.db 14h ;
.db 30h ; 0
.db 3 ;
.db 0E1h ; á
.db 0C1h ; Á
.db 0C9h ; É
.db 0CDh ; Í
.db 2Fh ; /
.db 8 ;
.db 0E1h ; á
.db 0C1h ; Á
.db 77h ; w
.db 23h ; #
.db 10h ;
.db 0EDh ; í
.db 6 ;
.db 2 ;
.db 0C5h ; Å
.db 0CDh ; Í
.db 0A4h ; ¤
.db 14h ;
.db 30h ; 0
.db 2 ;
.db 0C1h ; Á
.db 0C9h ; É
.db 0CDh ; Í
.db 2Fh ; /
.db 8 ;
.db 0C1h ; Á
.db 10h ;
.db 0F2h ; ò
.db 7Ch ; |
.db 0B5h ; µ
.db 20h ;
.db 13h ;
.db 6 ;
.db 0Ah ;
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0FEh ; þ
.db 0Dh ;
.db 20h ;
.db 5 ;
.db 6 ;
.db 0Ah ;
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0B7h ; ·
.db 3Ah ; :
.db 0Bh ;
.db 27h ; '
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 0CDh ; Í
.db 0D1h ; Ñ
.db 14h ;
.db 0D8h ; Ø
.db 0CDh ; Í
.db 0C3h ; Ã
.db 14h ;
.db 20h ;
.db 12h ;
.db 7 ;
.db 7 ;
.db 7 ;
.db 7 ;
.db 47h ; G
.db 0C5h ; Å
.db 0CDh ; Í
.db 0D1h ; Ñ
.db 14h ;
.db 0C1h ; Á
.db 0D8h ; Ø
.db 0CDh ; Í
.db 0C3h ; Ã
.db 14h ;
.db 20h ;
.db 2 ;
.db 0B0h ; °
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 37h ; 7
.db 0C9h ; É
.db 6Fh ; o
.db 0D6h ; Ö
.db 30h ; 0
.db 0FEh ; þ
.db 0Ah ;
.db 38h ; 8
.db 2 ;
.db 0D6h ; Ö
.db 27h ; '
.db 6Fh ; o
.db 0E6h ; æ
.db 0F0h ; ð
.db 7Dh ; }
.db 0C9h ; É
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0D8h ; Ø
.db 0E6h ; æ
.db 7Fh ; 
.db 21h ; !
.db 0F6h ; ö
.db 14h ;
.db 1 ;
.db 2 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 28h ; (
.db 0EEh ; î
.db 1 ;
.db 3 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0C8h ; È
.db 47h ; G
.db 0E6h ; æ
.db 60h ; `
.db 20h ;
.db 6 ;
.db 3Ah ; :
.db 0D5h ; Õ
.db 26h ; &
.db 0B7h ; ·
.db 20h ;
.db 0DDh ; Ý
.db 78h ; x
.db 0C9h ; É
.db 11h ;
.db 13h ;
.db 0Dh ;
.db 0Ah ;
.db 18h ;
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0D8h ; Ø
.db 5Fh ; _
.db 0E6h ; æ
.db 60h ; `
.db 7Bh ; {
.db 0C0h ; À
.db 0FEh ; þ
.db 18h ;
.db 28h ; (
.db 12h ;
.db 21h ; !
.db 6Eh ; n
.db 15h ;
.db 1 ;
.db 4 ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 28h ; (
.db 0E7h ; ç
.db 3Ah ; :
.db 0D5h ; Õ
.db 26h ; &
.db 0B7h ; ·
.db 20h ;
.db 0E1h ; á
.db 7Bh ; {
.db 0C9h ; É
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0D8h ; Ø
.db 0FEh ; þ
.db 18h ;
.db 20h ;
.db 1Ah ;
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0D8h ; Ø
.db 0FEh ; þ
.db 18h ;
.db 20h ;
.db 10h ;
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0D8h ; Ø
.db 0FEh ; þ
.db 18h ;
.db 20h ;
.db 6 ;
.db 6 ;
.db 64h ; d
.db 0CDh ; Í
.db 0B6h ; ¶
.db 15h ;
.db 0D8h ; Ø
.db 21h ; !
.db 72h ; r
.db 15h ;
.db 1 ;
.db 0Bh ;
.db 0 ;
.db 0EDh ; í
.db 0B1h ; ±
.db 0CAh ; Ê
.db 29h ; )
.db 6 ;
.db 6Fh ; o
.db 3Ah ; :
.db 0D5h ; Õ
.db 26h ; &
.db 0B7h ; ·
.db 28h ; (
.db 5 ;
.db 7Dh ; }
.db 0E6h ; æ
.db 60h ; `
.db 28h ; (
.db 0C5h ; Å
.db 7Dh ; }
.db 0E6h ; æ
.db 60h ; `
.db 0FEh ; þ
.db 40h ; @
.db 20h ;
.db 0Ah ;
.db 7Dh ; }
.db 0EEh ; î
.db 40h ; @
.db 0C9h ; É
.db 3Eh ; >
.db 7Fh ; 
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 0C9h ; É
.db 3Eh ; >
.db 0FFh ; ÿ
.db 0F6h ; ö
.db 80h ; €
.db 37h ; 7
.db 0C9h ; É
.db 11h ;
.db 91h ; ‘
.db 13h ;
.db 93h ; “
.db 11h ;
.db 91h ; ‘
.db 13h ;
.db 93h ; “
.db 18h ;
.db 68h ; h
.db 69h ; i
.db 6Ah ; j
.db 6Bh ; k
.db 6Ch ; l
.db 6Dh ; m
.db 65h ; e
.db 15h ;
.db 62h ; b
.db 15h ;
.db 6Ah ; j
.db 15h ;
.db 6Ah ; j
.db 15h ;
.db 6Ah ; j
.db 15h ;
.db 6Ah ; j
.db 15h ;
.db 6Ah ; j
.db 15h ;
.db 1Ch ;
.db 15h ;
.db 1Ch ;
.db 15h ;
.db 1Ch ;
.db 15h ;
.db 1Ch ;
.db 15h ;
.db 18h ;
.db 18h ;
.db 18h ;
.db 18h ;
.db 18h ;
.db 18h ;
.db 18h ;
.db 18h ;
.db 18h ;
.db 18h ;
.db 8 ;
.db 8 ;
.db 8 ;
.db 8 ;
.db 8 ;
.db 8 ;
.db 8 ;
.db 8 ;
.db 8 ;
.db 8 ;
.db 0 ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_15A8: ; CODE XREF: sub_0_8C1+36p
ld hl, 1593h
; End of function sub_0_15A8
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_15AB: ; CODE XREF: sub_0_1204+6p
; sub_0_15AB+9j
ld a, (hl)
inc hl
or a
ret z
push hl
call loc_0_12A6
pop hl
jr sub_0_15AB
; End of function sub_0_15AB
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_15B6: ; CODE XREF: sub_0_9D9+13p
; sub_0_A4C+17p ...
push bc
call sub_0_1E0C
call nz, sub_0_1E07
cp 1Bh
ld a, 18h
ld c, 0Ah
call z, sub_0_558
pop bc
loc_0_15C7: ; CODE XREF: sub_0_15B6+16j
call sub_0_5AD
jr nz, loc_0_15D2
djnz loc_0_15C7
ld a, 0FEh
scf
ret
;----------------------------------------------------------------------------
loc_0_15D2: ; CODE XREF: sub_0_15B6+14j
or a
ret
; End of function sub_0_15B6
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_15D4: ; CODE XREF: start+5Fp
push bc
ld (270Ch), a
call sub_0_1E80
push de
call sub_0_176E
ld (de), a
pop de
push de
call sub_0_15E9
pop de
pop bc
jr loc_0_165F
; End of function sub_0_15D4
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_15E9: ; CODE XREF: sub_0_15D4+Ep
xor a
ld (de), a
ld (270Fh), a
ld (270Eh), a
call sub_0_1D8C
ld a, c
ld (2710h), a
push de
ld a, (hl)
cp 3Ah
jr nz, loc_0_15FF
inc hl
loc_0_15FF: ; CODE XREF: sub_0_15E9+13j
ld b, 8
call sub_0_1664
pop de
ld a, (hl)
ld (270Dh), a
cp 3Ah
jr nz, loc_0_1640
inc hl
ld a, (270Ch)
or a
jr z, loc_0_1619
call sub_0_168C
jr z, loc_0_1627
loc_0_1619: ; CODE XREF: sub_0_15E9+29j
call sub_0_16DF
jr z, loc_0_1627
ld a, (270Ch)
or a
jr nz, loc_0_1627
call sub_0_168C
loc_0_1627: ; CODE XREF: sub_0_15E9+2Ej
; sub_0_15E9+33j ...
ld a, (270Fh)
ld (de), a
push de
inc de
call sub_0_1774
pop de
xor a
ld (270Eh), a
push de
ld b, 8
call sub_0_1664
pop de
ld a, (hl)
ld (270Dh), a
loc_0_1640: ; CODE XREF: sub_0_15E9+22j
ld a, (270Dh)
ex de, hl
ld bc, 8
add hl, bc
ex de, hl
ld b, 3
cp 2Eh
jr nz, loc_0_1655
inc hl
push de
call sub_0_1664
pop de
loc_0_1655: ; CODE XREF: sub_0_15E9+64j
ex de, hl
ld bc, 5
add hl, bc
ex de, hl
ld a, (2710h)
ld (de), a
loc_0_165F: ; CODE XREF: sub_0_15D4+13j
ld a, (270Eh)
or a
ret
; End of function sub_0_15E9
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1664: ; CODE XREF: sub_0_15E9+18p
; sub_0_15E9+4Fp ...
call sub_0_171B
ret z
inc de
cp 2Ah
jr nz, loc_0_1675
ld a, 3Fh
ld (de), a
call sub_0_1685
jr loc_0_167C
;----------------------------------------------------------------------------
loc_0_1675: ; CODE XREF: sub_0_1664+7j
ld (de), a
inc hl
cp 3Fh
call z, sub_0_1685
loc_0_167C: ; CODE XREF: sub_0_1664+Fj
djnz sub_0_1664
loc_0_167E: ; CODE XREF: sub_0_1664+1Fj
call sub_0_171B
ret z
inc hl
jr loc_0_167E
; End of function sub_0_1664
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1685: ; CODE XREF: sub_0_1664+Cp
; sub_0_1664+15p
push hl
ld hl, 270Eh
inc (hl)
pop hl
ret
; End of function sub_0_1685
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_168C: ; CODE XREF: sub_0_15E9+2Bp
; sub_0_15E9+3Bp
push hl
push de
call sub_0_1694
pop de
pop hl
ret
; End of function sub_0_168C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1694: ; CODE XREF: sub_0_168C+2p
call sub_0_178C
jr z, loc_0_170C
ex de, hl
inc hl
call sub_0_1794
ld b, a
inc b
ld a, (hl)
cp 41h
jr c, loc_0_16B6
sub 40h
cp b
jr nc, loc_0_170C
ld (270Fh), a
inc hl
ld a, (hl)
cp 20h
ret z
call sub_0_1767
ret c
loc_0_16B6: ; CODE XREF: sub_0_1694+Fj
push hl
ld b, 2
loc_0_16B9: ; CODE XREF: sub_0_1694+30j
ld a, (hl)
cp 20h
jr z, loc_0_16CB
call sub_0_1767
jr c, loc_0_16DC
inc hl
djnz loc_0_16B9
ld a, (hl)
cp 20h
jr nz, loc_0_16DC
loc_0_16CB: ; CODE XREF: sub_0_1694+28j
pop hl
call sub_0_179C
ld c, a
inc c
call sub_0_173C
cp c
jr nc, loc_0_170C
ld (2710h), a
xor a
ret
;----------------------------------------------------------------------------
loc_0_16DC: ; CODE XREF: sub_0_1694+2Dj
; sub_0_1694+35j
pop hl
jr loc_0_170C
; End of function sub_0_1694
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_16DF: ; CODE XREF: sub_0_15E9+30p
push hl
push de
call sub_0_16E7
pop de
pop hl
ret
; End of function sub_0_16DF
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_16E7: ; CODE XREF: sub_0_16DF+2p
call sub_0_17A4
jr z, loc_0_170C
ex de, hl
inc hl
loc_0_16EE: ; CODE XREF: sub_0_16E7+23j
ld a, (de)
or a
jr z, loc_0_170C
inc de
inc de
push hl
push de
ld b, 8
loc_0_16F8: ; CODE XREF: sub_0_16E7+17j
ld a, (de)
cp (hl)
jr nz, loc_0_1700
inc hl
inc de
djnz loc_0_16F8
loc_0_1700: ; CODE XREF: sub_0_16E7+13j
pop de
pop hl
jr z, loc_0_170F
ex de, hl
ld bc, 10h
add hl, bc
ex de, hl
jr loc_0_16EE
;----------------------------------------------------------------------------
loc_0_170C: ; CODE XREF: sub_0_1694+3j
; sub_0_1694+14j ...
or 0FFh
ret
;----------------------------------------------------------------------------
loc_0_170F: ; CODE XREF: sub_0_16E7+1Bj
dec de
ld a, (de)
ld (2710h), a
dec de
ld a, (de)
ld (270Fh), a
xor a
ret
; End of function sub_0_16E7
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_171B: ; CODE XREF: sub_0_1664p sub_0_1664+1Ap
; ...
ld a, (hl)
cp 21h
jr c, loc_0_173A
cp 3Dh
ret z
cp 5Fh
ret z
cp 2Eh
ret z
cp 3Ah
ret z
cp 2Ch
ret z
cp 3Ch
ret z
cp 3Eh
ret z
or a
ret z
cp 3Bh
ret
;----------------------------------------------------------------------------
loc_0_173A: ; CODE XREF: sub_0_171B+3j
xor a
ret
; End of function sub_0_171B
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_173C: ; CODE XREF: sub_0_1694+3Dp
push bc
ld bc, 1100h
loc_0_1740: ; CODE XREF: sub_0_173C+22j
ld a, (hl)
call sub_0_171B
jr z, loc_0_1760
inc hl
call sub_0_1767
jr c, loc_0_1764
ld d, a
ld a, c
rlca
jr c, loc_0_1764
rlca
jr c, loc_0_1764
add a, c
jr c, loc_0_1764
rlca
jr c, loc_0_1764
add a, d
jr c, loc_0_1764
ld c, a
djnz loc_0_1740
loc_0_1760: ; CODE XREF: sub_0_173C+8j
ld a, c
pop bc
or a
ret
;----------------------------------------------------------------------------
loc_0_1764: ; CODE XREF: sub_0_173C+Ej
; sub_0_173C+13j ...
pop bc
scf
ret
; End of function sub_0_173C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1767: ; CODE XREF: sub_0_1694+1Ep
; sub_0_1694+2Ap ...
sub 30h
ret c
cp 0Ah
ccf
ret
; End of function sub_0_1767
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_176E: ; CODE XREF: sub_0_15D4+8p
xor a
ld (de), a
inc de
call sub_0_1774
; End of function sub_0_176E
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1774: ; CODE XREF: sub_0_15E9+44p
ld b, 0Bh
ld a, 20h
call sub_0_1787
xor a
ld (de), a
inc de
call sub_0_1D8C
ld a, c
ld (de), a
inc de
ld b, 3
xor a
; End of function sub_0_1774
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1787: ; CODE XREF: sub_0_1774+4p
; sub_0_1787+2j
ld (de), a
inc de
djnz sub_0_1787
ret
; End of function sub_0_1787
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_178C: ; CODE XREF: sub_0_1694p
push hl
push de
ld de, 2Eh
jp loc_0_17AB
; End of function sub_0_178C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1794: ; CODE XREF: sub_0_1694+7p
push hl
push de
ld de, 2Ch
jp loc_0_17AB
; End of function sub_0_1794
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_179C: ; CODE XREF: sub_0_1694+38p
push hl
push de
ld de, 2Dh
jp loc_0_17AB
; End of function sub_0_179C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_17A4: ; CODE XREF: sub_0_16E7p
push de
ld de, 15h
jp loc_0_17B8
;----------------------------------------------------------------------------
loc_0_17AB: ; CODE XREF: sub_0_178C+5j
; sub_0_1794+5j ...
ld hl, (2711h)
ld a, h
or l
jr z, loc_0_17B3
add hl, de
loc_0_17B3: ; CODE XREF: sub_0_17A4+Cj
ld a, (hl)
pop de
pop hl
or a
ret
;----------------------------------------------------------------------------
loc_0_17B8: ; CODE XREF: sub_0_17A4+4j
ld hl, (2711h)
add hl, de
ld e, (hl)
inc hl
ld d, (hl)
inc hl
ld a, (hl)
ex de, hl
pop de
or a
ret
; End of function sub_0_17A4
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_17C5: ; CODE XREF: start+11p
ld (2711h), hl
ret
; End of function sub_0_17C5
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_17C9: ; CODE XREF: start+8Cp
push de
ld (2752h), a
call sub_0_1979
call sub_0_185C
jp loc_0_17E0
;----------------------------------------------------------------------------
.db 0D5h ; Õ
.db 32h ; 2
.db 52h ; R
.db 27h ; '
.db 0CDh ; Í
.db 79h ; y
.db 19h ;
.db 0CDh ; Í
.db 5Dh ; ]
.db 18h ;
;----------------------------------------------------------------------------
loc_0_17E0: ; CODE XREF: sub_0_17C9+Aj
pop de
ret z
push af
ld a, (2752h)
call sub_0_19CB
call sub_0_1938
xor a
call sub_0_17F2
pop af
ret
; End of function sub_0_17C9
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_17F2: ; CODE XREF: sub_0_17C9+24p
push bc
push de
push hl
ld (273Fh), hl
push hl
ld (2713h), a
ld de, 273Fh
ld (2741h), bc
ld hl, 181Ah
ld (2745h), hl
ld hl, (2747h)
call sub_0_1A30
pop hl
ld (273Fh), hl
call sub_0_1A81
pop hl
pop de
pop bc
ret
; End of function sub_0_17F2
;----------------------------------------------------------------------------
.db 0C5h ; Å
.db 0E5h ; å
.db 0D5h ; Õ
.db 3Ah ; :
.db 13h ;
.db 27h ; '
.db 0B7h ; ·
.db 28h ; (
.db 30h ; 0
.db 1 ;
.db 9 ;
.db 0 ;
.db 9 ;
.db 0EBh ; ë
.db 9 ;
.db 0EBh ; ë
.db 6 ;
.db 3 ;
.db 0CDh ; Í
.db 6Ah ; j
.db 1Fh ;
.db 0D1h ; Ñ
.db 0E1h ; á
.db 20h ;
.db 1Eh ;
.db 0E5h ; å
.db 0D5h ; Õ
.db 23h ; #
.db 13h ;
.db 6 ;
.db 8 ;
.db 0CDh ; Í
.db 6Ah ; j
.db 1Fh ;
.db 0D1h ; Ñ
.db 0E1h ; á
.db 20h ;
.db 11h ;
.db 0E5h ; å
.db 0D5h ; Õ
.db 1 ;
.db 0Ch ;
.db 0 ;
.db 9 ;
.db 0EBh ; ë
.db 9 ;
.db 0EBh ; ë
.db 1Ah ;
.db 0BEh ; ¾
.db 0D1h ; Ñ
.db 0E1h ; á
.db 20h ;
.db 2 ;
.db 1Ah ;
.db 0BEh ; ¾
.db 0C1h ; Á
.db 0C9h ; É
.db 23h ; #
.db 13h ;
.db 6 ;
.db 0Ch ;
.db 0CDh ; Í
.db 6Ah ; j
.db 1Fh ;
.db 18h ;
.db 0EFh ; ï
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_185C: ; CODE XREF: sub_0_17C9+7p
or 0AFh
ld (2738h), a
push hl
push de
ld (273Fh), hl
ld (2739h), hl
ld hl, 2714h
ld a, 3Fh
ld b, 0Ch
call sub_0_1F09
xor a
ld b, 18h
call sub_0_1F09
ld hl, 0
ld (273Bh), hl
ld de, 80h
ld c, F_DMAOFF
call bdos
ld c, 11h
jr loc_0_1892
;----------------------------------------------------------------------------
loc_0_188B: ; CODE XREF: sub_0_185C+3Ej
call sub_0_18A8
jr z, loc_0_18A5
ld c, 12h
loc_0_1892: ; CODE XREF: sub_0_185C+2Dj
ld de, 2714h
call bdos
cp 0FFh
jr nz, loc_0_188B
or 0FFh
loc_0_189E: ; CODE XREF: sub_0_185C+4Aj
ld bc, (273Bh)
pop de
pop hl
ret
;----------------------------------------------------------------------------
loc_0_18A5: ; CODE XREF: sub_0_185C+32j
xor a
jr loc_0_189E
; End of function sub_0_185C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_18A8: ; CODE XREF: sub_0_185C+2Fp
push bc
push de
push hl
rrca
rrca
rrca
and 60h
ld de, 80h
ld l, a
ld h, 0
add hl, de
ld a, (hl)
cp 0E5h
jr z, loc_0_18E4+1
cp 21h
jr nc, loc_0_18E4+1
call sub_0_18EB
jr z, loc_0_18E4+1
push hl
ld hl, (273Bh)
inc hl
ld (273Bh), hl
pop hl
ld de, (273Fh)
ld bc, 10h
ldir
ld (273Fh), de
call sub_0_1F4A
ld a, h
dec a
cp d
jr nz, loc_0_18E4+1
xor a
loc_0_18E4: ; CODE XREF: sub_0_18A8+12j
; sub_0_18A8+16j ...
ld hl, 0FFF6h
pop hl
pop de
pop bc
ret
; End of function sub_0_18A8
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_18EB: ; CODE XREF: sub_0_18A8+18p
push hl
ex de, hl
ld bc, (273Bh)
ld a, b
or c
jr z, loc_0_1934
ld hl, (2739h)
loc_0_18F8: ; CODE XREF: sub_0_18EB+47j
push bc
push hl
push de
ld b, 0Ch
call sub_0_1F6A
pop de
pop hl
jr nz, loc_0_192A
push hl
push de
ld bc, 0Ch
add hl, bc
ex de, hl
add hl, bc
ld a, (de)
cp (hl)
pop de
pop hl
jr nc, loc_0_1920
ld a, (2738h)
or a
jr nz, loc_0_1926
loc_0_1918: ; CODE XREF: sub_0_18EB+39j
ex de, hl
ld bc, 10h
ldir
jr loc_0_1926
;----------------------------------------------------------------------------
loc_0_1920: ; CODE XREF: sub_0_18EB+25j
ld a, (2738h)
or a
jr nz, loc_0_1918
loc_0_1926: ; CODE XREF: sub_0_18EB+2Bj
; sub_0_18EB+33j
pop bc
xor a
pop hl
ret
;----------------------------------------------------------------------------
loc_0_192A: ; CODE XREF: sub_0_18EB+17j
ld bc, 10h
add hl, bc
pop bc
dec bc
ld a, b
or c
jr nz, loc_0_18F8
loc_0_1934: ; CODE XREF: sub_0_18EB+8j
or 0FFh
pop hl
ret
; End of function sub_0_18EB
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1938: ; CODE XREF: sub_0_17C9+20p
push hl
push de
push af
push hl
ld hl, 0
ld (273Dh), hl
pop hl
ld (273Fh), hl
push bc
loc_0_1947: ; CODE XREF: sub_0_1938+31j
; sub_0_1938+37j
pop bc
ld a, b
or c
jr z, loc_0_1971
dec bc
push bc
bit 7, (hl)
jr z, loc_0_196B
res 7, (hl)
ex de, hl
ld hl, (273Dh)
inc hl
ld (273Dh), hl
ld hl, (273Fh)
ex de, hl
ld bc, 10h
ldir
ld (273Fh), de
jr loc_0_1947
;----------------------------------------------------------------------------
loc_0_196B: ; CODE XREF: sub_0_1938+18j
ld bc, 10h
add hl, bc
jr loc_0_1947
;----------------------------------------------------------------------------
loc_0_1971: ; CODE XREF: sub_0_1938+12j
ld bc, (273Dh)
pop af
pop de
pop hl
ret
; End of function sub_0_1938
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1979: ; CODE XREF: sub_0_17C9+4p
push de
push bc
ex de, hl
call sub_0_19A1
ld hl, (2750h)
ld (2741h), hl
ld hl, 10h
ld (2743h), hl
ld hl, 0
ld (273Fh), hl
ld hl, 0FFh
ld (2749h), hl
ex de, hl
ld de, 273Fh
call sub_0_1A30
pop bc
pop de
ret
; End of function sub_0_1979
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_19A1: ; CODE XREF: sub_0_1979+3p
push bc
push de
push hl
push af
ld c, 1Fh
call bdos
inc hl
inc hl
ld de, 274Bh
ldi
ldi
ldi
ld e, (hl)
inc hl
ld d, (hl)
inc de
ld (274Eh), de
inc hl
ld e, (hl)
inc hl
ld d, (hl)
inc de
ld (2750h), de
pop af
pop hl
pop de
pop bc
ret
; End of function sub_0_19A1
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_19CB: ; CODE XREF: sub_0_17C9+1Dp
push hl
push de
push bc
push af
ld (2752h), a
push bc
loc_0_19D3: ; CODE XREF: sub_0_19CB+39j
pop bc
ld a, b
or c
jr z, loc_0_1A06
dec bc
push bc
push hl
push de
inc hl
inc de
ld b, 8
ex de, hl
call sub_0_1F58
pop de
pop hl
jr nz, loc_0_1A00
push hl
push de
ld bc, 9
add hl, bc
ex de, hl
add hl, bc
ld b, 3
call sub_0_1F58
pop de
pop hl
jr nz, loc_0_1A00
call sub_0_1A0B
jr nz, loc_0_1A00
set 7, (hl)
loc_0_1A00: ; CODE XREF: sub_0_19CB+1Bj
; sub_0_19CB+2Cj ...
ld bc, 10h
add hl, bc
jr loc_0_19D3
;----------------------------------------------------------------------------
loc_0_1A06: ; CODE XREF: sub_0_19CB+Bj
pop af
pop bc
pop de
pop hl
ret
; End of function sub_0_19CB
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1A0B: ; CODE XREF: sub_0_19CB+2Ep
push de
push hl
ld de, 0Ah
add hl, de
bit 7, (hl)
pop hl
pop de
ld a, (2752h)
jr z, loc_0_1A21
bit 6, a
jr nz, loc_0_1A25
loc_0_1A1E: ; CODE XREF: sub_0_1A0B+18j
; sub_0_1A0B+21j
or 0FFh
ret
;----------------------------------------------------------------------------
loc_0_1A21: ; CODE XREF: sub_0_1A0B+Dj
bit 7, a
jr z, loc_0_1A1E
loc_0_1A25: ; CODE XREF: sub_0_1A0B+11j
bit 5, a
jr nz, loc_0_1A2E
xor (hl)
and 3Fh
jr nz, loc_0_1A1E
loc_0_1A2E: ; CODE XREF: sub_0_1A0B+1Cj
xor a
ret
; End of function sub_0_1A0B
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1A30: ; CODE XREF: sub_0_17F2+1Ap
; sub_0_1979+22p
push bc
push de
push hl
call sub_0_1B84
pop de
ld (275Dh), de
ld hl, (2757h)
ld a, h
or l
jr z, loc_0_1A7B
ld b, h
ld c, l
add hl, hl
jr c, loc_0_1A7B
add hl, de
jr c, loc_0_1A7B
ex de, hl
ld hl, (6)
sbc hl, de
jr c, loc_0_1A7B
ld hl, (2755h)
ld a, h
or l
jr z, loc_0_1A5A
ex de, hl
loc_0_1A5A: ; CODE XREF: sub_0_1A30+27j
push de
ld hl, (275Dh)
loc_0_1A5E: ; CODE XREF: sub_0_1A30+3Cj
ld (hl), e
inc hl
ld (hl), d
inc hl
push hl
ld hl, (2759h)
add hl, de
ex de, hl
pop hl
dec bc
ld a, b
or c
jr nz, loc_0_1A5E
pop hl
ld (2755h), hl
push hl
call sub_0_1B91
pop hl
dec a
loc_0_1A78: ; CODE XREF: sub_0_1A30+4Fj
pop de
pop bc
ret
;----------------------------------------------------------------------------
loc_0_1A7B: ; CODE XREF: sub_0_1A30+10j
; sub_0_1A30+15j ...
xor a
ld hl, (275Dh)
jr loc_0_1A78
; End of function sub_0_1A30
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1A81: ; CODE XREF: sub_0_17F2+21p
ex af, af'
push af
ex af, af'
push hl
push de
push bc
push af
call sub_0_1B84
call sub_0_1B9A
ld a, (275Fh)
or a
jr z, loc_0_1AF1
ld a, (2760h)
or a
jr nz, loc_0_1AF1
ld hl, (2757h)
ld a, h
or l
jr z, loc_0_1AF1
ld (2761h), hl
ld hl, 0
ld (2763h), hl
loc_0_1AAA: ; CODE XREF: sub_0_1A81+4Bj
; sub_0_1A81+6Ej
ld hl, (2761h)
dec hl
ld a, h
or l
jr z, loc_0_1AF1
ld (2761h), hl
ld hl, (2763h)
inc hl
ld (2763h), hl
ld d, h
ld e, l
call sub_0_1B7C
ld a, (hl)
inc hl
ld h, (hl)
ld l, a
ex de, hl
call sub_0_1B29
sbc hl, de
add hl, de
jr nc, loc_0_1AAA
push de
push hl
call sub_0_1B08
ld hl, (2763h)
call sub_0_1B7C
pop de
ld (hl), e
inc hl
ld (hl), d
inc hl
loc_0_1ADE: ; CODE XREF: sub_0_1A81+61j
; sub_0_1A81+67j
ld a, (hl)
inc hl
cp e
inc hl
jr nz, loc_0_1ADE
dec hl
ld a, (hl)
inc hl
cp d
jr nz, loc_0_1ADE
pop de
dec hl
ld (hl), d
dec hl
ld (hl), e
jr loc_0_1AAA
;----------------------------------------------------------------------------
loc_0_1AF1: ; CODE XREF: sub_0_1A81+11j
; sub_0_1A81+17j ...
pop af
pop bc
pop de
pop hl
ex af, af'
pop af
ex af, af'
ret
; End of function sub_0_1A81
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1AF9: ; CODE XREF: sub_0_1B9A+3Cp
push hl
push de
ld bc, 1B0Eh
push bc
ld a, (275Fh)
or a
jr nz, loc_0_1B11
call sub_0_1B25
; End of function sub_0_1AF9
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1B08: ; CODE XREF: sub_0_1A81+4Fp
ld bc, (2759h)
jr loc_0_1B1B
;----------------------------------------------------------------------------
.db 0D1h ; Ñ
.db 0E1h ; á
.db 0C9h ; É
;----------------------------------------------------------------------------
loc_0_1B11: ; CODE XREF: sub_0_1AF9+Aj
call sub_0_1B7C
ex de, hl
dec hl
add hl, hl
add hl, bc
ld bc, 2
loc_0_1B1B: ; CODE XREF: sub_0_1B08+4j
; sub_0_1B08+19j
ld a, (de)
ldi
dec hl
ld (hl), a
inc hl
jp pe, loc_0_1B1B
ret
; End of function sub_0_1B08
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1B25: ; CODE XREF: sub_0_1AF9+Cp
; sub_0_1B55+Cp
call sub_0_1B29
ex de, hl
; End of function sub_0_1B25
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1B29: ; CODE XREF: sub_0_1A81+45p
; sub_0_1B25p
push de
dec hl
ld d, h
ld e, l
ld bc, (2759h)
ld hl, 0FFE5h
add hl, bc
ld hl, 0
jr nc, loc_0_1B4A
ld a, 10h
loc_0_1B3C: ; CODE XREF: sub_0_1B29+1Bj
add hl, hl
ex de, hl
add hl, hl
ex de, hl
jr nc, loc_0_1B43
add hl, bc
loc_0_1B43: ; CODE XREF: sub_0_1B29+17j
dec a
jr nz, loc_0_1B3C
jr loc_0_1B4E
;----------------------------------------------------------------------------
loc_0_1B48: ; CODE XREF: sub_0_1B29+23j
dec bc
add hl, de
loc_0_1B4A: ; CODE XREF: sub_0_1B29+Fj
ld a, b
or c
jr nz, loc_0_1B48
loc_0_1B4E: ; CODE XREF: sub_0_1B29+1Dj
ld de, (2755h)
add hl, de
pop de
ret
; End of function sub_0_1B29
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1B55: ; CODE XREF: sub_0_1B9A+37p
push hl
push de
ld bc, 1B0Eh
push bc
ld a, (275Fh)
or a
jr nz, loc_0_1B66
call sub_0_1B25
jr loc_0_1B76
;----------------------------------------------------------------------------
loc_0_1B66: ; CODE XREF: sub_0_1B55+Aj
call sub_0_1B7C
ex de, hl
dec hl
add hl, hl
add hl, bc
ld c, (hl)
inc hl
ld b, (hl)
ex de, hl
ld e, (hl)
inc hl
ld d, (hl)
ld h, b
ld l, c
loc_0_1B76: ; CODE XREF: sub_0_1B55+Fj
push hl
ld hl, (275Bh)
ex (sp), hl
ret
; End of function sub_0_1B55
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1B7C: ; CODE XREF: sub_0_1A81+3Dp
; sub_0_1A81+55p ...
dec hl
add hl, hl
ld bc, (275Dh)
add hl, bc
ret
; End of function sub_0_1B7C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1B84: ; CODE XREF: sub_0_1A30+3p
; sub_0_1A81+7p
ex de, hl
ld (2753h), hl
ld de, 2755h
loc_0_1B8B: ; CODE XREF: sub_0_1B91+7j
ld bc, 0Ch
ldir
ret
; End of function sub_0_1B84
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1B91: ; CODE XREF: sub_0_1A30+43p
ld hl, 2755h
ld de, (2753h)
jr loc_0_1B8B
; End of function sub_0_1B91
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1B9A: ; CODE XREF: sub_0_1A81+Ap
ld hl, (2757h)
ld (2763h), hl
loc_0_1BA0: ; CODE XREF: sub_0_1B9A+29j
ld hl, (2763h)
srl h
rr l
ld a, l
or h
ret z
bit 0, l
jr nz, loc_0_1BAF
dec hl
loc_0_1BAF: ; CODE XREF: sub_0_1B9A+12j
ld (2763h), hl
ld (2761h), hl
loc_0_1BB5: ; CODE XREF: sub_0_1B9A+31j
; sub_0_1B9A+33j ...
ld hl, (2761h)
inc hl
ld (2761h), hl
ex de, hl
ld hl, (2757h)
or a
sbc hl, de
jr c, loc_0_1BA0
loc_0_1BC5: ; CODE XREF: sub_0_1B9A+3Fj
ld hl, (2763h)
ex de, hl
sbc hl, de
jr c, loc_0_1BB5
jr z, loc_0_1BB5
ex de, hl
add hl, de
call sub_0_1B55
jr nc, loc_0_1BB5
call sub_0_1AF9
jr loc_0_1BC5
; End of function sub_0_1B9A
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1BDB: ; CODE XREF: sub_0_922+23p
push hl
call sub_0_1C23
call sub_0_1C37
pop hl
ret nz
cpl
ld (byte_0_1C35), a
cpl
ret
; End of function sub_0_1BDB
;----------------------------------------------------------------------------
.db 0E5h ; å
.db 0CDh ; Í
.db 2Ch ; ,
.db 1Ch ;
.db 0CDh ; Í
.db 75h ; u
.db 1Ch ;
.db 0E1h ; á
.db 0C0h ; À
.db 2Fh ; /
.db 32h ; 2
.db 36h ; 6
.db 1Ch ;
.db 2Fh ; /
.db 0C9h ; É
.db 0E5h ; å
.db 0CDh ; Í
.db 23h ; #
.db 1Ch ;
.db 0C3h ; Ã
.db 98h ; ˜
.db 1Ch ;
.db 0E5h ; å
.db 0F5h ; õ
.db 0CDh ; Í
.db 2Ch ; ,
.db 1Ch ;
.db 0F1h ; ñ
.db 0C3h ; Ã
.db 0DFh ; ß
.db 1Ch ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1C09: ; CODE XREF: sub_0_8C1+24p
push hl
call sub_0_1C23
call nz, sub_0_1D16
pop hl
ret nz
ld (byte_0_1C35), a
ret
; End of function sub_0_1C09
;----------------------------------------------------------------------------
.db 0E5h ; å
.db 0CDh ; Í
.db 2Ch ; ,
.db 1Ch ;
.db 0C4h ; Ä
.db 21h ; !
.db 1Dh ;
.db 0E1h ; á
.db 0C0h ; À
.db 32h ; 2
.db 36h ; 6
.db 1Ch ;
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1C23: ; CODE XREF: sub_0_1BDB+1p
; sub_0_1C09+1p
ld hl, 2765h
ld a, (byte_0_1C35)
ld (hl), a
or a
ret
; End of function sub_0_1C23
;----------------------------------------------------------------------------
.db 21h ; !
.db 0Dh ;
.db 28h ; (
.db 3Ah ; :
.db 36h ; 6
.db 1Ch ;
.db 77h ; w
.db 0B7h ; ·
.db 0C9h ; É
byte_0_1C35: .db 0 ; DATA XREF: sub_0_1BDB+Aw
; sub_0_1C09+9w ...
.db 0 ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1C37: ; CODE XREF: sub_0_1BDB+4p
push bc
push de
ld a, (hl)
or a
ld a, 7
jr nz, loc_0_1C72
ld (28B5h), hl
inc hl
inc hl
inc hl
inc hl
push hl
ld bc, 24h
ex de, hl
ldir
pop de
call sub_0_1DF3
call sub_0_1DD7
ld a, 3
jr nz, loc_0_1C72
call sub_0_1D56
ld a, 4
jr nz, loc_0_1C72
ld hl, (28B5h)
ld (hl), 0FFh
inc hl
ld (hl), 80h
inc hl
ex de, hl
ld hl, 26h
add hl, de
ex de, hl
ld (hl), e
inc hl
ld (hl), d
xor a
loc_0_1C72: ; CODE XREF: sub_0_1C37+6j
; sub_0_1C37+1Fj ...
jp loc_0_1D52
; End of function sub_0_1C37
;----------------------------------------------------------------------------
.db 0C5h ; Å
.db 0D5h ; Õ
.db 7Eh ; ~
.db 0B7h ; ·
.db 3Eh ; >
.db 7 ;
.db 20h ;
.db 0F5h ; õ
.db 22h ; "
.db 0B5h ; µ
.db 28h ; (
.db 23h ; #
.db 23h ; #
.db 23h ; #
.db 23h ; #
.db 0E5h ; å
.db 1 ;
.db 24h ; $
.db 0 ;
.db 0EBh ; ë
.db 0EDh ; í
.db 0B0h ; °
.db 0D1h ; Ñ
.db 0CDh ; Í
.db 0F3h ; ó
.db 1Dh ;
.db 0CDh ; Í
.db 0C9h ; É
.db 1Dh ;
.db 28h ; (
.db 0CBh ; Ë
.db 3Eh ; >
.db 5 ;
.db 18h ;
.db 0DAh ; Ú
.db 0C5h ; Å
.db 0D5h ; Õ
.db 7Eh ; ~
.db 0B7h ; ·
.db 3Eh ; >
.db 1 ;
.db 28h ; (
.db 71h ; q
.db 22h ; "
.db 0B5h ; µ
.db 28h ; (
.db 23h ; #
.db 23h ; #
.db 5Eh ; ^
.db 23h ; #
.db 56h ; V
.db 7Ah ; z
.db 0B3h ; ³
.db 3Eh ; >
.db 4 ;
.db 28h ; (
.db 63h ; c
.db 1Ah ;
.db 32h ; 2
.db 0B7h ; ·
.db 28h ; (
.db 13h ;
.db 72h ; r
.db 2Bh ; +
.db 73h ; s
.db 2Bh ; +
.db 35h ; 5
.db 20h ;
.db 1Bh ;
.db 36h ; 6
.db 80h ; €
.db 23h ; #
.db 0EBh ; ë
.db 21h ; !
.db 26h ; &
.db 0 ;
.db 19h ;
.db 0EBh ; ë
.db 73h ; s
.db 23h ; #
.db 72h ; r
.db 0CDh ; Í
.db 56h ; V
.db 1Dh ;
.db 28h ; (
.db 0Ah ;
.db 2Ah ; *
.db 0B5h ; µ
.db 28h ; (
.db 23h ; #
.db 23h ; #
.db 36h ; 6
.db 0 ;
.db 23h ; #
.db 36h ; 6
.db 0 ;
.db 3Ah ; :
.db 0B7h ; ·
.db 28h ; (
.db 0BFh ; ¿
.db 18h ;
.db 37h ; 7
.db 0E5h ; å
.db 2Ah ; *
.db 0B5h ; µ
.db 28h ; (
.db 0C5h ; Å
.db 0D5h ; Õ
.db 32h ; 2
.db 0B7h ; ·
.db 28h ; (
.db 7Eh ; ~
.db 0B7h ; ·
.db 3Eh ; >
.db 1 ;
.db 28h ; (
.db 27h ; '
.db 22h ; "
.db 0B5h ; µ
.db 28h ; (
.db 23h ; #
.db 23h ; #
.db 5Eh ; ^
.db 23h ; #
.db 56h ; V
.db 3Ah ; :
.db 0B7h ; ·
.db 28h ; (
.db 12h ;
.db 13h ;
.db 72h ; r
.db 2Bh ; +
.db 73h ; s
.db 2Bh ; +
.db 35h ; 5
.db 20h ;
.db 0D7h ; ×
.db 36h ; 6
.db 80h ; €
.db 23h ; #
.db 0EBh ; ë
.db 21h ; !
.db 26h ; &
.db 0 ;
.db 19h ;
.db 0EBh ; ë
.db 73h ; s
.db 23h ; #
.db 72h ; r
.db 0CDh ; Í
.db 6Dh ; m
.db 1Dh ;
.db 28h ; (
.db 0C6h ; Æ
.db 3Eh ; >
.db 2 ;
.db 0B7h ; ·
.db 0D1h ; Ñ
.db 0C1h ; Á
.db 0E1h ; á
.db 0C9h ; É
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1D16: ; CODE XREF: sub_0_1C09+4p
push bc
push de
ld a, (hl)
or a
jr z, loc_0_1D52
ld (28B5h), hl
jr loc_0_1D40
;----------------------------------------------------------------------------
.db 0C5h ; Å
.db 0D5h ; Õ
.db 7Eh ; ~
.db 0B7h ; ·
.db 28h ; (
.db 2Bh ; +
.db 22h ; "
.db 0B5h ; µ
.db 28h ; (
.db 23h ; #
.db 7Eh ; ~
.db 0FEh ; þ
.db 80h ; €
.db 28h ; (
.db 10h ;
.db 3Eh ; >
.db 1Ah ;
.db 0CDh ; Í
.db 0DBh ; Û
.db 1Ch ;
.db 7Eh ; ~
.db 0FEh ; þ
.db 80h ; €
.db 28h ; (
.db 6 ;
.db 0AFh ; ¯
.db 0CDh ; Í
.db 0DBh ; Û
.db 1Ch ;
.db 18h ;
.db 0F5h ; õ
;----------------------------------------------------------------------------
loc_0_1D40: ; CODE XREF: sub_0_1D16+9j
ld hl, (28B5h)
ld (hl), 0
inc hl
inc hl
inc hl
inc hl
ex de, hl
call sub_0_1DD2
ld a, 6
jr nz, loc_0_1D52
xor a
loc_0_1D52: ; CODE XREF: sub_0_1C37+3Bj
; sub_0_1D16+4j ...
pop de
pop bc
or a
ret
; End of function sub_0_1D16
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1D56: ; CODE XREF: sub_0_1C37+21p
ld hl, (28B5h)
ld de, 28h
add hl, de
call sub_0_1DE9
ld de, (28B5h)
inc de
inc de
inc de
inc de
call sub_0_1DDF
jr loc_0_1D82
;----------------------------------------------------------------------------
.db 2Ah ; *
.db 0B5h ; µ
.db 28h ; (
.db 11h ;
.db 28h ; (
.db 0 ;
.db 19h ;
.db 0CDh ; Í
.db 0E9h ; é
.db 1Dh ;
.db 0EDh ; í
.db 5Bh ; [
.db 0B5h ; µ
.db 28h ; (
.db 13h ;
.db 13h ;
.db 13h ;
.db 13h ;
.db 0CDh ; Í
.db 0E4h ; ä
.db 1Dh ;
;----------------------------------------------------------------------------
loc_0_1D82: ; CODE XREF: sub_0_1D56+15j
push af
ld hl, 80h
call sub_0_1DE9
pop af
or a
ret
; End of function sub_0_1D56
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1D8C: ; CODE XREF: sub_0_15E9+8p
; sub_0_1774+Ap
push af
push de
push hl
ld c, 19h
call sub_0_1E11
push af
ld e, 0FFh
ld c, 20h
call sub_0_1E11
ld c, a
pop af
ld b, a
pop hl
pop de
pop af
ret
; End of function sub_0_1D8C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1DA3: ; CODE XREF: sub_0_922+3p
ld a, 23h
jr loc_0_1DA9
;----------------------------------------------------------------------------
.db 3Eh ; >
.db 24h ; $
;----------------------------------------------------------------------------
loc_0_1DA9: ; CODE XREF: sub_0_1DA3+2j
push de
push bc
push af
ld hl, 28B8h
ld bc, 24h
push hl
ex de, hl
ldir
pop de
pop af
call sub_0_1E1A
ld hl, 21h
add hl, de
ld e, (hl)
inc hl
ld d, (hl)
inc hl
ld a, (hl)
ex de, hl
pop bc
pop de
or a
ret
; End of function sub_0_1DA3
;----------------------------------------------------------------------------
.db 0CDh ; Í
.db 0D7h ; ×
.db 1Dh ;
.db 0C8h ; È
.db 3Eh ; >
.db 16h ;
.db 0C3h ; Ã
.db 0D9h ; Ù
.db 1Dh ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1DD2: ; CODE XREF: sub_0_1D16+34p
ld a, 10h
jp loc_0_1DD9
; End of function sub_0_1DD2
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1DD7: ; CODE XREF: sub_0_1C37+1Ap
ld a, 0Fh
loc_0_1DD9: ; CODE XREF: sub_0_1DD2+2j
call sub_0_1E1A
ret m
xor a
ret
; End of function sub_0_1DD7
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1DDF: ; CODE XREF: sub_0_1D56+12p
ld a, 14h
jp sub_0_1E1A
; End of function sub_0_1DDF
;----------------------------------------------------------------------------
.db 3Eh ; >
.db 15h ;
.db 0C3h ; Ã
.db 1Ah ;
.db 1Eh ;
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1DE9: ; CODE XREF: sub_0_1D56+7p
; sub_0_1D56+30p
push af
ld a, 1Ah
ex de, hl
call sub_0_1E1A
ex de, hl
pop af
ret
; End of function sub_0_1DE9
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1DF3: ; CODE XREF: sub_0_1C37+17p
push hl
push de
push af
ex de, hl
ld de, 0Ch
ld (hl), d
add hl, de
ld e, 15h
loc_0_1DFE: ; CODE XREF: sub_0_1DF3+Ej
ld (hl), d
inc hl
dec e
jr nz, loc_0_1DFE
pop af
pop de
pop hl
ret
; End of function sub_0_1DF3
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E07: ; CODE XREF: sub_0_15B6+4p
ld a, 1
jp sub_0_1E1A
; End of function sub_0_1E07
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E0C: ; CODE XREF: sub_0_15B6+1p
ld a, 0Bh
jp sub_0_1E1A
; End of function sub_0_1E0C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E11: ; CODE XREF: sub_0_1D8C+5p
; sub_0_1D8C+Dp
push de
push bc
call bdos
pop bc
pop de
or a
ret
; End of function sub_0_1E11
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E1A: ; CODE XREF: sub_0_1DA3+15p
; sub_0_1DD7+2p ...
push hl
push de
push bc
ld c, a
call bdos
or a
pop bc
pop de
pop hl
ret
; End of function sub_0_1E1A
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E26: ; CODE XREF: sub_0_4AC+10p
; sub_0_972+Cp
push bc
push hl
push de
push af
ld b, 8
call sub_0_1E3C
ld (hl), 2Eh
inc hl
ld b, 3
call sub_0_1E3C
pop af
pop de
pop hl
pop bc
ret
; End of function sub_0_1E26
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E3C: ; CODE XREF: sub_0_1E26+6p
; sub_0_1E26+Ep ...
ld a, (de)
and 7Fh
cp 20h
jr z, loc_0_1E45
ld (hl), a
inc hl
loc_0_1E45: ; CODE XREF: sub_0_1E3C+5j
inc de
djnz sub_0_1E3C
ret
; End of function sub_0_1E3C
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E49: ; CODE XREF: start+9Dp sub_0_4AC+1Fp
push bc
ld b, 0
jp loc_0_1E52
;----------------------------------------------------------------------------
.db 0C5h ; Å
.db 6 ;
.db 0FFh ; ÿ
;----------------------------------------------------------------------------
loc_0_1E52: ; CODE XREF: sub_0_1E49+3j
push hl
push af
ld h, 64h
call sub_0_1E65
ld h, 0Ah
call sub_0_1E65
call sub_0_1E79
pop af
pop hl
pop bc
ret
; End of function sub_0_1E49
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E65: ; CODE XREF: sub_0_1E49+Dp
; sub_0_1E49+12p
ld l, 0FFh
loc_0_1E67: ; CODE XREF: sub_0_1E65+4j
sub h
inc l
jr nc, loc_0_1E67
add a, h
ld h, a
ld a, l
or a
jr nz, sub_0_1E79
or b
ld a, h
ret m
ld a, 20h
jr z, loc_0_1E7C
xor a
; End of function sub_0_1E65
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E79: ; CODE XREF: sub_0_1E49+15p
; sub_0_1E65+Aj
add a, 30h
ld b, a
loc_0_1E7C: ; CODE XREF: sub_0_1E65+11j
ld (de), a
inc de
ld a, h
ret
; End of function sub_0_1E79
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E80: ; CODE XREF: sub_0_15D4+4p
push af
push hl
loc_0_1E82: ; CODE XREF: sub_0_1E80+Bj
ld a, (hl)
or a
jr z, loc_0_1E8D
call sub_0_1F3F
ld (hl), a
inc hl
jr loc_0_1E82
;----------------------------------------------------------------------------
loc_0_1E8D: ; CODE XREF: sub_0_1E80+4j
pop hl
pop af
ret
; End of function sub_0_1E80
;----------------------------------------------------------------------------
.db 0F5h ; õ
.db 7Eh ; ~
.db 23h ; #
.db 0B7h ; ·
.db 28h ; (
.db 5 ;
.db 0CDh ; Í
.db 24h ; $
.db 1Fh ;
.db 28h ; (
.db 0F6h ; ö
;----------------------------------------------------------------------------
loc_0_1E9B: ; CODE XREF: sub_0_1E9E+4j
; sub_0_1E9E+Bj
dec hl
pop af
ret
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1E9E: ; CODE XREF: sub_0_972+20p
; sub_0_972+54p ...
push af
loc_0_1E9F: ; CODE XREF: sub_0_1E9E+9j
ld a, (hl)
inc hl
or a
jr z, loc_0_1E9B
call sub_0_1F24
jr nz, loc_0_1E9F
jr loc_0_1E9B
; End of function sub_0_1E9E
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1EAB: ; CODE XREF: start+3Bp
push bc
push de
push hl
ld c, a
ex de, hl
ld b, (hl)
push hl
inc hl
inc hl
loc_0_1EB4: ; CODE XREF: sub_0_1EAB+25j
call sub_0_1EE8
or a
jr z, loc_0_1EDD
ld (hl), e
inc hl
ld (hl), d
inc hl
dec b
jr z, loc_0_1ED2
call sub_0_1EF6
or a
jr z, loc_0_1EDD
ld a, c
or a
jr z, loc_0_1ECE
xor a
ld (de), a
inc de
loc_0_1ECE: ; CODE XREF: sub_0_1EAB+1Ej
ld a, b
or a
jr nz, loc_0_1EB4
loc_0_1ED2: ; CODE XREF: sub_0_1EAB+14j
call sub_0_1EF6
call sub_0_1EE8
or a
jr z, loc_0_1EDD
or 0FFh
loc_0_1EDD: ; CODE XREF: sub_0_1EAB+Dj
; sub_0_1EAB+1Aj ...
pop hl
push af
ld a, (hl)
sub b
inc hl
ld (hl), a
pop af
pop hl
pop de
pop bc
ret
; End of function sub_0_1EAB
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1EE8: ; CODE XREF: sub_0_1EAB+9p
; sub_0_1EAB+2Ap ...
ld a, (de)
and 7Fh
inc de
cp 20h
jr z, sub_0_1EE8
cp 9
jr z, sub_0_1EE8
dec de
ret
; End of function sub_0_1EE8
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1EF6: ; CODE XREF: sub_0_1EAB+16p
; sub_0_1EAB+27p ...
ld a, (de)
and 7Fh
ret z
cp 20h
ret z
cp 9
ret z
inc de
jr sub_0_1EF6
; End of function sub_0_1EF6
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1F03: ; CODE XREF: sub_0_4AC+Cp sub_0_623+3j
; ...
push hl
call sub_0_1F09
pop hl
ret
; End of function sub_0_1F03
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1F09: ; CODE XREF: sub_0_185C+14p
; sub_0_185C+1Ap ...
push bc
loc_0_1F0A: ; CODE XREF: sub_0_1F09+3j
ld (hl), a
inc hl
djnz loc_0_1F0A
pop bc
ret
; End of function sub_0_1F09
;----------------------------------------------------------------------------
loc_0_1F10: ; CODE XREF: sub_0_972+12p
push bc
ld c, a
and 7Fh
call sub_0_1F3F
cp 41h
jr c, unk_0_1F1F
cp 5Bh
jr c, loc_0_1F20
;----------------------------------------------------------------------------
unk_0_1F1F: .db 0F6h ; ö ; CODE XREF: seg000:1F19j
;----------------------------------------------------------------------------
loc_0_1F20: ; CODE XREF: seg000:1F1Dj
xor a
ld a, c
pop bc
ret
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1F24: ; CODE XREF: sub_0_1E9E+6p
push af
and 7Fh
jr z, loc_0_1F39
cp 7Fh
jr z, loc_0_1F39
cp 20h
jr z, loc_0_1F39
cp 8
jr c, loc_0_1F3C
cp 0Eh
jr nc, loc_0_1F3C
loc_0_1F39: ; CODE XREF: sub_0_1F24+3j
; sub_0_1F24+7j ...
pop af
cp a
ret
;----------------------------------------------------------------------------
loc_0_1F3C: ; CODE XREF: sub_0_1F24+Fj
; sub_0_1F24+13j
pop af
or a
ret
; End of function sub_0_1F24
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1F3F: ; CODE XREF: sub_0_1E80+6p
; seg000:1F14p
and 7Fh
cp 61h
ret c
cp 7Bh
ret nc
and 5Fh
ret
; End of function sub_0_1F3F
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1F4A: ; CODE XREF: sub_0_18A8+33p
ld hl, (6)
ld l, 0
ld a, (2)
sub 16h
cp h
ret nc
ld h, a
ret
; End of function sub_0_1F4A
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1F58: ; CODE XREF: sub_0_19CB+16p
; sub_0_19CB+27p ...
ld a, (hl)
and 7Fh
cp 3Fh
jr z, loc_0_1F65
ld c, a
ld a, (de)
and 7Fh
cp c
ret nz
loc_0_1F65: ; CODE XREF: sub_0_1F58+5j
inc hl
inc de
djnz sub_0_1F58
ret
; End of function sub_0_1F58
;----------------------------------------------------------------------------
; S u b r o u t i n e
sub_0_1F6A: ; CODE XREF: sub_0_18EB+12p
; sub_0_1F6A+Bj
ld a, (hl)
and 7Fh
ld c, a
ld a, (de)
and 7Fh
cp c
ret nz
inc hl
inc de
djnz sub_0_1F6A
ret
; End of function sub_0_1F6A
;----------------------------------------------------------------------------
word_0_1F78: .dw 28DCh ; DATA XREF: start+30r start+3Er
; ...
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.db 0 ;
.end ; start