diff --git a/Source/Apps/Test/Build.cmd b/Source/Apps/Test/Build.cmd index 5359873a..d15ea50d 100644 --- a/Source/Apps/Test/Build.cmd +++ b/Source/Apps/Test/Build.cmd @@ -18,6 +18,7 @@ pushd inttest && call Build || exit /b & popd pushd ppidetst && call Build || exit /b & popd pushd ramtest && call Build || exit /b & popd pushd I2C && call Build || exit /b & popd +pushd rzsz && call Build || exit /b & popd goto :eof diff --git a/Source/Apps/Test/Clean.cmd b/Source/Apps/Test/Clean.cmd index da661cf0..ee9af6ad 100644 --- a/Source/Apps/Test/Clean.cmd +++ b/Source/Apps/Test/Clean.cmd @@ -13,3 +13,4 @@ pushd inttest && call Clean || exit /b 1 & popd pushd ppidetst && call Clean || exit /b 1 & popd pushd ramtest && call Clean || exit /b 1 & popd pushd I2C && call Clean || exit /b 1 & popd +pushd rzsz && call Clean || exit /b 1 & popd diff --git a/Source/Apps/Test/Makefile b/Source/Apps/Test/Makefile index 88d476ee..61717011 100644 --- a/Source/Apps/Test/Makefile +++ b/Source/Apps/Test/Makefile @@ -1,5 +1,5 @@ OBJECTS = -SUBDIRS = DMAmon I2C inttest ppidetst ramtest tstdskng +SUBDIRS = DMAmon I2C inttest ppidetst ramtest tstdskng rzsz DEST = ../../../Binary/Apps/Test TOOLS =../../../Tools diff --git a/Source/Apps/Test/rzsz/Build.cmd b/Source/Apps/Test/rzsz/Build.cmd new file mode 100644 index 00000000..42fd5b5f --- /dev/null +++ b/Source/Apps/Test/rzsz/Build.cmd @@ -0,0 +1,17 @@ +@echo off +setlocal + +set TOOLS=../../../../Tools +set PATH=%TOOLS%\tasm32;%PATH% +set TASMTABS=%TOOLS%\tasm32 + +tasm -t80 -b -f00 rz.asm rz.com rz.lst || exit /b +tasm -t80 -b -f00 sz.asm sz.com sz.lst || exit /b + +:: Compare to original distribution +:: Need to remove these lines when starting to make actual changes +fc /B rz.com rz.com.orig || exit /b +fc /B sz.com sz.com.orig || exit /b + +copy /Y rz.com ..\..\..\..\Binary\Apps\Test\ || exit /b +copy /Y sz.com ..\..\..\..\Binary\Apps\Test\ || exit /b diff --git a/Source/Apps/Test/rzsz/Clean.cmd b/Source/Apps/Test/rzsz/Clean.cmd new file mode 100644 index 00000000..9ecb428f --- /dev/null +++ b/Source/Apps/Test/rzsz/Clean.cmd @@ -0,0 +1,6 @@ +@echo off +setlocal + +if exist *.com del *.com +if exist *.lst del *.lst +if exist *.bin del *.bin diff --git a/Source/Apps/Test/rzsz/Makefile b/Source/Apps/Test/rzsz/Makefile new file mode 100644 index 00000000..52710d6b --- /dev/null +++ b/Source/Apps/Test/rzsz/Makefile @@ -0,0 +1,7 @@ +OBJECTS = rz.com sz.com +DEST = ../../../../Binary/Apps/Test +TOOLS =../../../../Tools + +USETASM=1 + +include $(TOOLS)/Makefile.inc \ No newline at end of file diff --git a/Source/Apps/Test/rzsz/rz.asm b/Source/Apps/Test/rzsz/rz.asm new file mode 100644 index 00000000..4eb0748f --- /dev/null +++ b/Source/Apps/Test/rzsz/rz.asm @@ -0,0 +1,4941 @@ +; rz (receive 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, | +; | Professional version of IDA is at http://www.idapro.com | +; +-----------------------------------------------------------------+ +; + + +; File Name C:\RZ.COM +; Format COM File +; Base Address: 0000h Range: 0100h - 1800h Loaded length: 1700h + +; Processor: z80 +; Target assembler: Table Driven Assembler (TASM) by Speech Technology Inc. + +bdos .equ 0005h + +A_READ .equ 3 +A_STATIN .equ 7 +C_WRITESTR .equ 9 +S_BDOSVER .equ 12 +DRV_SET .equ 14 +F_USERNUM .equ 32 +S_SYSVAR .equ 49 + +;---------------------------------------------------------------------------- + + .org 100h + +start: ld sp, 1808h + ld c, S_BDOSVER + call bdos ; Return version number + cp 30h + jp c, loc_0_1C2 + ld de, text1D5h + ld c, C_WRITESTR + call bdos ; Output string + call sub_0_195 + ld hl, (word_0_179E) + xor a + ld b, 14h + call sub_0_1786 + ld a, (80h) + or a + jr z, loc_0_174 + ld (hl), 2 + ld de, 82h + ex de, hl + ld a, 0FFh + call sub_0_172E + jp nz, loc_0_1CA + ld hl, (word_0_179E) + inc hl + ld a, (hl) + or a + jp z, loc_0_174 + inc hl + ld e, (hl) + inc hl + ld d, (hl) + inc hl + ld a, (de) + cp 2Dh + jr nz, loc_0_152 + call sub_0_39A + ld e, (hl) + inc hl + ld d, (hl) + ld a, d + or e + jr z, loc_0_174 + +loc_0_152: ; CODE XREF: start+46j + ld hl, 17A3h + ex de, hl + call sub_0_1492 + ld hl, 17A3h + xor a + or (hl) + jr nz, loc_0_164 + ld a, (byte_0_17A1) + ld (hl), a + +loc_0_164: ; CODE XREF: start+5Ej + ld bc, 0Dh + add hl, bc + dec de + ldi + ld de, 17A3h + call sub_0_1B0 + call sub_0_3C9 + +loc_0_174: ; CODE XREF: start+25j start+3Bj + ; ... + ld de, text1FDh + ld c, C_WRITESTR + call bdos ; Output string + call sub_0_3EF + call sub_0_8D1 + call sub_0_451 + +loc_0_185: ; DATA XREF: sub_0_195+17w + ld bc, 0 + ld (word_0_17A2), bc + ld de, 17A3h + call sub_0_1B0 + jp 0 +; End of function start + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_195: ; CODE XREF: start+15p + ld a, (4) + ld b, a + rlca + rlca + rlca + rlca + and 0Fh + ld (byte_0_17A0), a + ld a, b + and 0Fh + inc a + ld (byte_0_17A1), a + ld hl, (byte_0_17A0) + ld (loc_0_185+1), hl + ret +; End of function sub_0_195 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1B0: ; CODE XREF: start+6Ep start+8Fp + ld a, (de) + push af + dec de + ld a, (de) + ld e, a + ld c, F_USERNUM + call bdos ; get/set user number + pop af + dec a + ld e, a + ld c, DRV_SET + jp 5 ; Select disc +; End of function sub_0_1B0 + +;---------------------------------------------------------------------------- + +loc_0_1C2: ; CODE XREF: start+Aj + ld de, text22Ch + ld c, C_WRITESTR + call bdos ; Output string + +loc_0_1CA: ; CODE XREF: start+32j + ld de, text241h + ld c, C_WRITESTR + call bdos ; Output string + jp 0 +;---------------------------------------------------------------------------- +text1D5h: + .text "RZ for CP/M 3 V 1.04\r\n" + .text "(C) 92 wshbg\r\n\n$" +text1FDh: + .text "start your local X/Y/ZModem sending program\r\n\n$" +text22Ch: + .text "sorry, CP/M 3 Tool\r\n$" +text241h: + .text "usage: rz [-?pbcrxyz] [du:fn]\r\n\n" + .text " options for ZModem:\r\n" + .text " ? this help\r\n" + .text " p protect File\r\n" + .text " b receive binary\r\n" + .text " c convert to local linefeed\r\n" + .text " r resume transmission\r\n" + .text " x,y,z Protokoll\r\n" + .text " du:fn defaults to XModem\r\n\n" + .text "these values override options from sender\r\n$" + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_39A: ; CODE XREF: start+48p + push hl + push de + +loc_0_39C: ; CODE XREF: sub_0_39A+12j + inc de + ld a, (de) + or a + jr z, loc_0_3AE + ld hl, 3B1h + ld bc, 8 + cpir + call z, sub_0_67F + jr loc_0_39C +;---------------------------------------------------------------------------- + +loc_0_3AE: ; CODE XREF: sub_0_39A+5j + pop de + pop hl + ret +; End of function sub_0_39A + +;---------------------------------------------------------------------------- + .text "?PBCXYZR" + + .dw sub_0_3E9 + .dw sub_0_3D1 + .dw sub_0_3CD + .dw sub_0_3C9 + .dw sub_0_3E3 + .dw sub_0_3DD + .dw sub_0_3D7 + .dw loc_0_1CA + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_3C9: ; CODE XREF: start+71p + ld a, 1 + jr loc_0_3D3 +sub_0_3CD: ld a,3 + jr loc_0_3D3 +sub_0_3D1: ld a,4 +loc_0_3D3: ld (byte_0_8AF), a + ret + +;---------------------------------------------------------------------------- + +sub_0_3D7: ld a,$ff + ld (08B0h),a + ret +sub_0_3DD: ld a,$ff + ld (08B2h),a + ret +sub_0_3E3: ld a,$ff + ld (08B1h),a + ret +sub_0_3E9: ld a,$ff + ld (08B3h),a + ret + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_3EF: ; CODE XREF: start+7Cp + xor a + ld (byte_0_460), a + ld (byte_0_464), a + ld c, S_SYSVAR + ld de, 45Fh + call bdos ; Access the system variables + ld a, h + cpl + ld h, a + ld a, l + cpl + ld l, a + ld (word_0_46F), hl + ld c, S_SYSVAR + ld de, 463h + call bdos ; Access the system variables + ld (word_0_46B), hl + ld de, (word_0_46F) + ld a, h + and d + ld h, a + ld a, l + and e + ld l, a + ld (word_0_465), hl + ld c, S_SYSVAR + ld de, 467h + call bdos ; Access the system variables + ld (word_0_46D), hl + ld de, (word_0_46F) + ld a, h + and d + ld h, a + ld a, l + and e + ld l, a + ld (word_0_469), hl + +loc_0_437: ; CODE XREF: sub_0_451+Cj + ld a, 0FEh + ld (byte_0_464), a + ld de, 463h + ld c, S_SYSVAR + call bdos ; Access the system variables + ld a, 0FEh + ld (byte_0_468), a + ld de, 467h + ld c, S_SYSVAR + jp 5 ; Access the System Control Block +; End of function sub_0_3EF + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_451: ; CODE XREF: start+82p + ld hl, (word_0_46B) + ld (word_0_465), hl + ld hl, (word_0_46D) + ld (word_0_469), hl + jr loc_0_437 +; End of function sub_0_451 + +;---------------------------------------------------------------------------- + .db 28h ; ( +byte_0_460: .db 0 ; DATA XREF: sub_0_3EF+1w + .db 0 ; + .db 0 ; + .db 24h ; $ +byte_0_464: .db 0 ; DATA XREF: sub_0_3EF+4w sub_0_3EF+4Aw +word_0_465: .dw 0 ; DATA XREF: sub_0_3EF+2Dw + ; sub_0_451+3w + .db 22h ; " +byte_0_468: .db 0 ; DATA XREF: sub_0_3EF+57w +word_0_469: .dw 0 ; DATA XREF: sub_0_3EF+45w + ; sub_0_451+9w +word_0_46B: .dw 0 ; DATA XREF: sub_0_3EF+20w + ; sub_0_451r +word_0_46D: .dw 0 ; DATA XREF: sub_0_3EF+38w + ; sub_0_451+6r +word_0_46F: .dw 0 ; DATA XREF: sub_0_3EF+15w + ; sub_0_3EF+23r ... + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_471: ; CODE XREF: sub_0_961+92p + ; seg000:0A29p ... + call bdos + or a + ret +; End of function sub_0_471 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_476: ; CODE XREF: sub_0_4A4+37p + ; sub_0_961+61p + push af + +loc_0_477: ; CODE XREF: sub_0_476+8j + push bc + xor a + ld b, a + ld c, a + cpir + pop bc + djnz loc_0_477 + pop af + ret +; End of function sub_0_476 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_482: ; CODE XREF: sub_0_1289+122p + ld a, (2D04h) + ld de, text495h ; Update error string with errors + call sub_0_16E7 + ld de, text493h + ld c, C_WRITESTR + jp 5 ; Output string +; End of function sub_0_482 + +;---------------------------------------------------------------------------- +text493h: .text "\r\n" +text495h: .db 0,0,0 + .text " error(s)\r\n$" + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_4A4: ; CODE XREF: sub_0_961+82p + ld de, 17A3h + ld hl, 4F8h + ld (hl), 3Ah + inc hl + xor a + ld b, 0Dh + call sub_0_1786 + inc de + call sub_0_16C4 + dec de + ld a, (de) + add a, 40h + ld (byte_0_4F4), a + dec de + ld a, (de) + ld de, 4F5h + call sub_0_16E7 + ld a, 24h + ld (byte_0_507), a + ld de, text4F2h + ld c, C_WRITESTR + call bdos ; Output string + ld hl, (2CD4h) + ld a, h + or l + ret z + ld b, 1 + call sub_0_476 + dec hl + ld (hl), 24h + ld de, (2CD4h) + ld c, C_WRITESTR + call bdos ; Output string + ld de, text508h + ld c, C_WRITESTR + jp 5 ; Output string +; End of function sub_0_4A4 + +;---------------------------------------------------------------------------- +text4F2h: + .db 0Dh ; + .db 0Ah ; +byte_0_4F4: .db 0 ; DATA XREF: sub_0_4A4+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 ; +byte_0_507: .db 0 ; DATA XREF: sub_0_4A4+24w +text508h: + .db 0Dh ; + .db 0Ah ; + .db 24h ; $ + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_50B: ; CODE XREF: sub_0_D0Ep sub_0_D30+30p + ; ... + ld hl, 2CABh + ld de, 51Fh + call loc_0_774 + ld (hl), 24h + ld de, text51Eh + ld c, C_WRITESTR + jp 5 ; Output string +; End of function sub_0_50B + +;---------------------------------------------------------------------------- +text51Eh: + .db 0Dh ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 21h ; ! + .db 44h ; D + .db 5 ; + .db 3Eh ; > + .db 0 ; + .db 3Ch ; < + .db 0E6h ; æ + .db 3 ; + .db 32h ; 2 + .db 2Dh ; - + .db 5 ; + .db 5Fh ; _ + .db 16h ; + .db 0 ; + .db 19h ; + .db 7Eh ; ~ + .db 32h ; 2 + .db 49h ; I + .db 5 ; + .db 11h ; + .db 48h ; H + .db 5 ; + .db 0Eh ; + .db 9 ; + .db 0C3h ; à + .db 5 ; + .db 0 ; + .db 7Ch ; | + .db 2Fh ; / + .db 2Dh ; - + .db 5Ch ; \ + .db 20h ; + .db 7Ch ; | + .db 8 ; + .db 8 ; + .db 24h ; $ + .db 11h ; + .db 69h ; i + .db 5 ; + .db 18h ; + .db 3 ; + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_552: ; CODE XREF: seg000:0A2Ep + ld de, text55Ah + ld c, C_WRITESTR + jp 5 ; Output string +; End of function sub_0_552 + +;---------------------------------------------------------------------------- +text55Ah: + + .text "File skipped\r\n$" + .text "can't open any file\r\n$" + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_57F: ; CODE XREF: sub_0_DE7+Dp + ld hl, 586h + ld (hl), a + inc hl + ld (hl), c + ret +; End of function sub_0_57F + +;---------------------------------------------------------------------------- + .db 0 ; +byte_0_587: .db 0 ; DATA XREF: sub_0_5B4r + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_588: ; CODE XREF: sub_0_588+1Fj + ; sub_0_5D4+4p ... + or a + ld hl, (1808h) + ld de, 1000h + sbc hl, de + jr z, loc_0_5A9 + ld c, A_STATIN + call bdos ; Auxiliary Input status + or a + jr z, loc_0_5A9 + ld c, A_READ + call bdos ; Auxiliary (Reader) input + ld c, a + ld hl, 1808h + call sub_0_61C + jr sub_0_588 +;---------------------------------------------------------------------------- + +loc_0_5A9: ; CODE XREF: sub_0_588+9j sub_0_588+11j + ld hl, 587h + or (hl) + ret nz + ld hl, (1808h) + ld a, h + or l + ret +; End of function sub_0_588 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_5B4: ; CODE XREF: sub_0_5D4+12p + ld a, (byte_0_587) + or a + ld hl, 1808h + jp z, loc_0_5F7 + push af + ld hl, 587h + dec (hl) + dec hl + pop af + ld a, (hl) + ret +; End of function sub_0_5B4 + +;---------------------------------------------------------------------------- + .db 0Eh ; + .db 4 ; + .db 5Fh ; _ + .db 0C3h ; à + .db 5 ; + .db 0 ; + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_5CD: ; CODE XREF: seg000:1462p + ld c, 8 + call bdos ; BDOS function 8 (A_STATOUT) - Auxiliary Output status + or a + ret +; End of function sub_0_5CD + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_5D4: ; CODE XREF: sub_0_DE7+11p + push bc + ld b, 5Fh + +loc_0_5D7: ; CODE XREF: sub_0_5D4+Dj + push bc + call sub_0_588 + pop bc + jr nz, loc_0_5E6 + call sub_0_5EB + djnz loc_0_5D7 + call sub_0_588 + +loc_0_5E6: ; CODE XREF: sub_0_5D4+8j + call nz, sub_0_5B4 + pop bc + ret +; End of function sub_0_5D4 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_5EB: ; CODE XREF: sub_0_5D4+Ap + push bc + ld a, 4 + ld b, 0 + +loc_0_5F0: ; CODE XREF: sub_0_5EB+5j sub_0_5EB+8j + djnz loc_0_5F0 + dec a + jr nz, loc_0_5F0 + pop bc + ret +; End of function sub_0_5EB + +;---------------------------------------------------------------------------- + +loc_0_5F7: ; CODE XREF: sub_0_5B4+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 0Fh + 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_61C: ; CODE XREF: sub_0_588+1Cp + or a + push hl + ld e, (hl) + inc hl + ld d, (hl) + ld hl, 1000h + 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 0Fh + ld (hl), a + pop hl + ld (hl), c + ret +; End of function sub_0_61C + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_643: ; CODE XREF: sub_0_961+54p + ; sub_0_11FA+69p + ld hl, 17A2h + ld b, 25h + jr loc_0_650 +; End of function sub_0_643 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_64A: ; CODE XREF: sub_0_961+9Ep + ; seg000:0A63p + ld b, 3 + jr loc_0_650 +; End of function sub_0_64A + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_64E: ; CODE XREF: sub_0_8D1+Cp sub_0_BD3+2Fp + ld b, 6 + +loc_0_650: ; CODE XREF: sub_0_643+5j sub_0_64A+2j + xor a + jp sub_0_1786 +; End of function sub_0_64E + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_654: ; CODE XREF: seg000:0AAEp + xor a + or (hl) + ret z + dec (hl) + inc hl + inc hl + ld e, (hl) + ld d, 0 + ld a, e + inc a + and 7Fh + ld (hl), a + inc hl + adc hl, de + ld a, (hl) + ret nc + ccf + ret +; End of function sub_0_654 + +;---------------------------------------------------------------------------- + +sub_0_669: LD A,80H + SUB (HL) + RET Z + INC (HL) + INC HL + LD E,(HL) + LD D,0 + LD A,E + INC A + AND 7FH + LD (HL),A + INC HL + INC HL + ADC HL,DE + LD (HL),C + RET NC + CCF + RET + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_67F: ; CODE XREF: sub_0_39A+Fp sub_0_BD3+42j + ; ... + 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_67F + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_688: ; CODE XREF: seg000:0726p sub_0_BD3+13p + ; ... + xor a + push bc + push de + push hl + ld (hl), a + ld d, h + ld e, l + inc de + jr loc_0_697 +; End of function sub_0_688 + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_692: ; CODE XREF: seg000:077Bp seg000:07ADp + ; ... + push bc + push de + push hl + ldi +loc_0_697: ldi ; CODE XREF: sub_0_688+8j + ldi + ldi + pop hl + pop de + pop bc + ret +; End of function sub_0_692 + +;---------------------------------------------------------------------------- + +loc_0_6A1: PUSH HL ;unref. ? + POP IX ;unref. ? + PUSH DE ;unref. ? + POP IY ;unref. ? + LD A,(IX+3) ;unref. ? + XOR (IY+3) ;unref. ? + JP P,loc_0_6B6 ;unref. ? + XOR (IX+3) ;unref. ? +loc_0_6B3: RET M ;unref. ? + CCF ;unref. ? + RET ;unref. ? + +loc_0_6B6: XOR (IX+3) ;unref. ? + JP P,loc_0_6C2 ;unref. ? + CALL loc_0_6C2 ;unref. ? + SCF ;unref. ? + JR loc_0_6B3 ;unref. ? + +loc_0_6C2: PUSH BC + PUSH DE ;unref. ? + PUSH HL ;unref. ? + EX DE,HL ;unref. ? + OR A ;unref. ? + LD B,4 ;unref. ? +loc_0_6C9: LD A,(DE) ;unref. ? + SBC A,(HL) ;unref. ? + INC DE ;unref. ? + INC HL ;unref. ? + DJNZ loc_0_6C9 ;unref. ? + POP HL ;unref. ? + POP DE ;unref. ? + POP BC ;unref. ? + RET ;unref. ? + +loc_0_6D3: PUSH BC + PUSH DE + PUSH HL + LD B,4 +loc_0_6D8: LD A,(DE) + XOR (HL) + JR NZ,loc_0_6E0 + INC DE + INC HL + DJNZ loc_0_6D8 +loc_0_6E0: POP HL + POP DE + POP BC + RET + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_6E4: ; CODE XREF: sub_0_11FA+4Bp + push bc + push de + push hl + or a + ex af, af' + ld a, 4 + +loc_0_6EB: ; CODE XREF: sub_0_6E4+10j + ex af, af' + ld a, (de) + adc a, (hl) + ld (bc), a + inc bc + inc de + inc hl + ex af, af' + dec a + jr nz, loc_0_6EB + pop hl + pop de + pop bc + ret +; End of function sub_0_6E4 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_6FA: ; CODE XREF: seg000:0799p + push bc + push de + push hl + ex de, hl + or a + ex af, af' + ld a, 4 + +loc_0_702: ; CODE XREF: sub_0_6FA+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_702 + ex af, af' + pop hl + pop de + pop bc + ret +; End of function sub_0_6FA + +;---------------------------------------------------------------------------- + .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_726: ; CODE XREF: sub_0_8A0+Cj + call sub_0_688 + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_729: ; CODE XREF: seg000:0A77p + push bc + push hl + ld a, (hl) + sub 1 + ld (hl), a + ld b, 3 + +loc_0_731: ; CODE XREF: sub_0_729+Dj + inc hl + ld a, (hl) + sbc a, 0 + ld (hl), a + djnz loc_0_731 + pop hl + pop bc + ret +; End of function sub_0_729 + +;---------------------------------------------------------------------------- + .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_774: ; CODE XREF: sub_0_50B+6p + ld (word_0_7BF), de + ld de, 2891h + call sub_0_692 + ld c, 9 + ld de, 74Ch + xor a + ld (byte_0_7BA), a + ld a, 30h + ld (byte_0_7B4), a + inc de + inc de + inc de + inc de + ld b, 0Ah + +loc_0_792: ; CODE XREF: seg000:07B1j + push bc + ld hl, 2891h + ld bc, 2895h + call sub_0_6FA + pop bc + jr c, unk_0_7B3 + push de + ld a, (byte_0_7B4) + inc a + ld (byte_0_7B4), a + ld de, 2891h + ld hl, 2895h + call sub_0_692 + pop de + djnz loc_0_792 +;---------------------------------------------------------------------------- +unk_0_7B3: .db 3Eh ; > ; CODE XREF: seg000:079Dj +byte_0_7B4: .db 30h ; DATA XREF: seg000:0789w seg000:07A0r + ; ... + .db 0FEh ; þ + .db 30h ; 0 + .db 20h ; + .db 5 ; + .db 3Eh ; > +byte_0_7BA: .db 0 ; DATA XREF: seg000:0784w + .db 0B7h ; · + .db 28h ; ( + .db 0Dh ; + .db 21h ; ! +word_0_7BF: .dw 0 ; DATA XREF: seg000:0774w + .db 77h ; w + .db 23h ; # + .db 22h ; " + .db 0BFh ; ¿ + .db 7 ; + .db 3Eh ; > + .db 30h ; 0 + .db 32h ; 2 + .db 0BAh ; º + .db 7 ; + .db 0Dh ; + .db 20h ; + .db 0B9h ; ¹ + .db 3Ah ; : + .db 91h ; ? + .db 28h ; ( + .db 0E6h ; æ + .db 0Fh ; + .db 0C6h ; Æ + .db 30h ; 0 + .db 2Ah ; * + .db 0BFh ; ¿ + .db 7 ; + .db 77h ; w + .db 23h ; # + .db 36h ; 6 + .db 0 ; + .db 0C9h ; É + .db 0F5h ; õ + .db 0C6h ; Æ +byte_0_7DF: .db 0 ; DATA XREF: sub_0_8A0+3w + .db 32h ; 2 + .db 0DFh ; ß + .db 7 ; + .db 0F1h ; ñ + .db 0C9h ; É + .db 20h ; + .db 83h ; ? + .db 0B8h ; ¸ + .db 0EDh ; í + .db 0E3h ; ã + .db 20h ; + .db 0BBh ; » + .db 0DEh ; Þ + .db 0F5h ; õ + .db 0FDh ; ý + .db 21h ; ! +word_0_7F0: .dw 289Dh ; DATA XREF: sub_0_825+2r + .db 0DDh ; Ý + .db 21h ; ! + .db 99h ; ? + .db 28h ; ( + .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_825: ; CODE XREF: sub_0_8D1+Fp + push de + push hl + ld hl, (word_0_7F0) + ld bc, 3FFh + add hl, bc + push hl + pop iy + ld ix, 7E5h + xor a + +loc_0_836: ; CODE XREF: sub_0_825+5Bj + push af + ld hl, 0FFFFh + ld de, 0FFFFh + xor e + ld e, a + ld b, 8 + +loc_0_841: ; CODE XREF: sub_0_825+3Bj + scf + rr h + rr l + rr d + rr e + jr nc, loc_0_860 + 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_860: ; CODE XREF: sub_0_825+25j + djnz loc_0_841 + 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_836 + pop hl + pop de + ret +; End of function sub_0_825 + +;---------------------------------------------------------------------------- + +loc_0_885: ; CODE XREF: sub_0_13BA+Fp + ; sub_0_13BA+1Ep + push af +;---------------------------------------------------------------------------- + .db 21h ; ! +word_0_887: .dw 0 ; DATA XREF: sub_0_8A0+6w sub_0_13BA+2Er + ; ... + .db 11h ; + .db 21h ; ! + .db 10h ; + .db 0ACh ; ¬ + .db 67h ; g + .db 6 ; + .db 8 ; + .db 29h ; ) + .db 30h ; 0 + .db 6 ; + .db 7Ch ; | + .db 0AAh ; ª + .db 67h ; g + .db 7Dh ; } + .db 0ABh ; « + .db 6Fh ; o + .db 10h ; + .db 0F5h ; õ + .db 22h ; " + .db 87h ; ? + .db 8 ; + .db 0F1h ; ñ + .db 0C9h ; É + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_8A0: ; CODE XREF: sub_0_13BA+9p + xor a + ld h, a + ld l, a + ld (byte_0_7DF), a + ld (word_0_887), hl + ld hl, 2899h + jp loc_0_726 +; End of function sub_0_8A0 + +;---------------------------------------------------------------------------- +byte_0_8AF: .db 4 ; DATA XREF: sub_0_3C9+Aw sub_0_8D1+34r + ; ... +byte_0_8B0: .db 0 ; DATA XREF: sub_0_8D1+23r +byte_0_8B1: .db 0 ; DATA XREF: sub_0_961r +byte_0_8B2: .db 0 ; DATA XREF: sub_0_961+14r +byte_0_8B3: .db 0 ; DATA XREF: seg000:0A3Cr +word_0_8B4: .dw 0 ; DATA XREF: sub_0_8B6+17w + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_8B6: ; CODE XREF: sub_0_8D1+20p + xor a + ld c, a + ld b, 8 + ld a, h + +loc_0_8BB: ; CODE XREF: sub_0_8B6+Cj + rlca + set 7, c + jr c, loc_0_8C4 + rr c + djnz loc_0_8BB + +loc_0_8C4: ; CODE XREF: sub_0_8B6+8j + ld a, h + and c + ld h, a + ld l, 0 + ld (2CEBh), hl + dec hl + ld (word_0_8B4), hl + ret +; End of function sub_0_8B6 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_8D1: ; CODE XREF: start+7Fp + xor a + ld hl, 2C9Dh + ld b, 61h + call sub_0_1786 + ld hl, 1808h + call sub_0_64E + call sub_0_825 + ld hl, (word_0_179E) + ld (2CE9h), hl + ld de, (6) + ex de, hl + or a + sbc hl, de + call sub_0_8B6 + ld a, (byte_0_8B0) + cp 0 + jr z, loc_0_8FD + ld a, 7 + +loc_0_8FD: ; CODE XREF: sub_0_8D1+28j + ld (2CA4h), a + ld a, 10h + ld (2C9Eh), a + ld a, (byte_0_8AF) + cp 3 + jr c, loc_0_947 + ld a, 1 + ld (byte_0_B0A), a + call loc_0_ACF + jp c, loc_0_954 + or a + jr z, loc_0_92B + cp 4 + jr z, loc_0_924 + cp 0Fh + jr nz, loc_0_924 + jr locret_0_953 +;---------------------------------------------------------------------------- + +loc_0_924: ; CODE XREF: sub_0_8D1+4Bj + ; sub_0_8D1+4Fj + call sub_0_BB4 + jr c, loc_0_954 + jr locret_0_953 +;---------------------------------------------------------------------------- + +loc_0_92B: ; CODE XREF: sub_0_8D1+47j + ; sub_0_8D1+74j + ld a, 3 + ld (byte_0_8AF), a + xor a + ld (2D04h), a + call sub_0_11C1 + jr c, loc_0_954 + call sub_0_961 + jr c, loc_0_954 + jr z, locret_0_953 + call sub_0_11FA + jr c, loc_0_954 + jr loc_0_92B +;---------------------------------------------------------------------------- + +loc_0_947: ; CODE XREF: sub_0_8D1+39j + call sub_0_961 + jr c, loc_0_954 + jr z, locret_0_953 + call sub_0_11FA + jr c, loc_0_954 + +locret_0_953: ; CODE XREF: sub_0_8D1+51j + ; sub_0_8D1+58j ... + ret +;---------------------------------------------------------------------------- + +loc_0_954: ; CODE XREF: sub_0_8D1+43j + ; sub_0_8D1+56j ... + call sub_0_DD9 + ld a, (2CA5h) + cp 0FFh + call z, sub_0_D0E + jr locret_0_953 +; End of function sub_0_8D1 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_961: ; CODE XREF: sub_0_8D1+68p + ; sub_0_8D1+76p ... + ld a, (byte_0_8B1) + cpl + ld hl, 8B2h + or (hl) + ld (2CA3h), a + ld a, (2CA4h) + or a + jr z, loc_0_975 + ld (2CA1h), a + +loc_0_975: ; CODE XREF: sub_0_961+Fj + ld a, (byte_0_8B2) + cp 0FFh + jr z, loc_0_988 + ld a, (2CA2h) + cp 2 + jr nz, loc_0_988 + ld a, 0 + ld (2CA3h), a + +loc_0_988: ; CODE XREF: sub_0_961+19j + ; sub_0_961+20j + ld a, (2CA2h) + cp 1 + jr nz, loc_0_994 + ld a, 0FFh + ld (2CA3h), a + +loc_0_994: ; CODE XREF: sub_0_961+2Cj + ld a, (2CA1h) + cp 7 + jr z, loc_0_9AE + ld a, (2CA1h) + cp 3 + jr nz, loc_0_9AE + ld a, (2CA3h) + cp 0FFh + jr nz, loc_0_9AE + ld a, 7 + ld (2CA1h), a + +loc_0_9AE: ; CODE XREF: sub_0_961+38j + ; sub_0_961+3Fj ... + ld a, (byte_0_8AF) + cp 3 + jr c, loc_0_9E3 + call sub_0_643 + ld hl, (2CE9h) + xor a + or (hl) + scf + ret z + push hl + ld b, 1 + call sub_0_476 + dec hl + ld (hl), 20h + pop hl + ld de, 2CD0h + ld a, 7 + ld (de), a + ld a, 0FFh + call sub_0_172E + ld hl, (2CD2h) + ld de, 17A3h + call sub_0_1492 + ld hl, (byte_0_17A0) + ld (word_0_17A2), hl + +loc_0_9E3: ; CODE XREF: sub_0_961+52j + ; seg000:0A2Cj + call sub_0_4A4 + ld de, 17A3h + call sub_0_169E + jr nz, loc_0_A11 + ld de, 17A3h + ld c, 16h + call sub_0_471 + ret c + ld a, 0FFh + ld (2CA5h), a + ld hl, 280Eh + call sub_0_64A + ld a, (2CD1h) + cp 2 + jr c, loc_0_A0D +; End of function sub_0_961 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_A09: ; CODE XREF: seg000:0A11p + ld de, (2CD4h) + +loc_0_A0D: ; CODE XREF: sub_0_961+A6j + ld a, 1 + or a + ret +; End of function sub_0_A09 + +;---------------------------------------------------------------------------- + +loc_0_A11: ; CODE XREF: sub_0_961+8Bj + call sub_0_A09 + ld a, (byte_0_8AF) + cp 4 + jr nz, loc_0_A24 + ld a, (2CA1h) + cp 7 + jr nz, loc_0_A35 + jr loc_0_A2E +;---------------------------------------------------------------------------- + +loc_0_A24: ; CODE XREF: seg000:0A19j seg000:0A41j + ld de, 17A3h + ld c, 13h + call sub_0_471 + jr nc, loc_0_9E3 + +loc_0_A2E: ; CODE XREF: seg000:0A22j + call sub_0_552 + ld a, 5 + scf + ret +;---------------------------------------------------------------------------- + +loc_0_A35: ; CODE XREF: seg000:0A20j + ld a, (2CA1h) + cp 3 + jr z, loc_0_A43 + ld a, (byte_0_8B3) + cp 0FFh + jr nz, loc_0_A24 + +loc_0_A43: ; CODE XREF: seg000:0A3Aj + ld de, 2811h + ld c, 1Ah + call bdos ; BDOS function 26 (F_DMAOFF) - Set DMA address + ld e, 1 + ld c, 2Ch + call bdos ; BDOS function 44 (F_MULTISEC) - Set number of records to read/write at once + ld de, 17A3h + ld c, 0Fh + call sub_0_471 + ret c + ld a, 0FFh + ld (2CA5h), a + ld hl, 280Eh + call sub_0_64A + ld de, 17A3h + ld c, 23h + call sub_0_471 + ret c + ld hl, 17C7h + ld (hl), 0 + ld hl, 17C4h + call sub_0_729 + ld de, 2CABh + call sub_0_692 + ex de, hl + ld b, 7 + +loc_0_A83: ; CODE XREF: seg000:0A90j + push hl + sla (hl) + inc hl + rl (hl) + inc hl + rl (hl) + inc hl + rl (hl) + pop hl + djnz loc_0_A83 + ld de, 17A3h + ld c, 21h + call sub_0_471 + ret c + ld a, (2CA1h) + cp 3 + jr z, loc_0_AA6 + ld a, 9 + or a + ret +;---------------------------------------------------------------------------- + +loc_0_AA6: ; CODE XREF: seg000:0AA0j + ld a, 80h + ld (280Eh), a + +loc_0_AAB: ; CODE XREF: seg000:0AB5j + ld hl, 280Eh + call sub_0_654 + jr z, loc_0_AC6 + cp 1Ah + jr nz, loc_0_AAB + ld a, (2810h) + dec a + ld (280Fh), a + ld hl, 280Eh + ld a, 7Fh + sub (hl) + jr loc_0_AC8 +;---------------------------------------------------------------------------- + +loc_0_AC6: ; CODE XREF: seg000:0AB1j + ld a, 80h + +loc_0_AC8: ; CODE XREF: seg000:0AC4j + ld (280Eh), a + ld a, 1 + or a + ret +;---------------------------------------------------------------------------- + +loc_0_ACF: ; CODE XREF: sub_0_8D1+40p + ; sub_0_BB4+Ep + xor a + ld (2D04h), a + ld a, 4 + ld hl, 8AFh + cp (hl) + ld a, 0 + ret nz + ld hl, 2CEDh + ld b, 11h + xor a + call sub_0_1786 + call sub_0_FAA + ld a, (2CA6h) + cp 0FFh + ld b, 5 + jr z, loc_0_AF3 + ld b, 0Ah + +loc_0_AF3: ; CODE XREF: seg000:0AEFj + push bc + ld ix, 2CE0h + ld (ix+3), 20h + ld (ix+2), 0 + ld hl, (2CEBh) + ld (ix+0), l + ld (ix+1), h +byte_0_B0A: .equ $+1 ; DATA XREF: sub_0_8D1+3Dw + ld a,1 ; self modifying value + CALL 13BAH + LD A,(byte_0_B0A) + CP 5 + JR NZ,0B1AH + LD A,1 + LD (byte_0_B0A),A +loc_0_B1A: CALL 0FD1H + LD HL,0B96H + LD BC,0AH + CPIR + JP Z,67FH +loc_0_B28: LD HL,2D04H + INC (HL) + CALL 482H +loc_0_B2F: POP BC + DJNZ 0AF3H + XOR A + RET + +loc_0_B34: POP BC + LD A,0FFH + SCF + RET + +loc_0_B39: POP BC + CALL 0D9BH + LD A,0FH + RET + +loc_0_B40: LD HL,2CE0H + CALL 688H + JR 0B68H + + +loc_0_B48: LD IX,2CA7H + LD A,(IX+3) + AND 40H + LD (2C9DH),A + CALL 0EC7H + CP 0EBH + LD A,6 + JR NZ,loc_0_B6A + LD HL,(2CE9H) + LD DE,2CAFH + LD BC,20H + LDIR + LD A,3 +loc_0_B6A: PUSH AF + LD HL,2CE0H + CALL 688H + POP AF + CALL 13BAH + CALL 0FC9H + JP 0B28H + +loc_0_B7B: LD HL,2CA7H + LD DE,2C9FH + CALL 692H + LD A,1 + LD (0B0AH),A + CALL 0EC7H + CP 0EBH + LD A,6 + JR NZ,0B6AH + POP BC + LD A,4 + RET + +loc_0_B96: .db 0 ; + .db 0Bh ; + .db 0FEh ; þ + .db 4 ; + .db 2 ; + .db 11h ; + .db 12h ; + .db 0Fh ; + .db 8 ; + .db 10h ; + +loc_0_BA0: .dw loc_0_B34 + .dw loc_0_B39 + .dw loc_0_B1A + .dw loc_0_B34 + .dw loc_0_B40 + .dw loc_0_B48 + .dw loc_0_B7B + .dw loc_0_B28 + .dw loc_0_B2F + .dw loc_0_B2F + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_BB4: ; CODE XREF: sub_0_8D1+53p + ; sub_0_BB4+14j + call sub_0_BD3 + ret c + cp 0Bh + jr z, loc_0_BC2 + cp 5 + jr z, loc_0_BC2 + or a + ret +;---------------------------------------------------------------------------- + +loc_0_BC2: ; CODE XREF: sub_0_BB4+6j sub_0_BB4+Aj + call loc_0_ACF + ret c + cp 4 + jr z, sub_0_BB4 + cp 0Fh + ld a, 0 + ret z + ld a, 0FFh + scf + ret +; End of function sub_0_BB4 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_BD3: ; CODE XREF: sub_0_BB4p + call sub_0_961 + jr nc, loc_0_BDF + ld a, 5 + ld (byte_0_B0A), a + or a + ret +;---------------------------------------------------------------------------- + +loc_0_BDF: ; CODE XREF: sub_0_BD3+3j + cp 9 + jr z, loc_0_BE9 + ld hl, 2CABh + call sub_0_688 + +loc_0_BE9: ; CODE XREF: sub_0_BD3+Ej + xor a + ld (2D04h), a + call sub_0_FAA + call sub_0_FC9 + call sub_0_D30 + ld hl, 2CABh + ld de, 2CE0h + call sub_0_692 + ld hl, 1808h + call sub_0_64E + ld a, 9 + call sub_0_13BA + call sub_0_FD1 + ld hl, 0CE4h + ld bc, 7 + cpir + jp z, sub_0_67F + ld a, 0FFh + scf + ret +; End of function sub_0_BD3 + +;---------------------------------------------------------------------------- + .db 21h ; ! + .db 4 ; + .db 2Dh ; - + .db 34h ; 4 + .db 0CDh ; Í + .db 82h ; ? + .db 4 ; + .db 21h ; ! + .db 4 ; + .db 2Dh ; - + .db 3Eh ; > + .db 0Ah ; + .db 0BEh ; ¾ + .db 0C2h ;  + .db 0F0h ; ð + .db 0Bh ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 0CDh ; Í + .db 0C7h ; Ç + .db 0Eh ; + .db 0C3h ; à + .db 0F0h ; ð + .db 0Bh ; + .db 11h ; + .db 0A7h ; § + .db 2Ch ; , + .db 21h ; ! + .db 0ABh ; « + .db 2Ch ; , + .db 0CDh ; Í + .db 0D3h ; Ó + .db 6 ; + .db 0C2h ;  + .db 0F0h ; ð + .db 0Bh ; + .db 0CDh ; Í + .db 0Eh ; + .db 0Dh ; + .db 28h ; ( + .db 9 ; + .db 3Eh ; > + .db 0Ch ; + .db 32h ; 2 + .db 0Ah ; + .db 0Bh ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 0CDh ; Í + .db 43h ; C + .db 6 ; + .db 3Eh ; > + .db 0Bh ; + .db 0B7h ; · + .db 0C9h ; É + .db 21h ; ! + .db 4 ; + .db 2Dh ; - + .db 34h ; 4 + .db 0CDh ; Í + .db 82h ; ? + .db 4 ; + .db 21h ; ! + .db 4 ; + .db 2Dh ; - + .db 3Eh ; > + .db 0Ah ; + .db 0BEh ; ¾ + .db 20h ; + .db 4 ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 21h ; ! + .db 0AFh ; ¯ + .db 2Ch ; , + .db 0CDh ; Í + .db 0DCh ; Ü + .db 0Dh ; + .db 0C3h ; à + .db 0F0h ; ð + .db 0Bh ; + .db 11h ; + .db 0A7h ; § + .db 2Ch ; , + .db 21h ; ! + .db 0ABh ; « + .db 2Ch ; , + .db 0CDh ; Í + .db 0D3h ; Ó + .db 6 ; + .db 0C2h ;  + .db 57h ; W + .db 0Ch ; + .db 0CDh ; Í + .db 29h ; ) + .db 5 ; + .db 0CDh ; Í + .db 0C7h ; Ç + .db 0Eh ; + .db 21h ; ! + .db 0F9h ; ù + .db 0Ch ; + .db 1 ; + .db 7 ; + .db 0 ; + .db 0EDh ; í + .db 0B1h ; ± + .db 0CAh ; Ê + .db 7Fh ;  + .db 6 ; + .db 0C3h ; à + .db 1Ch ; + .db 0Ch ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 0AFh ; ¯ + .db 32h ; 2 + .db 4 ; + .db 2Dh ; - + .db 11h ; + .db 0F9h ; ù + .db 2Ch ; , + .db 21h ; ! + .db 0ABh ; « + .db 2Ch ; , + .db 1 ; + .db 0ABh ; « + .db 2Ch ; , + .db 0CDh ; Í + .db 0E4h ; ä + .db 6 ; + .db 0C3h ; à + .db 0BAh ; º + .db 0Fh ; + .db 0CDh ; Í + .db 97h ; ? + .db 0Ch ; + .db 0C3h ; à + .db 0Ah ; + .db 0Ch ; + .db 0CDh ; Í + .db 97h ; ? + .db 0Ch ; + .db 0C3h ; à + .db 7Fh ;  + .db 0Ch ; + .db 0CDh ; Í + .db 97h ; ? + .db 0Ch ; + .db 21h ; ! + .db 0ABh ; « + .db 2Ch ; , + .db 11h ; + .db 0E0h ; à + .db 2Ch ; , + .db 0CDh ; Í + .db 92h ; ? + .db 6 ; + .db 3Eh ; > + .db 3 ; + .db 0CDh ; Í + .db 0BAh ; º + .db 13h ; + .db 0C3h ; à + .db 7Fh ;  + .db 0Ch ; + .db 0CDh ; Í + .db 97h ; ? + .db 0Ch ; + .db 0CDh ; Í + .db 30h ; 0 + .db 0Dh ; + .db 0DAh ; Ú + .db 47h ; G + .db 0Ch ; + .db 21h ; ! + .db 0ABh ; « + .db 2Ch ; , + .db 11h ; + .db 0E0h ; à + .db 2Ch ; , + .db 0CDh ; Í + .db 92h ; ? + .db 6 ; + .db 3Eh ; > + .db 3 ; + .db 0CDh ; Í + .db 0BAh ; º + .db 13h ; + .db 0C3h ; à + .db 0Ah ; + .db 0Ch ; + .db 6 ; + .db 0FEh ; þ + .db 4 ; + .db 0Bh ; + .db 0FFh ; ÿ + .db 0Ah ; + .db 0FCh ; ü + .db 1Ch ; + .db 0Ch ; + .db 73h ; s + .db 0Ch ; + .db 57h ; W + .db 0Ch ; + .db 36h ; 6 + .db 0Ch ; + .db 30h ; 0 + .db 0Ch ; + .db 1Ch ; + .db 0Ch ; + .db 1Ch ; + .db 0Ch ; + .db 0EBh ; ë + .db 0EAh ; ê + .db 0E9h ; é + .db 0E8h ; è + .db 0FFh ; ÿ + .db 0FEh ; þ + .db 10h ; + .db 93h ; ? + .db 0Ch ; + .db 1Ch ; + .db 0Ch ; + .db 57h ; W + .db 0Ch ; + .db 0AAh ; ª + .db 0Ch ; + .db 0B0h ; ° + .db 0Ch ; + .db 0B6h ; ¶ + .db 0Ch ; + .db 0CAh ; Ê + .db 0Ch ; + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_D0E: ; CODE XREF: sub_0_8D1+8Bp + ; sub_0_11FA+64p + call sub_0_50B + call sub_0_D30 + ret c + +loc_0_D15: ; CODE XREF: sub_0_D0E+13j + ld a, 1Ah + call loc_0_D68 + ret c + ld hl, 280Eh + ld a, 1 + cp (hl) + jr nz, loc_0_D15 + ld a, 0 + ld (2CA5h), a + ld c, 10h + ld de, 17A3h + jp sub_0_471 +; End of function sub_0_D0E + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_D30: ; CODE XREF: sub_0_BD3+20p + ; sub_0_D0E+3p ... + ld bc, (2CF5h) + ld a, b + or c + ret z + ld hl, (2CE9h) + +loc_0_D3A: ; CODE XREF: sub_0_D30+2Ej + ld a, (2CA3h) + cp 0FFh + jr z, loc_0_D52 +loc_0_D41: + ld a, 0 ; DATA XREF: sub_0_D30+23w + cp 0Dh + jr z, loc_0_D52 + ld a, (hl) + cp 0Ah + jr nz, loc_0_D52 + ld a, 0Dh + call loc_0_D68 + ret c + +loc_0_D52: ; CODE XREF: sub_0_D30+Fj sub_0_D30+15j + ; ... + ld a, (hl) + ld (loc_0_D41+1), a + inc hl + dec bc + call loc_0_D68 + ret c + ld a, b + or c + jr nz, loc_0_D3A + call sub_0_50B + call sub_0_FAA + xor a + ret +; End of function sub_0_D30 + +;---------------------------------------------------------------------------- + +loc_0_D68: ; CODE XREF: sub_0_D0E+9p sub_0_D30+1Ep + ; ... + ld (byte_0_D6F), a + push bc + push de + push hl +;---------------------------------------------------------------------------- + .db 0Eh ; +byte_0_D6F: .db 0 ; DATA XREF: seg000:0D68w + .db 21h ; ! + .db 0Eh ; + .db 28h ; ( + .db 0CDh ; Í + .db 69h ; i + .db 6 ; + .db 20h ; + .db 1Fh ; + .db 21h ; ! + .db 0Eh ; + .db 28h ; ( + .db 0CDh ; Í + .db 4Ah ; J + .db 6 ; + .db 0Eh ; + .db 1Ah ; + .db 11h ; + .db 11h ; + .db 28h ; ( + .db 0CDh ; Í + .db 5 ; + .db 0 ; + .db 0Eh ; + .db 2Ch ; , + .db 1Eh ; + .db 1 ; + .db 0CDh ; Í + .db 5 ; + .db 0 ; + .db 0Eh ; + .db 15h ; + .db 11h ; + .db 0A3h ; £ + .db 17h ; + .db 0CDh ; Í + .db 71h ; q + .db 4 ; + .db 30h ; 0 + .db 0D7h ; × + .db 0E1h ; á + .db 0D1h ; Ñ + .db 0C1h ; Á + .db 0C9h ; É + .db 21h ; ! + .db 0E0h ; à + .db 2Ch ; , + .db 0CDh ; Í + .db 88h ; ? + .db 6 ; + .db 6 ; + .db 4 ; + .db 0C5h ; Å + .db 3Eh ; > + .db 8 ; + .db 0CDh ; Í + .db 0BAh ; º + .db 13h ; + .db 6 ; + .db 64h ; d + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 38h ; 8 + .db 8 ; + .db 0FEh ; þ + .db 4Fh ; O + .db 28h ; ( + .db 8 ; + .db 0FEh ; þ + .db 0FDh ; ý + .db 28h ; ( + .db 4 ; + .db 0C1h ; Á + .db 10h ; + .db 0E8h ; è + .db 0C5h ; Å + .db 0C1h ; Á + .db 6 ; + .db 1 ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0AFh ; ¯ + .db 0C9h ; É + .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_DD9: ; CODE XREF: sub_0_8D1+83p + ld hl, 0DC4h +; End of function sub_0_DD9 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_DDC: ; CODE XREF: sub_0_DDC+9j sub_0_13BA+6p + ld a, (hl) + inc hl + or a + ret z + push hl + call loc_0_145C + pop hl + jr sub_0_DDC +; End of function sub_0_DDC + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_DE7: ; CODE XREF: sub_0_FD1+11p + ; sub_0_11C1+2Dp ... + push bc + call sub_0_16AA + call nz, sub_0_16A5 + cp 1Bh + ld a, 18h + ld c, 0Ah + call z, sub_0_57F + pop bc + +loc_0_DF8: ; CODE XREF: sub_0_DE7+16j + call sub_0_5D4 + jr nz, loc_0_E03 + djnz loc_0_DF8 + ld a, 0FEh + scf + ret +;---------------------------------------------------------------------------- + +loc_0_E03: ; CODE XREF: sub_0_DE7+14j + or a + ret +; End of function sub_0_DE7 + +;---------------------------------------------------------------------------- + .db 6 ; + .db 64h ; d + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0D8h ; Ø + .db 0E6h ; æ + .db 7Fh ;  + .db 21h ; ! + .db 2Ah ; * + .db 0Eh ; + .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 9Dh ;  + .db 2Ch ; , + .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 0E7h ; ç + .db 0Dh ; + .db 0D8h ; Ø + .db 5Fh ; _ + .db 0E6h ; æ + .db 60h ; ` + .db 7Bh ; { + .db 0C0h ; À + .db 0FEh ; þ + .db 18h ; + .db 28h ; ( + .db 12h ; + .db 21h ; ! + .db 0A2h ; ¢ + .db 0Eh ; + .db 1 ; + .db 4 ; + .db 0 ; + .db 0EDh ; í + .db 0B1h ; ± + .db 28h ; ( + .db 0E7h ; ç + .db 3Ah ; : + .db 9Dh ;  + .db 2Ch ; , + .db 0B7h ; · + .db 20h ; + .db 0E1h ; á + .db 7Bh ; { + .db 0C9h ; É + .db 6 ; + .db 64h ; d + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0D8h ; Ø + .db 0FEh ; þ + .db 18h ; + .db 20h ; + .db 1Ah ; + .db 6 ; + .db 64h ; d + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0D8h ; Ø + .db 0FEh ; þ + .db 18h ; + .db 20h ; + .db 10h ; + .db 6 ; + .db 64h ; d + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0D8h ; Ø + .db 0FEh ; þ + .db 18h ; + .db 20h ; + .db 6 ; + .db 6 ; + .db 64h ; d + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0D8h ; Ø + .db 21h ; ! + .db 0A6h ; ¦ + .db 0Eh ; + .db 1 ; + .db 0Bh ; + .db 0 ; + .db 0EDh ; í + .db 0B1h ; ± + .db 0CAh ; Ê + .db 7Fh ;  + .db 6 ; + .db 6Fh ; o + .db 3Ah ; : + .db 9Dh ;  + .db 2Ch ; , + .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 99h ; ? + .db 0Eh ; + .db 96h ; ? + .db 0Eh ; + .db 9Eh ; ? + .db 0Eh ; + .db 9Eh ; ? + .db 0Eh ; + .db 9Eh ; ? + .db 0Eh ; + .db 9Eh ; ? + .db 0Eh ; + .db 9Eh ; ? + .db 0Eh ; + .db 50h ; P + .db 0Eh ; + .db 50h ; P + .db 0Eh ; + .db 50h ; P + .db 0Eh ; + .db 50h ; P + .db 0Eh ; + .db 0B7h ; · + .db 2Ah ; * + .db 0EBh ; ë + .db 2Ch ; , + .db 0EDh ; í + .db 5Bh ; [ + .db 0EFh ; ï + .db 2Ch ; , + .db 0EDh ; í + .db 52h ; R + .db 0DAh ; Ú + .db 4Eh ; N + .db 0Fh ; + .db 0CDh ; Í + .db 0A0h ; + .db 8 ; + .db 21h ; ! + .db 0 ; + .db 0 ; + .db 22h ; " + .db 0F9h ; ù + .db 2Ch ; , + .db 0CDh ; Í + .db 2Fh ; / + .db 0Eh ; + .db 0DAh ; Ú + .db 38h ; 8 + .db 0Fh ; + .db 0CDh ; Í + .db 0A2h ; ¢ + .db 0Fh ; + .db 0CCh ; Ì + .db 0EDh ; í + .db 7 ; + .db 0C4h ; Ä + .db 85h ; ? + .db 8 ; + .db 2Ah ; * + .db 0EBh ; ë + .db 2Ch ; , + .db 0EDh ; í + .db 4Bh ; K + .db 0EFh ; ï + .db 2Ch ; , + .db 0EDh ; í + .db 42h ; B + .db 0CAh ; Ê + .db 4Eh ; N + .db 0Fh ; + .db 3 ; + .db 0EDh ; í + .db 43h ; C + .db 0EFh ; ï + .db 2Ch ; , + .db 2Ah ; * + .db 0F9h ; ù + .db 2Ch ; , + .db 23h ; # + .db 22h ; " + .db 0F9h ; ù + .db 2Ch ; , + .db 2Ah ; * + .db 0EDh ; í + .db 2Ch ; , + .db 77h ; w + .db 23h ; # + .db 22h ; " + .db 0EDh ; í + .db 2Ch ; , + .db 18h ; + .db 0CFh ; Ï + .db 0E8h ; è + .db 0E9h ; é + .db 0EAh ; ê + .db 0EBh ; ë + .db 98h ; ? + .db 0FFh ; ÿ + .db 0FEh ; þ + .db 52h ; R + .db 0Fh ; + .db 4Eh ; N + .db 0Fh ; + .db 54h ; T + .db 0Fh ; + .db 58h ; X + .db 0Fh ; + .db 58h ; X + .db 0Fh ; + .db 58h ; X + .db 0Fh ; + .db 58h ; X + .db 0Fh ; + .db 0E8h ; è + .db 0E9h ; é + .db 0EAh ; ê + .db 0EBh ; ë + .db 98h ; ? + .db 0FFh ; ÿ + .db 0FEh ; þ + .db 52h ; R + .db 0Fh ; + .db 4Eh ; N + .db 0Fh ; + .db 54h ; T + .db 0Fh ; + .db 7Ch ; | + .db 0Fh ; + .db 7Ch ; | + .db 0Fh ; + .db 7Ch ; | + .db 0Fh ; + .db 7Ch ; | + .db 0Fh ; + .db 21h ; ! + .db 23h ; # + .db 0Fh ; + .db 1 ; + .db 7 ; + .db 0 ; + .db 0CDh ; Í + .db 0A2h ; ¢ + .db 0Fh ; + .db 28h ; ( + .db 6 ; + .db 21h ; ! + .db 0Eh ; + .db 0Fh ; + .db 1 ; + .db 7 ; + .db 0 ; + .db 0EDh ; í + .db 0B1h ; ± + .db 0CAh ; Ê + .db 7Fh ;  + .db 6 ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 37h ; 7 + .db 0C9h ; É + .db 3Eh ; > + .db 10h ; + .db 37h ; 7 + .db 0C9h ; É + .db 32h ; 2 + .db 0FDh ; ý + .db 2Ch ; , + .db 0E6h ; æ + .db 7Fh ;  + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 6 ; + .db 2 ; + .db 0C5h ; Å + .db 0CDh ; Í + .db 2Fh ; / + .db 0Eh ; + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 0C1h ; Á + .db 0DAh ; Ú + .db 38h ; 8 + .db 0Fh ; + .db 10h ; + .db 0F3h ; ó + .db 7Ch ; | + .db 0B5h ; µ + .db 28h ; ( + .db 4 ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 3Ah ; : + .db 0FDh ; ý + .db 2Ch ; , + .db 0B7h ; · + .db 0C9h ; É + .db 32h ; 2 + .db 0FDh ; ý + .db 2Ch ; , + .db 0E6h ; æ + .db 7Fh ;  + .db 0CDh ; Í + .db 0EDh ; í + .db 7 ; + .db 6 ; + .db 4 ; + .db 0C5h ; Å + .db 0CDh ; Í + .db 2Fh ; / + .db 0Eh ; + .db 0CDh ; Í + .db 0EDh ; í + .db 7 ; + .db 0C1h ; Á + .db 0DAh ; Ú + .db 38h ; 8 + .db 0Fh ; + .db 10h ; + .db 0F3h ; ó + .db 21h ; ! + .db 99h ; ? + .db 28h ; ( + .db 11h ; + .db 0E9h ; é + .db 7 ; + .db 0CDh ; Í + .db 0D3h ; Ó + .db 6 ; + .db 0CAh ; Ê + .db 77h ; w + .db 0Fh ; + .db 0C3h ; à + .db 73h ; s + .db 0Fh ; + .db 5Fh ; _ + .db 3Ah ; : + .db 9Eh ; ? + .db 2Ch ; , + .db 0FEh ; þ + .db 20h ; + .db 7Bh ; { + .db 0C9h ; É + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_FAA: ; CODE XREF: seg000:0AE5p sub_0_BD3+1Ap + ; ... + ld hl, 2CE9h + ld de, 2CEDh + ldi + ldi + ld hl, 0 + ld (2CEFh), hl +; End of function sub_0_FAA + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_FBA: ; CODE XREF: sub_0_11FA+4Ep + ld hl, 2CEDh + ld de, 2CF3h + +loc_0_FC0: ; CODE XREF: sub_0_FC9+6j + ldi + ldi + ldi + ldi + ret +; End of function sub_0_FBA + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_FC9: ; CODE XREF: sub_0_BD3+1Dp + ; sub_0_11FA+56p ... + ld hl, 2CF3h + ld de, 2CEDh + jr loc_0_FC0 +; End of function sub_0_FC9 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_FD1: ; CODE XREF: sub_0_BD3+37p + xor a + ld (2D01h), a + ld hl, 400h + ld (2CFEh), hl + +loc_0_FDB: ; CODE XREF: sub_0_FD1+61j + ld a, 5 + ld (2D00h), a + ld b, 64h + call sub_0_DE7 + jp c, loc_0_108A + ld hl, 109Eh + ld bc, 3 + cpir + jp z, sub_0_67F + jr loc_0_1024 +;---------------------------------------------------------------------------- + .db 21h ; ! + .db 0 ; + .db 2Dh ; - + .db 35h ; 5 + .db 3Eh ; > + .db 10h ; + .db 0CAh ; Ê + .db 8Ah ; ? + .db 10h ; + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 38h ; 8 + .db 0DBh ; Û + .db 21h ; ! + .db 0A7h ; § + .db 10h ; + .db 1 ; + .db 2 ; + .db 0 ; + .db 0EDh ; í + .db 0B1h ; ± + .db 0CAh ; Ê + .db 7Fh ;  + .db 6 ; + .db 18h ; + .db 12h ; + .db 21h ; ! + .db 0 ; + .db 2Dh ; - + .db 35h ; 5 + .db 3Eh ; > + .db 10h ; + .db 0CAh ; Ê + .db 8Ah ; ? + .db 10h ; + .db 18h ; + .db 0C3h ; à + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 38h ; 8 + .db 11h ; +;---------------------------------------------------------------------------- + +loc_0_1024: ; CODE XREF: sub_0_FD1+22j + ld hl, (2CFEh) + dec hl + ld (2CFEh), hl + ld a, h + or l + ld a, 0FCh + jp z, loc_0_108A + jp loc_0_FDB +;---------------------------------------------------------------------------- + .db 3Eh ; > + .db 0FFh ; ÿ + .db 0C3h ; à + .db 8Ah ; ? + .db 10h ; + .db 3Eh ; > + .db 5 ; + .db 32h ; 2 + .db 0 ; + .db 2Dh ; - + .db 0CDh ; Í + .db 5 ; + .db 0Eh ; + .db 38h ; 8 + .db 46h ; F + .db 21h ; ! + .db 0ADh ; ­ + .db 10h ; + .db 1 ; + .db 2 ; + .db 0 ; + .db 0EDh ; í + .db 0B1h ; ± + .db 0CAh ; Ê + .db 7Fh ;  + .db 6 ; + .db 18h ; + .db 0D3h ; Ó + .db 0CDh ; Í + .db 5 ; + .db 0Eh ; + .db 38h ; 8 + .db 34h ; 4 + .db 21h ; ! + .db 0B3h ; ³ + .db 10h ; + .db 1 ; + .db 4 ; + .db 0 ; + .db 0EDh ; í + .db 0B1h ; ± + .db 0CAh ; Ê + .db 7Fh ;  + .db 6 ; + .db 18h ; + .db 0C1h ; Á + .db 3Eh ; > + .db 10h ; + .db 32h ; 2 + .db 9Eh ; ? + .db 2Ch ; , + .db 0CDh ; Í + .db 3Fh ; ? + .db 11h ; + .db 18h ; + .db 12h ; + .db 3Eh ; > + .db 10h ; + .db 32h ; 2 + .db 9Eh ; ? + .db 2Ch ; , + .db 0CDh ; Í + .db 0 ; + .db 11h ; + .db 18h ; + .db 8 ; + .db 3Eh ; > + .db 20h ; + .db 32h ; 2 + .db 9Eh ; ? + .db 2Ch ; , + .db 0CDh ; Í + .db 0C5h ; Å + .db 10h ; + .db 0F5h ; õ + .db 21h ; ! + .db 0A7h ; § + .db 2Ch ; , + .db 11h ; + .db 0E4h ; ä + .db 2Ch ; , + .db 0CDh ; Í + .db 92h ; ? + .db 6 ; + .db 0F1h ; ñ +;---------------------------------------------------------------------------- + +loc_0_108A: ; CODE XREF: sub_0_FD1+14j + ; sub_0_FD1+5Ej + ld hl, 10BFh + ld bc, 6 + cpir + jr nz, loc_0_109C + cp 98h + jr nz, loc_0_109A + ld a, 10h + +loc_0_109A: ; CODE XREF: sub_0_FD1+C5j + scf + ret +;---------------------------------------------------------------------------- + +loc_0_109C: ; CODE XREF: sub_0_FD1+C1j + or a + ret +; End of function sub_0_FD1 + +;---------------------------------------------------------------------------- + .db 18h ; + .db 0AAh ; ª + .db 2Ah ; * + .db 3Ah ; : + .db 10h ; + .db 3Ah ; : + .db 10h ; + .db 0F5h ; õ + .db 0Fh ; + .db 6Bh ; k + .db 18h ; + .db 12h ; + .db 10h ; + .db 1Dh ; + .db 10h ; + .db 2Ah ; * + .db 18h ; + .db 51h ; Q + .db 10h ; + .db 3Fh ; ? + .db 10h ; + .db 43h ; C + .db 41h ; A + .db 42h ; B + .db 18h ; + .db 0F5h ; õ + .db 0Fh ; + .db 63h ; c + .db 10h ; + .db 6Dh ; m + .db 10h ; + .db 77h ; w + .db 10h ; + .db 98h ; ? + .db 6 ; + .db 10h ; + .db 0FFh ; ÿ + .db 0FEh ; þ + .db 0FCh ; ü + .db 0CDh ; Í + .db 0A0h ; + .db 8 ; + .db 0CDh ; Í + .db 2Fh ; / + .db 0Eh ; + .db 0D8h ; Ø + .db 32h ; 2 + .db 1 ; + .db 2Dh ; - + .db 0CDh ; Í + .db 0EDh ; í + .db 7 ; + .db 21h ; ! + .db 0A7h ; § + .db 2Ch ; , + .db 6 ; + .db 4 ; + .db 0C5h ; Å + .db 0E5h ; å + .db 0CDh ; Í + .db 2Fh ; / + .db 0Eh ; + .db 0CDh ; Í + .db 0EDh ; í + .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 2Fh ; / + .db 0Eh ; + .db 0CDh ; Í + .db 0EDh ; í + .db 7 ; + .db 0C1h ; Á + .db 0D8h ; Ø + .db 10h ; + .db 0F5h ; õ + .db 21h ; ! + .db 99h ; ? + .db 28h ; ( + .db 11h ; + .db 0E9h ; é + .db 7 ; + .db 0CDh ; Í + .db 0D3h ; Ó + .db 6 ; + .db 28h ; ( + .db 34h ; 4 + .db 18h ; + .db 3Bh ; ; + .db 0CDh ; Í + .db 0A0h ; + .db 8 ; + .db 0CDh ; Í + .db 2Fh ; / + .db 0Eh ; + .db 0D8h ; Ø + .db 32h ; 2 + .db 1 ; + .db 2Dh ; - + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 21h ; ! + .db 0A7h ; § + .db 2Ch ; , + .db 6 ; + .db 4 ; + .db 0C5h ; Å + .db 0E5h ; å + .db 0CDh ; Í + .db 2Fh ; / + .db 0Eh ; + .db 0CDh ; Í + .db 85h ; ? + .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 2Fh ; / + .db 0Eh ; + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 0C1h ; Á + .db 0D8h ; Ø + .db 10h ; + .db 0F5h ; õ + .db 7Ch ; | + .db 0B5h ; µ + .db 20h ; + .db 9 ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 32h ; 2 + .db 0A6h ; ¦ + .db 2Ch ; , + .db 3Ah ; : + .db 1 ; + .db 2Dh ; - + .db 0C9h ; É + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 0CDh ; Í + .db 0A0h ; + .db 8 ; + .db 0CDh ; Í + .db 94h ; ? + .db 11h ; + .db 0D8h ; Ø + .db 32h ; 2 + .db 1 ; + .db 2Dh ; - + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 21h ; ! + .db 0A7h ; § + .db 2Ch ; , + .db 6 ; + .db 4 ; + .db 0C5h ; Å + .db 0E5h ; å + .db 0CDh ; Í + .db 94h ; ? + .db 11h ; + .db 30h ; 0 + .db 3 ; + .db 0E1h ; á + .db 0C1h ; Á + .db 0C9h ; É + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 0E1h ; á + .db 0C1h ; Á + .db 77h ; w + .db 23h ; # + .db 10h ; + .db 0EDh ; í + .db 6 ; + .db 2 ; + .db 0C5h ; Å + .db 0CDh ; Í + .db 94h ; ? + .db 11h ; + .db 30h ; 0 + .db 2 ; + .db 0C1h ; Á + .db 0C9h ; É + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 0C1h ; Á + .db 10h ; + .db 0F2h ; ò + .db 7Ch ; | + .db 0B5h ; µ + .db 20h ; + .db 18h ; + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0FEh ; þ + .db 0Dh ; + .db 20h ; + .db 5 ; + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0B7h ; · + .db 3Eh ; > + .db 0FFh ; ÿ + .db 32h ; 2 + .db 0A6h ; ¦ + .db 2Ch ; , + .db 3Ah ; : + .db 1 ; + .db 2Dh ; - + .db 0C9h ; É + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 0CDh ; Í + .db 5 ; + .db 0Eh ; + .db 0D8h ; Ø + .db 0CDh ; Í + .db 0B3h ; ³ + .db 11h ; + .db 20h ; + .db 12h ; + .db 7 ; + .db 7 ; + .db 7 ; + .db 7 ; + .db 47h ; G + .db 0C5h ; Å + .db 0CDh ; Í + .db 5 ; + .db 0Eh ; + .db 0C1h ; Á + .db 0D8h ; Ø + .db 0CDh ; Í + .db 0B3h ; ³ + .db 11h ; + .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 ; É + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_11C1: ; CODE XREF: sub_0_8D1+63p + ; sub_0_11C1+30j + ld a, 0FFh + ld (2D02h), a + call sub_0_FAA + ld a, (2C9Eh) + cp 10h + ld a, 43h + jr z, loc_0_11D4 + ld a, 15h + +loc_0_11D4: ; CODE XREF: sub_0_11C1+Fj + call loc_0_145C + ld b, 64h + call sub_0_1289 + or a + jr z, loc_0_11F3 + cp 0F6h + jr z, loc_0_11E7 + ld a, 0FFh + scf + ret +;---------------------------------------------------------------------------- + +loc_0_11E7: ; CODE XREF: sub_0_11C1+20j + ld a, 6 + call loc_0_145C + ld b, 0Ah + call sub_0_DE7 + jr sub_0_11C1 +;---------------------------------------------------------------------------- + +loc_0_11F3: ; CODE XREF: sub_0_11C1+1Cj + ld a, 6 + call loc_0_145C + xor a + ret +; End of function sub_0_11C1 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_11FA: ; CODE XREF: sub_0_8D1+6Fp + ; sub_0_8D1+7Dp ... + ld a, 0FFh + ld (2D02h), a + ld (2CA3h), a + xor a + ld (2D07h), a + call sub_0_FAA + ld hl, 2CABh + call sub_0_688 + ld a, (2C9Eh) + cp 10h + ld a, 43h + jr z, loc_0_121A + ld a, 15h + +loc_0_121A: ; CODE XREF: sub_0_11FA+1Cj + call loc_0_145C + +loc_0_121D: ; CODE XREF: sub_0_11FA+5Ej + ld a, (2D07h) + or a + ld b, 82h + jr z, loc_0_1227 + ld b, 32h + +loc_0_1227: ; CODE XREF: sub_0_11FA+29j + call sub_0_1289 + jr c, loc_0_125A + push af + call sub_0_50B + pop af + ld hl, 2D07h + cp (hl) + jr z, loc_0_1250 + dec a + cp (hl) + jr nz, loc_0_126D + inc (hl) + ld de, 2CEFh + ld hl, 2CABh + ld bc, 2CABh + call sub_0_6E4 + call sub_0_FBA + call sub_0_D30 + jr c, loc_0_1285 + +loc_0_1250: ; CODE XREF: sub_0_11FA+3Bj + call sub_0_FC9 + ld a, 6 + call loc_0_145C + jr loc_0_121D +;---------------------------------------------------------------------------- + +loc_0_125A: ; CODE XREF: sub_0_11FA+30j + cp 0F6h + jr nz, loc_0_126D + call sub_0_D0E + jr c, loc_0_1285 + call sub_0_643 + ld a, 6 + call loc_0_145C + xor a + ret +;---------------------------------------------------------------------------- + +loc_0_126D: ; CODE XREF: sub_0_11FA+3Fj + ; sub_0_11FA+62j + cp 0FFh + jr nz, loc_0_1285 + ld a, (2D02h) + cp 0FFh + jr nz, loc_0_1285 + ld a, (2C9Eh) + or a + jr z, loc_0_1285 + xor a + ld (2C9Eh), a + jp sub_0_11FA +;---------------------------------------------------------------------------- + +loc_0_1285: ; CODE XREF: sub_0_11FA+54j + ; sub_0_11FA+67j ... + ld a, 0FFh + scf + ret +; End of function sub_0_11FA + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1289: ; CODE XREF: sub_0_11C1+18p + ; sub_0_11FA+2Dp + ld a, b + ld (2D03h), a + xor a + ld (2D04h), a + ld a, 0 + ld (2D09h), a + +loc_0_1296: ; CODE XREF: sub_0_1289+12Aj + ld a, (2D03h) + ld b, a + call sub_0_DE7 + ld (2D08h), a + ld hl, 12AEh + ld bc, 4 + cpir + jp z, sub_0_67F + jp loc_0_137A +;---------------------------------------------------------------------------- + .db 2 ; + .db 1 ; + .db 4 ; + .db 18h ; + .db 6Ah ; j + .db 13h ; + .db 5Fh ; _ + .db 13h ; + .db 0BFh ; ¿ + .db 12h ; + .db 0BAh ; º + .db 12h ; + .db 21h ; ! + .db 0 ; + .db 4 ; + .db 18h ; + .db 3 ; + .db 21h ; ! + .db 80h ; ? + .db 0 ; + .db 22h ; " + .db 5 ; + .db 2Dh ; - + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 32h ; 2 + .db 0D9h ; Ù + .db 12h ; + .db 0DAh ; Ú + .db 7Ah ; z + .db 13h ; + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0DAh ; Ú + .db 7Ah ; z + .db 13h ; + .db 0C6h ; Æ + .db 0 ; + .db 0FEh ; þ + .db 0FFh ; ÿ + .db 0C2h ;  + .db 7Ah ; z + .db 13h ; + .db 0CDh ; Í + .db 0A0h ; + .db 8 ; + .db 0DDh ; Ý + .db 2Ah ; * + .db 0EDh ; í + .db 2Ch ; , + .db 6 ; + .db 0Ah ; + .db 0DDh ; Ý + .db 0E5h ; å + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 0DDh ; Ý + .db 0E1h ; á + .db 32h ; 2 + .db 8 ; + .db 2Dh ; - + .db 0DAh ; Ú + .db 7Ah ; z + .db 13h ; + .db 0DDh ; Ý + .db 77h ; w + .db 0 ; + .db 0DDh ; Ý + .db 23h ; # + .db 0CDh ; Í + .db 0DDh ; Ý + .db 7 ; + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 0EDh ; í + .db 4Bh ; K + .db 0EFh ; ï + .db 2Ch ; , + .db 3 ; + .db 0EDh ; í + .db 43h ; C + .db 0EFh ; ï + .db 2Ch ; , + .db 0EDh ; í + .db 5Bh ; [ + .db 5 ; + .db 2Dh ; - + .db 1Bh ; + .db 0EDh ; í + .db 53h ; S + .db 5 ; + .db 2Dh ; - + .db 7Ah ; z + .db 0B3h ; ³ + .db 20h ; + .db 0D0h ; Ð + .db 0DDh ; Ý + .db 22h ; " + .db 0EDh ; í + .db 2Ch ; , + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 32h ; 2 + .db 8 ; + .db 2Dh ; - + .db 0DAh ; Ú + .db 7Ah ; z + .db 13h ; + .db 3Ah ; : + .db 9Eh ; ? + .db 2Ch ; , + .db 0FEh ; þ + .db 10h ; + .db 20h ; + .db 26h ; & + .db 3Ah ; : + .db 8 ; + .db 2Dh ; - + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 32h ; 2 + .db 8 ; + .db 2Dh ; - + .db 0DAh ; Ú + .db 7Ah ; z + .db 13h ; + .db 0CDh ; Í + .db 85h ; ? + .db 8 ; + .db 7Ch ; | + .db 0B5h ; µ + .db 0C2h ;  + .db 7Ah ; z + .db 13h ; + .db 0AFh ; ¯ + .db 32h ; 2 + .db 4 ; + .db 2Dh ; - + .db 3Eh ; > + .db 0 ; + .db 32h ; 2 + .db 2 ; + .db 2Dh ; - + .db 3Ah ; : + .db 0D9h ; Ù + .db 12h ; + .db 0C9h ; É + .db 3Ah ; : + .db 8 ; + .db 2Dh ; - + .db 6Fh ; o + .db 3Ah ; : + .db 0DFh ; ß + .db 7 ; + .db 95h ; ? + .db 28h ; ( + .db 0E9h ; é + .db 0C3h ; à + .db 7Ah ; z + .db 13h ; + .db 6 ; + .db 0Ah ; + .db 0CDh ; Í + .db 0E7h ; ç + .db 0Dh ; + .db 3Eh ; > + .db 0F6h ; ö + .db 0D8h ; Ø + .db 0C3h ; à + .db 7Ah ; z + .db 13h ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 21h ; ! + .db 9 ; + .db 2Dh ; - + .db 0BEh ; ¾ + .db 20h ; + .db 4 ; + .db 3Eh ; > + .db 0FFh ; ÿ + .db 37h ; 7 + .db 0C9h ; É + .db 77h ; w + .db 0C3h ; à + .db 0A4h ; ¤ + .db 13h ; +;---------------------------------------------------------------------------- + +loc_0_137A: ; CODE XREF: sub_0_1289+22j + ld a, 0 + ld (2D09h), a + +loc_0_137F: ; CODE XREF: sub_0_1289+FBj + ld b, 0Ah + call sub_0_DE7 + jr nc, loc_0_137F + ld a, (2D02h) + cp 0FFh + jr nz, loc_0_139A + ld a, (2C9Eh) + cp 10h + ld a, 43h + jr z, loc_0_13A1 + ld a, 15h + jr loc_0_13A1 +;---------------------------------------------------------------------------- + +loc_0_139A: ; CODE XREF: sub_0_1289+102j + ld a, 28h + ld (2D03h), a + ld a, 15h + +loc_0_13A1: ; CODE XREF: sub_0_1289+10Bj + ; sub_0_1289+10Fj + call loc_0_145C + call sub_0_FC9 + ld hl, 2D04h + inc (hl) + call sub_0_482 + ld a, (2D04h) + cp 5 + jp nz, loc_0_1296 + ld a, 0FFh + scf + ret +; End of function sub_0_1289 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_13BA: ; CODE XREF: sub_0_BD3+34p + ld (2CE8h), a + ld hl, 1403h + call sub_0_DDC + call sub_0_8A0 + ld a, (2CE8h) + call loc_0_885 + call sub_0_1418 + ld hl, 2CE0h + ld b, 4 + +loc_0_13D4: ; CODE XREF: sub_0_13BA+26j + push bc + ld a, (hl) + inc hl + push hl + call loc_0_885 + call sub_0_1418 + pop hl + pop bc + djnz loc_0_13D4 + ld a, (word_0_887+1) + call sub_0_1418 + ld a, (word_0_887) + call sub_0_1418 + ld a, 0Dh + call loc_0_145C + ld a, 0Ah + call loc_0_145C + ld a, (2CE8h) + cp 8 + ret z + ld a, 11h + jp loc_0_145C +; End of function sub_0_13BA + +;---------------------------------------------------------------------------- + .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_1418: ; CODE XREF: sub_0_13BA+12p + ; sub_0_13BA+21p ... + push af + ld hl, 1408h + ld b, 0 + rra + rra + rra + rra + and 0Fh + ld c, a + add hl, bc + ld a, (hl) + call loc_0_145C + pop af + ld hl, 1408h + ld b, 0 + and 0Fh + ld c, a + add hl, bc + ld a, (hl) + jp loc_0_145C +; End of function sub_0_1418 + +;---------------------------------------------------------------------------- + .db 32h ; 2 + .db 5Bh ; [ + .db 14h ; + .db 1 ; + .db 9 ; + .db 0 ; + .db 21h ; ! + .db 77h ; w + .db 14h ; + .db 0EDh ; í + .db 0B1h ; ± + .db 0CAh ; Ê + .db 7Fh ;  + .db 6 ; + .db 0E6h ; æ + .db 60h ; ` + .db 20h ; + .db 10h ; + .db 3Ah ; : + .db 9Dh ;  + .db 2Ch ; , + .db 0B7h ; · + .db 28h ; ( + .db 0Ah ; + .db 21h ; ! + .db 5Bh ; [ + .db 14h ; + .db 0CBh ; Ë + .db 0F6h ; ö + .db 3Eh ; > + .db 18h ; + .db 0CDh ; Í + .db 5Ch ; \ + .db 14h ; + .db 3Eh ; > + .db 0 ; +;---------------------------------------------------------------------------- + +loc_0_145C: ; CODE XREF: sub_0_DDC+5p sub_0_11C1+13p + ; ... + ld (byte_0_1468), a + +loc_0_145F: ; CODE XREF: seg000:1465j + call sub_0_588 + call sub_0_5CD + jr z, loc_0_145F +;---------------------------------------------------------------------------- + .db 3Eh ; > +byte_0_1468: .db 0 ; DATA XREF: seg000:145Cw + .db 0C3h ; à + .db 0C7h ; Ç + .db 5 ; + .db 3Ah ; : + .db 68h ; h + .db 14h ; + .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 50h ; P + .db 14h ; + .db 50h ; P + .db 14h ; + .db 50h ; P + .db 14h ; + .db 50h ; P + .db 14h ; + .db 50h ; P + .db 14h ; + .db 50h ; P + .db 14h ; + .db 6Ch ; l + .db 14h ; + .db 6Ch ; l + .db 14h ; + .db 50h ; P + .db 14h ; + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1492: ; CODE XREF: start+56p sub_0_961+79p + push bc + ld (2D0Ah), a + call sub_0_171E + push de + call sub_0_162C + ld (de), a + pop de + push de + call sub_0_14A7 + pop de + pop bc + jr loc_0_151D +; End of function sub_0_1492 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_14A7: ; CODE XREF: sub_0_1492+Ep + xor a + ld (de), a + ld (2D0Dh), a + ld (2D0Ch), a + call sub_0_1687 + ld a, c + ld (2D0Eh), a + push de + ld a, (hl) + cp 3Ah + jr nz, loc_0_14BD + inc hl + +loc_0_14BD: ; CODE XREF: sub_0_14A7+13j + ld b, 8 + call sub_0_1522 + pop de + ld a, (hl) + ld (2D0Bh), a + cp 3Ah + jr nz, loc_0_14FE + inc hl + ld a, (2D0Ah) + or a + jr z, loc_0_14D7 + call sub_0_154A + jr z, loc_0_14E5 + +loc_0_14D7: ; CODE XREF: sub_0_14A7+29j + call sub_0_159D + jr z, loc_0_14E5 + ld a, (2D0Ah) + or a + jr nz, loc_0_14E5 + call sub_0_154A + +loc_0_14E5: ; CODE XREF: sub_0_14A7+2Ej + ; sub_0_14A7+33j ... + ld a, (2D0Dh) + ld (de), a + push de + inc de + call sub_0_1632 + pop de + xor a + ld (2D0Ch), a + push de + ld b, 8 + call sub_0_1522 + pop de + ld a, (hl) + ld (2D0Bh), a + +loc_0_14FE: ; CODE XREF: sub_0_14A7+22j + ld a, (2D0Bh) + ex de, hl + ld bc, 8 + add hl, bc + ex de, hl + ld b, 3 + cp 2Eh + jr nz, loc_0_1513 + inc hl + push de + call sub_0_1522 + pop de + +loc_0_1513: ; CODE XREF: sub_0_14A7+64j + ex de, hl + ld bc, 5 + add hl, bc + ex de, hl + ld a, (2D0Eh) + ld (de), a + +loc_0_151D: ; CODE XREF: sub_0_1492+13j + ld a, (2D0Ch) + or a + ret +; End of function sub_0_14A7 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1522: ; CODE XREF: sub_0_14A7+18p + ; sub_0_14A7+4Fp ... + call sub_0_15D9 + ret z + inc de + cp 2Ah + jr nz, loc_0_1533 + ld a, 3Fh + ld (de), a + call sub_0_1543 + jr loc_0_153A +;---------------------------------------------------------------------------- + +loc_0_1533: ; CODE XREF: sub_0_1522+7j + ld (de), a + inc hl + cp 3Fh + call z, sub_0_1543 + +loc_0_153A: ; CODE XREF: sub_0_1522+Fj + djnz sub_0_1522 + +loc_0_153C: ; CODE XREF: sub_0_1522+1Fj + call sub_0_15D9 + ret z + inc hl + jr loc_0_153C +; End of function sub_0_1522 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1543: ; CODE XREF: sub_0_1522+Cp + ; sub_0_1522+15p + push hl + ld hl, 2D0Ch + inc (hl) + pop hl + ret +; End of function sub_0_1543 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_154A: ; CODE XREF: sub_0_14A7+2Bp + ; sub_0_14A7+3Bp + push hl + push de + call sub_0_1552 + pop de + pop hl + ret +; End of function sub_0_154A + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1552: ; CODE XREF: sub_0_154A+2p + call sub_0_164A + jr z, loc_0_15CA + ex de, hl + inc hl + call sub_0_1652 + ld b, a + inc b + ld a, (hl) + cp 41h + jr c, loc_0_1574 + sub 40h + cp b + jr nc, loc_0_15CA + ld (2D0Dh), a + inc hl + ld a, (hl) + cp 20h + ret z + call sub_0_1625 + ret c + +loc_0_1574: ; CODE XREF: sub_0_1552+Fj + push hl + ld b, 2 + +loc_0_1577: ; CODE XREF: sub_0_1552+30j + ld a, (hl) + cp 20h + jr z, loc_0_1589 + call sub_0_1625 + jr c, loc_0_159A + inc hl + djnz loc_0_1577 + ld a, (hl) + cp 20h + jr nz, loc_0_159A + +loc_0_1589: ; CODE XREF: sub_0_1552+28j + pop hl + call sub_0_165A + ld c, a + inc c + call sub_0_15FA + cp c + jr nc, loc_0_15CA + ld (2D0Eh), a + xor a + ret +;---------------------------------------------------------------------------- + +loc_0_159A: ; CODE XREF: sub_0_1552+2Dj + ; sub_0_1552+35j + pop hl + jr loc_0_15CA +; End of function sub_0_1552 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_159D: ; CODE XREF: sub_0_14A7+30p + push hl + push de + call sub_0_15A5 + pop de + pop hl + ret +; End of function sub_0_159D + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_15A5: ; CODE XREF: sub_0_159D+2p + call sub_0_1662 + jr z, loc_0_15CA + ex de, hl + inc hl + +loc_0_15AC: ; CODE XREF: sub_0_15A5+23j + ld a, (de) + or a + jr z, loc_0_15CA + inc de + inc de + push hl + push de + ld b, 8 + +loc_0_15B6: ; CODE XREF: sub_0_15A5+17j + ld a, (de) + cp (hl) + jr nz, loc_0_15BE + inc hl + inc de + djnz loc_0_15B6 + +loc_0_15BE: ; CODE XREF: sub_0_15A5+13j + pop de + pop hl + jr z, loc_0_15CD + ex de, hl + ld bc, 10h + add hl, bc + ex de, hl + jr loc_0_15AC +;---------------------------------------------------------------------------- + +loc_0_15CA: ; CODE XREF: sub_0_1552+3j + ; sub_0_1552+14j ... + or 0FFh + ret +;---------------------------------------------------------------------------- + +loc_0_15CD: ; CODE XREF: sub_0_15A5+1Bj + dec de + ld a, (de) + ld (2D0Eh), a + dec de + ld a, (de) + ld (2D0Dh), a + xor a + ret +; End of function sub_0_15A5 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_15D9: ; CODE XREF: sub_0_1522p sub_0_1522+1Ap + ; ... + ld a, (hl) + cp 21h + jr c, loc_0_15F8 + 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_15F8: ; CODE XREF: sub_0_15D9+3j + xor a + ret +; End of function sub_0_15D9 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_15FA: ; CODE XREF: sub_0_1552+3Dp + push bc + ld bc, 1100h + +loc_0_15FE: ; CODE XREF: sub_0_15FA+22j + ld a, (hl) + call sub_0_15D9 + jr z, loc_0_161E + inc hl + call sub_0_1625 + jr c, loc_0_1622 + ld d, a + ld a, c + rlca + jr c, loc_0_1622 + rlca + jr c, loc_0_1622 + add a, c + jr c, loc_0_1622 + rlca + jr c, loc_0_1622 + add a, d + jr c, loc_0_1622 + ld c, a + djnz loc_0_15FE + +loc_0_161E: ; CODE XREF: sub_0_15FA+8j + ld a, c + pop bc + or a + ret +;---------------------------------------------------------------------------- + +loc_0_1622: ; CODE XREF: sub_0_15FA+Ej + ; sub_0_15FA+13j ... + pop bc + scf + ret +; End of function sub_0_15FA + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1625: ; CODE XREF: sub_0_1552+1Ep + ; sub_0_1552+2Ap ... + sub 30h + ret c + cp 0Ah + ccf + ret +; End of function sub_0_1625 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_162C: ; CODE XREF: sub_0_1492+8p + xor a + ld (de), a + inc de + call sub_0_1632 +; End of function sub_0_162C + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1632: ; CODE XREF: sub_0_14A7+44p + ld b, 0Bh + ld a, 20h + call sub_0_1645 + xor a + ld (de), a + inc de + call sub_0_1687 + ld a, c + ld (de), a + inc de + ld b, 3 + xor a +; End of function sub_0_1632 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1645: ; CODE XREF: sub_0_1632+4p + ; sub_0_1645+2j + ld (de), a + inc de + djnz sub_0_1645 + ret +; End of function sub_0_1645 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_164A: ; CODE XREF: sub_0_1552p + push hl + push de + ld de, 2Eh + jp loc_0_1669 +; End of function sub_0_164A + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1652: ; CODE XREF: sub_0_1552+7p + push hl + push de + ld de, 2Ch + jp loc_0_1669 +; End of function sub_0_1652 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_165A: ; CODE XREF: sub_0_1552+38p + push hl + push de + ld de, 2Dh + jp loc_0_1669 +; End of function sub_0_165A + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1662: ; CODE XREF: sub_0_15A5p + push de + ld de, 15h + jp loc_0_1676 +;---------------------------------------------------------------------------- + +loc_0_1669: ; CODE XREF: sub_0_164A+5j + ; sub_0_1652+5j ... + ld hl, (2D0Fh) + ld a, h + or l + jr z, loc_0_1671 + add hl, de + +loc_0_1671: ; CODE XREF: sub_0_1662+Cj + ld a, (hl) + pop de + pop hl + or a + ret +;---------------------------------------------------------------------------- + +loc_0_1676: ; CODE XREF: sub_0_1662+4j + ld hl, (2D0Fh) + 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_1662 + +;---------------------------------------------------------------------------- + .db 22h ; " + .db 0Fh ; + .db 2Dh ; - + .db 0C9h ; É + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1687: ; CODE XREF: sub_0_14A7+8p + ; sub_0_1632+Ap + push af + push de + push hl + ld c, 19h + call sub_0_16AF + push af + ld e, 0FFh + ld c, F_USERNUM + call sub_0_16AF + ld c, a + pop af + ld b, a + pop hl + pop de + pop af + ret +; End of function sub_0_1687 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_169E: ; CODE XREF: sub_0_961+88p + ld a, 11h + call sub_0_16B8 + inc a + ret +; End of function sub_0_169E + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_16A5: ; CODE XREF: sub_0_DE7+4p + ld a, 1 + jp sub_0_16B8 +; End of function sub_0_16A5 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_16AA: ; CODE XREF: sub_0_DE7+1p + ld a, 0Bh + jp sub_0_16B8 +; End of function sub_0_16AA + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_16AF: ; CODE XREF: sub_0_1687+5p + ; sub_0_1687+Dp + push de + push bc + call bdos + pop bc + pop de + or a + ret +; End of function sub_0_16AF + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_16B8: ; CODE XREF: sub_0_169E+2p + ; sub_0_16A5+2j ... + 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_16B8 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_16C4: ; CODE XREF: sub_0_4A4+10p + push bc + push hl + push de + push af + ld b, 8 + call sub_0_16DA + ld (hl), 2Eh + inc hl + ld b, 3 + call sub_0_16DA + pop af + pop de + pop hl + pop bc + ret +; End of function sub_0_16C4 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_16DA: ; CODE XREF: sub_0_16C4+6p + ; sub_0_16C4+Ep ... + ld a, (de) + and 7Fh + cp 20h + jr z, loc_0_16E3 + ld (hl), a + inc hl + +loc_0_16E3: ; CODE XREF: sub_0_16DA+5j + inc de + djnz sub_0_16DA + ret +; End of function sub_0_16DA + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_16E7: ; CODE XREF: sub_0_482+6p sub_0_4A4+1Fp + push bc + ld b, 0 + jp loc_0_16F0 +;---------------------------------------------------------------------------- + .db 0C5h ; Å + .db 6 ; + .db 0FFh ; ÿ +;---------------------------------------------------------------------------- + +loc_0_16F0: ; CODE XREF: sub_0_16E7+3j + push hl + push af + ld h, 64h + call sub_0_1703 + ld h, 0Ah + call sub_0_1703 + call sub_0_1717 + pop af + pop hl + pop bc + ret +; End of function sub_0_16E7 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1703: ; CODE XREF: sub_0_16E7+Dp + ; sub_0_16E7+12p + ld l, 0FFh + +loc_0_1705: ; CODE XREF: sub_0_1703+4j + sub h + inc l + jr nc, loc_0_1705 + add a, h + ld h, a + ld a, l + or a + jr nz, sub_0_1717 + or b + ld a, h + ret m + ld a, 20h + jr z, loc_0_171A + xor a +; End of function sub_0_1703 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1717: ; CODE XREF: sub_0_16E7+15p + ; sub_0_1703+Aj + add a, 30h + ld b, a + +loc_0_171A: ; CODE XREF: sub_0_1703+11j + ld (de), a + inc de + ld a, h + ret +; End of function sub_0_1717 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_171E: ; CODE XREF: sub_0_1492+4p + push af + push hl + +loc_0_1720: ; CODE XREF: sub_0_171E+Bj + ld a, (hl) + or a + jr z, loc_0_172B + call sub_0_1793 + ld (hl), a + inc hl + jr loc_0_1720 +;---------------------------------------------------------------------------- + +loc_0_172B: ; CODE XREF: sub_0_171E+4j + pop hl + pop af + ret +; End of function sub_0_171E + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_172E: ; CODE XREF: start+2Fp sub_0_961+70p + push bc + push de + push hl + ld c, a + ex de, hl + ld b, (hl) + push hl + inc hl + inc hl + +loc_0_1737: ; CODE XREF: sub_0_172E+25j + call sub_0_176B + or a + jr z, loc_0_1760 + ld (hl), e + inc hl + ld (hl), d + inc hl + dec b + jr z, loc_0_1755 + call sub_0_1779 + or a + jr z, loc_0_1760 + ld a, c + or a + jr z, loc_0_1751 + xor a + ld (de), a + inc de + +loc_0_1751: ; CODE XREF: sub_0_172E+1Ej + ld a, b + or a + jr nz, loc_0_1737 + +loc_0_1755: ; CODE XREF: sub_0_172E+14j + call sub_0_1779 + call sub_0_176B + or a + jr z, loc_0_1760 + or 0FFh + +loc_0_1760: ; CODE XREF: sub_0_172E+Dj + ; sub_0_172E+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_172E + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_176B: ; CODE XREF: sub_0_172E+9p + ; sub_0_172E+2Ap ... + ld a, (de) + and 7Fh + inc de + cp 20h + jr z, sub_0_176B + cp 9 + jr z, sub_0_176B + dec de + ret +; End of function sub_0_176B + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1779: ; CODE XREF: sub_0_172E+16p + ; sub_0_172E+27p ... + ld a, (de) + and 7Fh + ret z + cp 20h + ret z + cp 9 + ret z + inc de + jr sub_0_1779 +; End of function sub_0_1779 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1786: ; CODE XREF: start+1Ep sub_0_4A4+Cp + ; ... + push hl + call sub_0_178C + pop hl + ret +; End of function sub_0_1786 + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_178C: ; CODE XREF: sub_0_1786+1p + push bc + +loc_0_178D: ; CODE XREF: sub_0_178C+3j + ld (hl), a + inc hl + djnz loc_0_178D + pop bc + ret +; End of function sub_0_178C + + +;---------------------------------------------------------------------------- + +; S u b r o u t i n e + +sub_0_1793: ; CODE XREF: sub_0_171E+6p + and 7Fh + cp 61h + ret c + cp 7Bh + ret nc + and 5Fh + ret +; End of function sub_0_1793 + +;---------------------------------------------------------------------------- +word_0_179E: .dw 2D11h ; DATA XREF: start+18r start+35r + ; ... +byte_0_17A0: .db 0 ; DATA XREF: sub_0_195+Aw sub_0_195+14r + ; ... +byte_0_17A1: .db 0 ; DATA XREF: start+60r sub_0_195+11w +word_0_17A2: .dw 0 ; DATA XREF: start+88w sub_0_961+7Fw + .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 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 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 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 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 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + .db 0 ; + + .end ; start diff --git a/Source/Apps/Test/rzsz/rz.com.orig b/Source/Apps/Test/rzsz/rz.com.orig new file mode 100644 index 00000000..b0767674 Binary files /dev/null and b/Source/Apps/Test/rzsz/rz.com.orig differ diff --git a/Source/Apps/Test/rzsz/sz.asm b/Source/Apps/Test/rzsz/sz.asm new file mode 100644 index 00000000..f44a0670 --- /dev/null +++ b/Source/Apps/Test/rzsz/sz.asm @@ -0,0 +1,7433 @@ +; 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, | +; | Professional version of IDA is at http://www.idapro.com | +; +-----------------------------------------------------------------+ +; + + +; File Name C:\SZ.COM +; Format COM File +; Base Address: 1000h Range: 10100h - 11F80h Loaded length: 1E80h + +; Processor: z80 +; Target assembler: Table Driven Assembler (TASM) by Speech Technology Inc. + +;---------------------------------------------------------------------------- + + .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, 0Ch + call 5 + cp 30h + jp c, loc_0_21E + ld de, 231h + ld c, 9 + call 5 + 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, 9 + call 5 + 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, 9 + call 5 + 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, 20h + call 5 + pop af + dec a + ld e, a + ld c, 0Eh + jp 5 +; End of function sub_0_20C + +;---------------------------------------------------------------------------- + +loc_0_21E: ; CODE XREF: start+1Bj + ld de, 259h + ld c, 9 + call 5 + +loc_0_226: ; CODE XREF: start+2Dj start+44j + ld de, 26Eh + ld c, 9 + call 5 + 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 5 + ld a, h + cpl + ld h, a + ld a, l + cpl + ld l, a + ld (word_0_488), hl + ld c, 31h + ld de, 47Ch + call 5 + 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 5 + 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, 31h + call 5 + ld a, 0FEh + ld (byte_0_481), a + ld de, 480h + ld c, 31h + jp 5 +; 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, 9 + jp 5 +; 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, 9 + jp 5 +; 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, 9 + jp 5 +; 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, 7 + call 5 + or a + jr z, loc_0_582 + ld c, 3 + call 5 + 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, 8 + call 5 + 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, 1Ah + call 5 + 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 5 + 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 5 + 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 5 + 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 5 + 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 of 'seg000' + + + .end ; start + diff --git a/Source/Apps/Test/rzsz/sz.com.orig b/Source/Apps/Test/rzsz/sz.com.orig new file mode 100644 index 00000000..e905002b Binary files /dev/null and b/Source/Apps/Test/rzsz/sz.com.orig differ diff --git a/Source/Doc/Applications.md b/Source/Doc/Applications.md index 75c99d5d..bd955d1b 100644 --- a/Source/Doc/Applications.md +++ b/Source/Doc/Applications.md @@ -1,38 +1,5 @@ -\include{"Common.h"} \define{doc_title}{Applications} - ---- -title: | - | \doc_product \doc_title - | - | Version \doc_ver -author: \doc_author (mailto:\doc_authmail) -date: \doc_date -institution: \doc_orgname -documentclass: article -toc: true -toc-depth: 1 -classoption: - - oneside -papersize: letter -geometry: - - top=1.5in - - bottom=1.5in - - left=1.5in - - right=1.5in -# - showframe -linestretch: 1.25 -colorlinks: true -fontfamily: helvet -fontsize: 12pt -header-includes: - - | - ```{=latex} - \renewcommand*{\familydefault}{\sfdefault} - ``` ---- - -`\clearpage % new page after TOC`{=latex} +\include{"Common.h"} # Summary diff --git a/Source/Doc/Architecture.md b/Source/Doc/Architecture.md index 04627cc5..cd8114ee 100644 --- a/Source/Doc/Architecture.md +++ b/Source/Doc/Architecture.md @@ -1,78 +1,5 @@ -\include{"Common.h"} \define{doc_title}{Architecture} - ---- -title: | - | \doc_product \doc_title - | - | Version \doc_ver -author: \doc_author (mailto:\doc_authmail) -date: \doc_date -institution: \doc_orgname -documentclass: book -classoption: -- oneside -toc: true -toc-depth: 1 -numbersections: true -secnumdepth: 1 -papersize: letter -geometry: -- top=1.5in -- bottom=1.5in -- left=1.5in -- right=1.5in -# - showframe -# - pass -linestretch: 1.25 -colorlinks: true -fontfamily: helvet -fontsize: 12pt -header-includes: -- \setlength{\headheight}{15pt} -- | - ```{=latex} - \usepackage{fancyhdr} - \usepackage{xcolor} - \usepackage{xhfill} - \usepackage{graphicx} - \renewcommand*{\familydefault}{\sfdefault} - \renewcommand{\maketitle}{ - \begin{titlepage} - \centering - \par - \vspace*{0pt} - \includegraphics[width=\paperwidth]{Graphics/Logo.pdf} \par - \vfill - \raggedleft - {\scshape \bfseries \fontsize{48pt}{56pt} \selectfont \doc_product \par} - {\bfseries \fontsize{32pt}{36pt} \selectfont \doc_title \par} - \vspace{24pt} - {\huge Version \doc_ver \\ \doc_date \par} - \vspace{24pt} - {\large \itshape \doc_orgname \\ \href{http://\doc_orgurl}{\doc_orgurl} \par} - \vspace{12pt} - {\large \itshape \doc_author \\ \href{mailto:\doc_authmail}{\doc_authmail} \par} - \end{titlepage} - } - \pagestyle{empty} - ``` -include-before: -- \renewcommand{\chaptername}{Section} -- | - ```{=latex} - \pagestyle{fancyplain} - \fancyhf{} - \lfoot{\small RetroBrew Computing Group ~~ {\xrfill[3pt]{1pt}[cyan]} ~~ \thepage} - \pagenumbering{roman} - ``` ---- - -```{=latex} -\clearpage -\pagenumbering{arabic} -\lhead{\fancyplain{}{\nouppercase{\footnotesize \bfseries \leftmark \hfill \doc_product \doc_title}}} -``` +\include{"Common.h"} Overview ======== @@ -196,7 +123,7 @@ simpler and more memory efficient to keep everything in RAM. At startup Runtime Memory Layout ===================== -![Bank Switched Memory Layout](Graphics/BankSwitchedMemory){ width=80% } +![Bank Switched Memory Layout](Graphics/BankSwitchedMemory){ width=100% } System Boot Process =================== diff --git a/Source/Doc/Catalog.md b/Source/Doc/Catalog.md index 44116f5b..c0e1d3eb 100644 --- a/Source/Doc/Catalog.md +++ b/Source/Doc/Catalog.md @@ -1,50 +1,7 @@ -\include{"Common.h"} \define{doc_title}{Disk Catalog} \define{doc_author}{Mykl Orders} - ---- -title: | - | \doc_product \doc_title - | - | Version \doc_ver -author: \doc_author -date: \doc_date -institution: \doc_orgname -documentclass: article -classoption: - - oneside -toc: true -papersize: letter -geometry: - - top=1.5in - - bottom=1.5in - - left=1.0in - - right=1.0in -# - showframe -linestretch: 1.25 -colorlinks: true -fontfamily: helvet -fontsize: 12pt -header-includes: - - | - ```{=latex} - \usepackage{fancyhdr} - \usepackage{xhfill} - \renewcommand*{\familydefault}{\sfdefault} - \setstretch{1.25} % for TOC - ``` ---- - -```{=latex} -\clearpage -\pagestyle{fancyplain} -\fancyhf{} -\pagenumbering{arabic} -\lhead{\fancyplain{}{\nouppercase{\footnotesize \bfseries \leftmark \hfill \doc_product \doc_title}}} -\lfoot{\small RetroBrew Computing Group ~~ {\xrfill[3pt]{1pt}[cyan]} ~~ \thepage} -``` - -`\clearpage`{=latex} +\define{doc_authmail}{} +\include{"Common.h"} # RomWBW Distribution File Catalog @@ -827,4 +784,4 @@ on using the applications and files listed. | `WSINDEX.XCL` | WS4 | MicroPro WordStar 4 Distribution File | | `WSMSGS.OVR` | WS4 | MicroPro WordStar 4 Distribution File | | `WSPRINT.OVR` | WS4 | MicroPro WordStar 4 Distribution File | -| `WSSHORT.OVR` | WS4 | MicroPro WordStar 4 Distribution File | \ No newline at end of file +| `WSSHORT.OVR` | WS4 | MicroPro WordStar 4 Distribution File | diff --git a/Source/Doc/Common.h b/Source/Doc/Common.h index d7eed5f5..886a203c 100644 --- a/Source/Doc/Common.h +++ b/Source/Doc/Common.h @@ -1,8 +1,82 @@ \define{doc_ver}{3.1 Pre-release} \define{doc_product}{RomWBW} -\define{doc_title}{Document Title} -\define{doc_author}{Wayne Warthen} +\ifndef{doc_title} \define{doc_title}{Document Title} \endif +\ifndef{doc_author} \define{doc_author}{Wayne Warthen} \endif \define{doc_date}{\date{%d %b %Y}} -\define{doc_authmail}{wwarthen@gmail.com} +\ifndef{doc_authmail} \define{doc_authmail}{wwarthen@gmail.com} \endif \define{doc_orgname}{RetroBrew Computers Group} \define{doc_orgurl}{www.retrobrewcomputers.org} + +--- +# Force pandoc to enable graphics for Logo in title page! +graphics: true +title: | + | \doc_product \doc_title + | + | Version \doc_ver +author: \doc_author (mailto:\doc_authmail) +date: \doc_date +institution: \doc_orgname +documentclass: book +classoption: +- oneside +toc: true +toc-depth: 1 +numbersections: true +secnumdepth: 1 +papersize: letter +geometry: +- top=1.5in +- bottom=1.5in +- left=1.5in +- right=1.5in +# - showframe +# - pass +linestretch: 1.25 +colorlinks: true +fontfamily: helvet +fontsize: 12pt +header-includes: +- \setlength{\headheight}{15pt} +- | + ```{=latex} + \usepackage{fancyhdr} + \usepackage{xcolor} + \usepackage{xhfill} + \renewcommand*{\familydefault}{\sfdefault} + \renewcommand{\maketitle}{ + \begin{titlepage} + \centering + \par + \vspace*{0pt} + \includegraphics[width=\textwidth]{Graphics/Logo.pdf} \par + \vfill + \raggedleft + {\scshape \bfseries \fontsize{48pt}{56pt} \selectfont \doc_product \par} + {\bfseries \fontsize{32pt}{36pt} \selectfont \doc_title \par} + \vspace{24pt} + {\huge Version \doc_ver \\ \doc_date \par} + \vspace{24pt} + {\large \itshape \doc_orgname \\ \href{http://\doc_orgurl}{\doc_orgurl} \par} + \vspace{12pt} + {\large \itshape \doc_author \\ \href{mailto:\doc_authmail}{\doc_authmail} \par} + \end{titlepage} + } + \pagestyle{empty} + ``` +include-before: +- \renewcommand{\chaptername}{Section} +- | + ```{=latex} + \pagestyle{fancyplain} + \fancyhf{} + \lfoot{\small RetroBrew Computing Group ~~ {\xrfill[3pt]{1pt}[cyan]} ~~ \thepage} + \pagenumbering{roman} + ``` +--- + +```{=latex} +\clearpage +\pagenumbering{arabic} +\lhead{\fancyplain{}{\nouppercase{\footnotesize \bfseries \leftmark \hfill \doc_product \doc_title}}} +``` diff --git a/Source/Doc/GettingStarted.md b/Source/Doc/GettingStarted.md index bbe2f8f4..3176fcba 100644 --- a/Source/Doc/GettingStarted.md +++ b/Source/Doc/GettingStarted.md @@ -1,38 +1,5 @@ +\define{doc_title}{GettingStarted} \include{"Common.h"} -\define{doc_title}{Getting Started} - ---- -title: | - | \doc_product \doc_title - | - | Version \doc_ver -author: \doc_author (mailto:\doc_authmail) -date: \doc_date -institution: \doc_orgname -documentclass: article -classoption: - - oneside -toc: true -papersize: letter -geometry: - - top=1.5in - - bottom=1.5in - - left=1.5in - - right=1.5in -# - showframe -linestretch: 1.25 -colorlinks: true -fontfamily: helvet -fontsize: 12pt -header-includes: - - | - ```{=latex} - \renewcommand*{\familydefault}{\sfdefault} - \setstretch{1.25} % for TOC - ``` ---- - -`\clearpage % new page after TOC`{=latex} # RomWBW diff --git a/Source/Doc/ROM_Applications.md b/Source/Doc/ROM_Applications.md index 006e3d11..0908b32d 100644 --- a/Source/Doc/ROM_Applications.md +++ b/Source/Doc/ROM_Applications.md @@ -1,39 +1,7 @@ -\include{"Common.h"} \define{doc_title}{ROM Applications} -\define{doc_title}{Phillip Summers} - ---- -title: | - | \doc_product \doc_title - | - | Version \doc_ver -author: \doc_author -date: \doc_date -institution: \doc_orgname -documentclass: article -toc: true -toc-depth: 1 -classoption: - - oneside -papersize: letter -geometry: - - top=1.5in - - bottom=1.5in - - left=1.5in - - right=1.5in -# - showframe -linestretch: 1.25 -colorlinks: true -fontfamily: helvet -fontsize: 12pt -header-includes: - - | - ```{=latex} - \renewcommand*{\familydefault}{\sfdefault} - ``` ---- - -`\clearpage % new page after TOC`{=latex} +\define{doc_author}{Phillip Summers} +\define{doc_authmail}{} +\include{"Common.h"} # Summary diff --git a/Tools/gpp/gpp.pdf b/Tools/gpp/gpp.pdf new file mode 100644 index 00000000..54804336 Binary files /dev/null and b/Tools/gpp/gpp.pdf differ