; z80dasm 1.1.2 ; command line: src/z80dasm -a -l -t -o BCR.asm BCR.COM BIOS EQU 00001h BDOS EQU 00005h BDOSA EQU 00006h UB_HEAD EQU 0CBF0h UB_OVW EQU UB_HEAD + 12 ; CBFBh CCPLAD EQU 0EF22h BDSLAD EQU 0EF24h BI1LAD EQU 0EF26h SIZRAM EQU 0EF2Ch UBIOS EQU 0EF2Dh TOPRAM EQU 0EF94h WBOOT EQU 0EB03h CONIN EQU WBOOT + 06h CONOUT EQU WBOOT + 09H CALLX EQU WBOOT + 66h RESIDNT EQU WBOOT + 84h RBUF EQU 00313h org 00100h l0100h: ld hl,(BDOS) ;0100 2a 06 00 Load and ld sp,hl ;0103 f9 set new Stack jp L0107h ;0104 c3 07 01 L0107h: ld sp,RBUF ;0107 31 13 03 1 . . ld de,l0413h ;010a 11 13 04 . . . ld c,009h ;010d 0e 09 . . call BDOS ;010f cd 05 00 . . . ld a,(SIZRAM) ;0112 3a 2c ef : , . rlca ;0115 07 . rlca ;0116 07 . ld b,a ;0117 47 G ld a,08eh ;0118 3e 8e > . sub b ;011a 90 . sub 019h ;011b d6 19 . . jr nc,L0125h ;011d 30 06 0 . ld de,ERMSG2 ;011f 11 7d 04 . } . jp l02b7h ;0122 c3 b7 02 . . . L0125h: ld hl,(UB_HEAD) ;0125 2a f0 cb Check for ld a,l ;0128 7d 5542h (or 4255h)? cp 055h ;0129 fe 55 at Start User BIOS jr nz,l0177h ;012b 20 4a ld a,h ;012d 7c | cp 042h ;012e fe 42 . B jr nz,l0177h ;0130 20 45 E ld hl,UB_HEAD ;0132 21 f0 cb ! . . ld b,00fh ;0135 06 0f . . xor a ;0137 af . L0138h: sub (hl) ;0138 96 . l0139h: inc hl ;0139 23 # djnz L0138h ;013a 10 fc . . cp (hl) ;013c be . jr nz,l0177h ;013d 20 38 8 ld a,(UB_OVW) ;013f 3a fb cb : . . or a ;0142 b7 . jr nz,l0156h ;0143 20 11 . ld hl,0cbf2h ;0145 21 f2 cb Target UB_HEAD + 2 ld de,UB_ID ;0148 11 74 04 Source l014bh: ld bc,00008h ;014b 01 08 00 Copy 8 bytes ldir ;014e ed b0 . . ld de,ERMSG1 ;0150 11 56 04 . V . jp l02b7h ;0153 c3 b7 02 . . . l0156h: ld hl,0cbf2h ;0156 21 f2 cb ! . . ld de,004e2h ;0159 11 e2 04 . . . ld bc,00008h ;015c 01 08 00 Copy 8 bytes ldir ;015f ed b0 . . ld de,MSG1 ;0161 11 d6 04 Message 1 pointer ld c,009h ;0164 0e 09 . . Print String call BDOS ;0166 cd 05 00 BDOS Call ld c,001h ;0169 0e 01 Console Input call BDOS ;016b cd 05 00 BDOS Call cp 059h ;016e fe 59 Is it 'Y'? jr z,l0177h ;0170 28 05 Jump if so cp 079h ;0172 fe 79 Is it 'y'? jp nz,l02bah ;0174 c2 ba 02 Jump if so l0177h: ld a,(0005dh) ;0177 3a 5d 00 Pattern not found, cp 020h ;017a fe 20 check 00fDh for space jr z,l01b2h ;017c 28 34 Jump if so ld c,00fh ;017e 0e 0f Open File ld de,0005ch ;0180 11 5c 00 FCB address call BDOS ;0183 cd 05 00 BDOS Call cp 0ffh ;0186 fe ff Is there an error? jr z,l01ach ;0188 28 22 Jump if so ld b,002h ;018a 06 02 . . ld de,RBUF ;018c 11 13 03 Start read buffer l018fh: push bc ;018f c5 . push de ;0190 d5 . ld c,01ah ;0191 0e 1a . . Set DMA Address call BDOS ;0193 cd 05 00 BDOS Call ld c,014h ;0196 0e 14 . . Read Sequential ld de,0005ch ;0198 11 5c 00 FCB address call BDOS ;019b cd 05 00 BDOS Call pop de ;019e d1 . pop bc ;019f c1 . or a ;01a0 b7 . Set flags jr nz,l01ach ;01a1 20 09 . Jump out if error (!= 0) ld hl,00080h ;01a3 21 80 00 ! . . add hl,de ;01a6 19 . ex de,hl ;01a7 eb . djnz l018fh ;01a8 10 e5 Again if not ready jr l01b2h ;01aa 18 06 . . Ready l01ach: ld de,ERMSG3 ;01ac 11 97 04 . . . jp l02b7h ;01af c3 b7 02 . . . l01b2h: ld a,(UBIOS) ;01b2 3a 2d ef : - . ld c,019h ;01b5 0e 19 . . cp c ;01b7 b9 . jp z,l0265h ;01b8 ca 65 02 . e . jr c,l01bdh ;01bb 38 00 8 . l01bdh: di ;01bd f3 . push af ;01be f5 . ld a,c ;01bf 79 y ld (UBIOS),a ;01c0 32 2d ef USERBIOS ld hl,(BI1LAD) ;01c3 2a 26 ef BI1LAD ld (l02f1h),hl ;01c6 22 f1 02 " . . ld a,(SIZRAM) ;01c9 3a 2c ef : , . or a ;01cc b7 . jr nz,l01d2h ;01cd 20 03 . pop af ;01cf f1 . jr l01edh ;01d0 18 1b . . l01d2h: pop af ;01d2 f1 . jr c,l01f2h ;01d3 38 1d 8 . ld ix,00018h ;01d5 dd 21 18 00 . ! . . call sub_0258h ;01d9 cd 58 02 . X . ld d,b ;01dc 50 P ld e,c ;01dd 59 Y ld a,(SIZRAM) ;01de 3a 2c ef : , . rlca ;01e1 07 . rlca ;01e2 07 . ld b,a ;01e3 47 G ld c,000h ;01e4 0e 00 . . ld hl,(TOPRAM) ;01e6 2a 94 ef * . . dec hl ;01e9 2b + dec de ;01ea 1b . lddr ;01eb ed b8 . . l01edh: call sub_0228h ;01ed cd 28 02 . ( . jr l020bh ;01f0 18 19 . . l01f2h: call sub_0228h ;01f2 cd 28 02 . ( . ld ix,00018h ;01f5 dd 21 18 00 . ! . . call sub_0258h ;01f9 cd 58 02 . X . inc d ;01fc 14 . ld a,(SIZRAM) ;01fd 3a 2c ef : , . rlca ;0200 07 . rlca ;0201 07 . l0202h: ld b,a ;0202 47 G ld c,000h ;0203 0e 00 . . ld hl,(l02f1h) ;0205 2a f1 02 * . . inc h ;0208 24 $ ldir ;0209 ed b0 . . l020bh: ld a,0c3h ;020b 3e c3 > . ld (0f368h),a ;020d 32 68 f3 2 h . ld hl,(TOPRAM) ;0210 2a 94 ef * . . ld (0f369h),hl ;0213 22 69 f3 " i . ld a,(SIZRAM) ;0216 3a 2c ef : , . rlca ;0219 07 . rlca ;021a 07 . ld b,a ;021b 47 G ld c,000h ;021c 0e 00 . . or a ;021e b7 . sbc hl,bc ;021f ed 42 . B ld (0efaah),hl ;0221 22 aa ef " . . ei ;0224 fb . jp l0265h ;0225 c3 65 02 . e . sub_0228h: ld ix,00018h ;0228 dd 21 18 00 . ! . . call sub_0258h ;022c cd 58 02 . X . ld (TOPRAM),bc ;022f ed 43 94 ef . C . . ld (BI1LAD),de ;0233 ed 53 26 ef . S & . ld (BDSLAD),ix ;0237 dd 22 24 ef . " $ . ld (CCPLAD),iy ;023b fd 22 22 ef . " " . inc de ;023f 13 . inc de ;0240 13 . inc de ;0241 13 . push ix ;0242 dd e5 . . push de ;0244 d5 . ld ix,0001bh ;0245 dd 21 1b 00 . ! . . call sub_0258h ;0249 cd 58 02 . X . pop de ;024c d1 . pop ix ;024d dd e1 . . ld (00001h),de ;024f ed 53 01 00 . S . . ld (00006h),ix ;0253 dd 22 06 00 . " . . ret ;0257 c9 . sub_0258h: ld hl,(00001h) ;0258 2a 01 00 * . . ld de,00066h ;025b 11 66 00 . f . add hl,de ;025e 19 . ld a,0ffh ;025f 3e ff > . ld (0f52eh),a ;0261 32 2e f5 2 . . jp (hl) ;0264 e9 . l0265h: ld hl,UBCODE ;0265 21 26 05 Source start ld de,0b300h ;0268 11 00 b3 Target start ld bc,018e0h ;026b 01 e0 18 Copy 018E0h bytes ldir ;026e ed b0 . . ld hl,UB_MSG ;0270 21 12 05 Source start ld de,0cbech ;0273 11 ec cb Target start ld bc,00014h ;0276 01 14 00 Copy 20 bytes ldir ;0279 ed b0 . . ld hl,UB_HEAD ;027b 21 f0 cb ! . . ld b,00fh ;027e 06 0f . . xor a ;0280 af . l0281h: sub (hl) ;0281 96 . inc hl ;0282 23 # djnz l0281h ;0283 10 fc . . ld (hl),a ;0285 77 w ld hl,l02e6h ;0286 21 e6 02 ! . . ld de,l02e6h+2 ;0289 11 e8 02 . . . ld bc,l02efh ;028c 01 ef 02 . . . call 0cbedh ;028f cd ed cb Call user bios routine ld hl,(l02efh) ;0292 2a ef 02 * . . ld a,h ;0295 7c | or l ;0296 b5 . jr nz,l029fh ;0297 20 06 . ld de,USYSER ;0299 11 3a 04 . : . jp l02b7h ;029c c3 b7 02 . . . l029fh: ld a,(0005dh) ;029f 3a 5d 00 : ] . cp 020h ;02a2 fe 20 . jr z,l02b2h ;02a4 28 0c ( . ld hl,RBUF ;02a6 21 13 03 Source start ld de,(l02efh) ;02a9 ed 5b ef 02 ld bc,l0100h ;02ad 01 00 01 Copy 256 bytes ldir ;02b0 ed b0 . . l02b2h: ld de,l04edh ;02b2 11 ed 04 . . . jr l02bdh ;02b5 18 06 . . l02b7h: call sub_02c6h ;02b7 cd c6 02 . . . l02bah: ld de,l04b3h ;02ba 11 b3 04 . . . l02bdh: call sub_02c6h ;02bd cd c6 02 . . . call sub_02deh ;02c0 cd de 02 . . . jp 00000h ;02c3 c3 00 00 . . . sub_02c6h: ld hl,(00001h) ;02c6 2a 01 00 * . . ld bc,00009h ;02c9 01 09 00 . . . add hl,bc ;02cc 09 . l02cdh: ld bc,l02d9h ;02cd 01 d9 02 . . . ld a,(de) ;02d0 1a . cp 024h ;02d1 fe 24 . $ ret z ;02d3 c8 . push de ;02d4 d5 . push hl ;02d5 e5 . push bc ;02d6 c5 . ld c,a ;02d7 4f O jp (hl) ;02d8 e9 . l02d9h: pop hl ;02d9 e1 . pop de ;02da d1 . inc de ;02db 13 . jr l02cdh ;02dc 18 ef . . sub_02deh: ld hl,(00001h) ;02de 2a 01 00 BIOS ENTRY ld bc,00006h ;02e1 01 06 00 add hl,bc ;02e4 09 . jp (hl) ;02e5 e9 . l02e6h: ld bc,l0400h ;02e6 01 00 04 . . . ex de,hl ;02e9 eb . ld (bc),a ;02ea 02 . ld b,e ;02eb 43 C inc sp ;02ec 33 3 add hl,sp ;02ed 39 9 ld b,c ;02ee 41 A l02efh: nop ;02ef 00 . nop ;02f0 00 . l02f1h: nop ;02f1 00 . nop ;02f2 00 . nop ;02f3 00 . nop ;02f4 00 . nop ;02f5 00 . nop ;02f6 00 . nop ;02f7 00 . nop ;02f8 00 . nop ;02f9 00 . nop ;02fa 00 . nop ;02fb 00 . nop ;02fc 00 . nop ;02fd 00 . nop ;02fe 00 . nop ;02ff 00 . nop ;0300 00 . l0301h: nop ;0301 00 . nop ;0302 00 . nop ;0303 00 . l0304h: nop ;0304 00 . nop ;0305 00 . nop ;0306 00 . nop ;0307 00 . nop ;0308 00 . nop ;0309 00 . nop ;030a 00 . nop ;030b 00 . nop ;030c 00 . nop ;030d 00 . nop ;030e 00 . nop ;030f 00 . nop ;0310 00 . nop ;0311 00 . nop ;0312 00 . RBUF: nop ;0313 00 . nop ;0314 00 . nop ;0315 00 . nop ;0316 00 . nop ;0317 00 . nop ;0318 00 . nop ;0319 00 . nop ;031a 00 . nop ;031b 00 . nop ;031c 00 . nop ;031d 00 . nop ;031e 00 . nop ;031f 00 . nop ;0320 00 . nop ;0321 00 . nop ;0322 00 . nop ;0323 00 . nop ;0324 00 . nop ;0325 00 . nop ;0326 00 . nop ;0327 00 . nop ;0328 00 . nop ;0329 00 . nop ;032a 00 . nop ;032b 00 . nop ;032c 00 . nop ;032d 00 . nop ;032e 00 . nop ;032f 00 . l0330h: nop ;0330 00 . nop ;0331 00 . nop ;0332 00 . nop ;0333 00 . nop ;0334 00 . nop ;0335 00 . nop ;0336 00 . nop ;0337 00 . nop ;0338 00 . nop ;0339 00 . nop ;033a 00 . nop ;033b 00 . nop ;033c 00 . nop ;033d 00 . nop ;033e 00 . nop ;033f 00 . nop ;0340 00 . nop ;0341 00 . nop ;0342 00 . nop ;0343 00 . nop ;0344 00 . nop ;0345 00 . nop ;0346 00 . nop ;0347 00 . nop ;0348 00 . nop ;0349 00 . nop ;034a 00 . nop ;034b 00 . nop ;034c 00 . nop ;034d 00 . nop ;034e 00 . nop ;034f 00 . nop ;0350 00 . nop ;0351 00 . nop ;0352 00 . nop ;0353 00 . nop ;0354 00 . nop ;0355 00 . nop ;0356 00 . nop ;0357 00 . nop ;0358 00 . nop ;0359 00 . nop ;035a 00 . nop ;035b 00 . nop ;035c 00 . nop ;035d 00 . nop ;035e 00 . nop ;035f 00 . nop ;0360 00 . nop ;0361 00 . nop ;0362 00 . nop ;0363 00 . nop ;0364 00 . nop ;0365 00 . nop ;0366 00 . nop ;0367 00 . nop ;0368 00 . nop ;0369 00 . nop ;036a 00 . nop ;036b 00 . nop ;036c 00 . nop ;036d 00 . nop ;036e 00 . nop ;036f 00 . nop ;0370 00 . nop ;0371 00 . nop ;0372 00 . nop ;0373 00 . nop ;0374 00 . nop ;0375 00 . nop ;0376 00 . nop ;0377 00 . nop ;0378 00 . nop ;0379 00 . nop ;037a 00 . nop ;037b 00 . nop ;037c 00 . nop ;037d 00 . nop ;037e 00 . nop ;037f 00 . nop ;0380 00 . nop ;0381 00 . nop ;0382 00 . nop ;0383 00 . nop ;0384 00 . nop ;0385 00 . nop ;0386 00 . nop ;0387 00 . nop ;0388 00 . nop ;0389 00 . nop ;038a 00 . nop ;038b 00 . nop ;038c 00 . nop ;038d 00 . nop ;038e 00 . nop ;038f 00 . nop ;0390 00 . nop ;0391 00 . nop ;0392 00 . nop ;0393 00 . nop ;0394 00 . nop ;0395 00 . nop ;0396 00 . nop ;0397 00 . nop ;0398 00 . nop ;0399 00 . nop ;039a 00 . nop ;039b 00 . nop ;039c 00 . nop ;039d 00 . nop ;039e 00 . nop ;039f 00 . nop ;03a0 00 . nop ;03a1 00 . nop ;03a2 00 . nop ;03a3 00 . nop ;03a4 00 . nop ;03a5 00 . nop ;03a6 00 . nop ;03a7 00 . nop ;03a8 00 . nop ;03a9 00 . nop ;03aa 00 . nop ;03ab 00 . nop ;03ac 00 . nop ;03ad 00 . nop ;03ae 00 . nop ;03af 00 . nop ;03b0 00 . nop ;03b1 00 . nop ;03b2 00 . nop ;03b3 00 . nop ;03b4 00 . nop ;03b5 00 . nop ;03b6 00 . nop ;03b7 00 . nop ;03b8 00 . nop ;03b9 00 . nop ;03ba 00 . nop ;03bb 00 . nop ;03bc 00 . nop ;03bd 00 . nop ;03be 00 . nop ;03bf 00 . nop ;03c0 00 . nop ;03c1 00 . nop ;03c2 00 . nop ;03c3 00 . nop ;03c4 00 . nop ;03c5 00 . nop ;03c6 00 . nop ;03c7 00 . nop ;03c8 00 . nop ;03c9 00 . nop ;03ca 00 . nop ;03cb 00 . nop ;03cc 00 . nop ;03cd 00 . nop ;03ce 00 . nop ;03cf 00 . nop ;03d0 00 . nop ;03d1 00 . nop ;03d2 00 . nop ;03d3 00 . nop ;03d4 00 . nop ;03d5 00 . nop ;03d6 00 . nop ;03d7 00 . nop ;03d8 00 . nop ;03d9 00 . nop ;03da 00 . nop ;03db 00 . nop ;03dc 00 . nop ;03dd 00 . nop ;03de 00 . nop ;03df 00 . nop ;03e0 00 . nop ;03e1 00 . nop ;03e2 00 . nop ;03e3 00 . nop ;03e4 00 . nop ;03e5 00 . nop ;03e6 00 . l03e7h: nop ;03e7 00 . nop ;03e8 00 . nop ;03e9 00 . nop ;03ea 00 . nop ;03eb 00 . nop ;03ec 00 . nop ;03ed 00 . nop ;03ee 00 . nop ;03ef 00 . nop ;03f0 00 . nop ;03f1 00 . nop ;03f2 00 . nop ;03f3 00 . nop ;03f4 00 . nop ;03f5 00 . nop ;03f6 00 . nop ;03f7 00 . nop ;03f8 00 . nop ;03f9 00 . nop ;03fa 00 . nop ;03fb 00 . nop ;03fc 00 . nop ;03fd 00 . nop ;03fe 00 . nop ;03ff 00 . l0400h: nop ;0400 00 . nop ;0401 00 . nop ;0402 00 . l0403h: nop ;0403 00 . nop ;0404 00 . nop ;0405 00 . nop ;0406 00 . nop ;0407 00 . nop ;0408 00 . nop ;0409 00 . nop ;040a 00 . nop ;040b 00 . nop ;040c 00 . nop ;040d 00 . nop ;040e 00 . nop ;040f 00 . nop ;0410 00 . nop ;0411 00 . nop ;0412 00 . l0413h: inc c ;0413 0c . PX4: DB 'PX-4 BarCode Reading Package V2.2', ; 0414h DOLLAR: DB 0Dh,0Ah,0Ah,'$', ; 0436h USYSER: DB 0Dh,0Ah,'unidentified system error$' ; 43ah ERMSG1: DB 0Dh,0Ah,'cannot overwrite USERBIOS -' ; 0456h UB_ID: DB ' XXXXXXXX$' ; 0473 ERMSG2: DB 0Dh,0Ah,'cannot enlarge USERBIOS$' ; 047dh ERMSG3: DB 0Dh,0Ah,'error reading CONFIG files$';,0Dh,0Ah,0Ah ; 0497h ERMSG4: DB 0Dh,0Ah,0Ah,'LOADING ABORTED - press any key$' ; 04b3h MSG1: DB 0Dh,0Ah,'overwrite XXXXXXXX ?$' ; 04d6h MSG2: DB 0Dh,0Ah,0Ah,'LOADING COMPLETED - press any key$'; 04edh UB_MSG: ; 525 - 512 = 14h ret ;0512 c9 . jp 0b300h ;0513 c3 00 b3 . . . DB 'UBBCR V2.2' nop ;0520 00 . rst 38h ;0521 ff . call pe,000cbh ;0522 ec cb 00 . . . nop ;0525 00 . UBCODE: ; 018E0h (copied bytes) + 14h = 18F4h /100h = 24 pages jp 0b369h ;0526 c3 69 b3 . i . jp 0b391h ;0529 c3 91 b3 . . . jp 0b3dah ;052c c3 da b3 . . . jp 0b3e5h ;052f c3 e5 b3 . . . jp 0b66dh ;0532 c3 6d b6 . m . jp 0b68dh ;0535 c3 8d b6 . . . jp 0b6b6h ;0538 c3 b6 b6 . . . l053bh: jp 0b6f8h ;053b c3 f8 b6 . . . l053eh: jp 0b71ch ;053e c3 1c b7 . . . jp 0b76ch ;0541 c3 6c b7 . l . jp 0b7bch ;0544 c3 bc b7 . . . jp 0b8cbh ;0547 c3 cb b8 . . . jp 0b9dfh ;054a c3 df b9 . . . jp 0b9f8h ;054d c3 f8 b9 . . . jp 0ba47h ;0550 c3 47 ba . G . jp 0ba96h ;0553 c3 96 ba . . . jp 0bb2dh ;0556 c3 2d bb . - . jp 0bb44h ;0559 c3 44 bb . D . jp 0bb68h ;055c c3 68 bb . h . jp 0bc18h ;055f c3 18 bc . . . jp 0bc36h ;0562 c3 36 bc . 6 . jp 0bc3eh ;0565 c3 3e bc . > . jp 0bd46h ;0568 c3 46 bd . F . jp 0bd7ch ;056b c3 7c bd . | . jp 0bdafh ;056e c3 af bd . . . jp 0bdd4h ;0571 c3 d4 bd . . . jp 0bdfdh ;0574 c3 fd bd . . . jp 0be9eh ;0577 c3 9e be . . . l057ah: jp 0bf45h ;057a c3 45 bf . E . jp 0bf8bh ;057d c3 8b bf . . . jp 0bfb9h ;0580 c3 b9 bf . . . jp 0bfe0h ;0583 c3 e0 bf . . . jp 0c014h ;0586 c3 14 c0 . . . jp 0c0a0h ;0589 c3 a0 c0 . . . jp 0b3e1h ;058c c3 e1 b3 . . . push bc ;058f c5 . ld c,(hl) ;0590 4e N ld b,000h ;0591 06 00 . . ex de,hl ;0593 eb . ld e,(hl) ;0594 5e ^ inc hl ;0595 23 # ld d,(hl) ;0596 56 V inc hl ;0597 23 # ld (0ca0bh),de ;0598 ed 53 0b ca . S . . ld a,e ;059c 7b { ld (0ca0fh),a ;059d 32 0f ca 2 . . ld e,d ;05a0 5a Z ld d,(hl) ;05a1 56 V ld (0ca0dh),de ;05a2 ed 53 0d ca . S . . ld hl,0b38bh ;05a6 21 8b b3 ! . . push hl ;05a9 e5 . ld hl,0b300h ;05aa 21 00 b3 ! . . add hl,bc ;05ad 09 . add hl,bc ;05ae 09 . add hl,bc ;05af 09 . jp (hl) ;05b0 e9 . ex de,hl ;05b1 eb . pop hl ;05b2 e1 . ld (hl),e ;05b3 73 s inc hl ;05b4 23 # ld (hl),d ;05b5 72 r ret ;05b6 c9 . ld a,(0ca0fh) ;05b7 3a 0f ca : . . cp 004h ;05ba fe 04 . . jr nz,l05f9h ;05bc 20 3b ; ld ix,0c0c0h ;05be dd 21 c0 c0 . ! . . ld c,005h ;05c2 0e 05 . . l05c4h: push ix ;05c4 dd e5 . . ld de,(0ca0dh) ;05c6 ed 5b 0d ca . [ . . ld b,004h ;05ca 06 04 . . l05cch: ld a,(de) ;05cc 1a . cp (ix+000h) ;05cd dd be 00 . . . jr nz,l05ech ;05d0 20 1a . inc ix ;05d2 dd 23 . # inc de ;05d4 13 . djnz l05cch ;05d5 10 f5 . . pop hl ;05d7 e1 . ld (0c972h),hl ;05d8 22 72 c9 " r . call 0b9f8h ;05db cd f8 b9 . . . call 0b414h ;05de cd 14 b4 . . . call 0ba47h ;05e1 cd 47 ba . G . call 0b3f1h ;05e4 cd f1 b3 . . . ld hl,0c972h ;05e7 21 72 c9 ! r . jr l05ffh ;05ea 18 13 . . l05ech: pop ix ;05ec dd e1 . . ld e,(ix+01ch) ;05ee dd 5e 1c . ^ . ld d,(ix+01dh) ;05f1 dd 56 1d . V . add ix,de ;05f4 dd 19 . . dec c ;05f6 0d . jr nz,l05c4h ;05f7 20 cb . l05f9h: ld hl,00000h ;05f9 21 00 00 ! . . ld (0c972h),hl ;05fc 22 72 c9 " r . l05ffh: ret ;05ff c9 . ld hl,(0ca0bh) ;0600 2a 0b ca * . . ld (0ca06h),hl ;0603 22 06 ca " . . ret ;0606 c9 . ld hl,00000h ;0607 21 00 00 ! . . ret ;060a c9 . ld c,004h ;060b 0e 04 . . jr l062dh ;060d 18 1e . . ld c,006h ;060f 0e 06 . . jr l062dh ;0611 18 1a . . ld c,008h ;0613 0e 08 . . jr l062dh ;0615 18 16 . . ld c,00ah ;0617 0e 0a . . jr l062dh ;0619 18 12 . . ld c,00ch ;061b 0e 0c . . jr l062dh ;061d 18 0e . . ld c,00eh ;061f 0e 0e . . jr l062dh ;0621 18 0a . . ld c,010h ;0623 0e 10 . . jr l062dh ;0625 18 06 . . ld c,012h ;0627 0e 12 . . jr l062dh ;0629 18 02 . . ld c,014h ;062b 0e 14 . . l062dh: ld hl,(0c972h) ;062d 2a 72 c9 * r . push hl ;0630 e5 . ld b,000h ;0631 06 00 . . add hl,bc ;0633 09 . ld e,(hl) ;0634 5e ^ inc hl ;0635 23 # ld d,(hl) ;0636 56 V pop hl ;0637 e1 . add hl,de ;0638 19 . jp (hl) ;0639 e9 . ld a,001h ;063a 3e 01 > . ld (0c9dbh),a ;063c 32 db c9 2 . . ld hl,0ca33h ;063f 21 33 ca ! 3 . ld (0c9bbh),hl ;0642 22 bb c9 " . . ret ;0645 c9 . ld hl,(0c987h) ;0646 2a 87 c9 * . . ld (0c978h),hl ;0649 22 78 c9 " x . ld de,(0c9bbh) ;064c ed 5b bb c9 . [ . . ld hl,(0c97eh) ;0650 2a 7e c9 * ~ . add hl,hl ;0653 29 ) add hl,de ;0654 19 . ld (0c9c3h),hl ;0655 22 c3 c9 " . . ld hl,(0c980h) ;0658 2a 80 c9 * . . add hl,hl ;065b 29 ) add hl,de ;065c 19 . ld (0c976h),hl ;065d 22 76 c9 " v . call 0b63bh ;0660 cd 3b b6 . ; . ret ;0663 c9 . di ;0664 f3 . ld a,(0f53eh) ;0665 3a 3e f5 : > . ld (0cbc4h),a ;0668 32 c4 cb 2 . . and 0f3h ;066b e6 f3 . . ld (0f53eh),a ;066d 32 3e f5 2 > . out (004h),a ;0670 d3 04 . . ld a,(0f001h) ;0672 3a 01 f0 : . . ld (0cbc3h),a ;0675 32 c3 cb 2 . . or 009h ;0678 f6 09 . . ld (0f001h),a ;067a 32 01 f0 2 . . out (000h),a ;067d d3 00 . . xor a ;067f af . ld (0c9dbh),a ;0680 32 db c9 2 . . call 0b4eeh ;0683 cd ee b4 . . . ei ;0686 fb . ret ;0687 c9 . l0688h: ld a,0ffh ;0688 3e ff > . call 0b4c7h ;068a cd c7 b4 . . . ld hl,(0c982h) ;068d 2a 82 c9 * . . xor a ;0690 af . call 0b4c7h ;0691 cd c7 b4 . . . ld a,(0c9dbh) ;0694 3a db c9 : . . and 004h ;0697 e6 04 . . jr nz,l069fh ;0699 20 04 . ld a,h ;069b 7c | or l ;069c b5 . jr nz,l0688h ;069d 20 e9 . l069fh: ret ;069f c9 . di ;06a0 f3 . ld hl,(0c9bbh) ;06a1 2a bb c9 * . . ld (0c974h),hl ;06a4 22 74 c9 " t . ld a,(0c9dbh) ;06a7 3a db c9 : . . and 004h ;06aa e6 04 . . jr nz,l06ceh ;06ac 20 20 ld a,001h ;06ae 3e 01 > . ld (0c97dh),a ;06b0 32 7d c9 2 } . ld a,080h ;06b3 3e 80 > . ld (0c97ch),a ;06b5 32 7c c9 2 | . ld hl,0f001h ;06b8 21 01 f0 ! . . res 1,(hl) ;06bb cb 8e . . set 2,(hl) ;06bd cb d6 . . ld a,(hl) ;06bf 7e ~ out (000h),a ;06c0 d3 00 . . ld hl,0f53eh ;06c2 21 3e f5 ! > . set 2,(hl) ;06c5 cb d6 . . set 3,(hl) ;06c7 cb de . . ld a,(hl) ;06c9 7e ~ out (004h),a ;06ca d3 04 . . in a,(003h) ;06cc db 03 . . l06ceh: ei ;06ce fb . ret ;06cf c9 . ld a,(0c9dbh) ;06d0 3a db c9 : . . and 004h ;06d3 e6 04 . . jr nz,l06ech ;06d5 20 15 . call 0b4e0h ;06d7 cd e0 b4 . . . ld a,(0cbc4h) ;06da 3a c4 cb : . . ld (0f53eh),a ;06dd 32 3e f5 2 > . out (004h),a ;06e0 d3 04 . . ld a,(0cbc3h) ;06e2 3a c3 cb : . . ld (0f001h),a ;06e5 32 01 f0 2 . . out (000h),a ;06e8 d3 00 . . in a,(003h) ;06ea db 03 . . l06ech: ret ;06ec c9 . ld b,a ;06ed 47 G l06eeh: ld a,(0c9dbh) ;06ee 3a db c9 : . . and 004h ;06f1 e6 04 . . ret nz ;06f3 c0 . in a,(005h) ;06f4 db 05 . . xor b ;06f6 a8 . bit 1,a ;06f7 cb 4f . O ret z ;06f9 c8 . ld a,h ;06fa 7c | or l ;06fb b5 . jr z,l06ffh ;06fc 28 01 ( . dec hl ;06fe 2b + l06ffh: push hl ;06ff e5 . call 0b647h ;0700 cd 47 b6 . G . pop hl ;0703 e1 . jr l06eeh ;0704 18 e8 . . ld hl,0c9dch ;0706 21 dc c9 Source start ld a,i ;0709 ed 57 . W ld d,a ;070b 57 W ld e,0f0h ;070c 1e f0 . . ld bc,0000ah ;070e 01 0a 00 Copy 10 bytes ldir ;0711 ed b0 . . ret ;0713 c9 . ld a,i ;0714 ed 57 . W ld h,a ;0716 67 g ld l,0f0h ;0717 2e f0 . . push hl ;0719 e5 . ld de,0c9dch ;071a 11 dc c9 . . . ld bc,0000ah ;071d 01 0a 00 Copy 10 bytes ldir ;0720 ed b0 . . ld hl,0b506h ;0722 21 06 b5 ! . . pop de ;0725 d1 . ld bc,0000ah ;0726 01 0a 00 Copy 10 bytes ldir ;0729 ed b0 Copy 10 bytes ret ;072b c9 . ld (bc),a ;072c 02 . or (hl) ;072d b6 . rra ;072e 1f . or (hl) ;072f b6 . djnz $-73 ;0730 10 b5 . . jp nz,025b5h ;0732 c2 b5 25 . . % or (hl) ;0735 b6 . push af ;0736 f5 . push hl ;0737 e5 . push de ;0738 d5 . in a,(002h) ;0739 db 02 . . ld l,a ;073b 6f o in a,(003h) ;073c db 03 . . ld h,a ;073e 67 g ld a,(0f001h) ;073f 3a 01 f0 : . . xor 006h ;0742 ee 06 . . ld (0f001h),a ;0744 32 01 f0 2 . . out (000h),a ;0747 d3 00 . . ld de,(0c97ah) ;0749 ed 5b 7a c9 . [ z . ld (0c97ah),hl ;074d 22 7a c9 " z . ld a,(0c97dh) ;0750 3a 7d c9 : } . or a ;0753 b7 . jr nz,l0796h ;0754 20 40 @ or a ;0756 b7 . sbc hl,de ;0757 ed 52 . R jr c,l0761h ;0759 38 06 8 . ld a,(0c97ch) ;075b 3a 7c c9 : | . or a ;075e b7 . jr z,l079ch ;075f 28 3b ( ; l0761h: ld de,(0c978h) ;0761 ed 5b 78 c9 . [ x . or a ;0765 b7 . sbc hl,de ;0766 ed 52 . R jr nc,l079ch ;0768 30 32 0 2 l076ah: ld de,(0c97ah) ;076a ed 5b 7a c9 . [ z . ld hl,(0c974h) ;076e 2a 74 c9 * t . ld (hl),e ;0771 73 s inc hl ;0772 23 # ld (hl),d ;0773 72 r inc hl ;0774 23 # ld (0c974h),hl ;0775 22 74 c9 " t . ld de,(0c976h) ;0778 ed 5b 76 c9 . [ v . or a ;077c b7 . sbc hl,de ;077d ed 52 . R jr nc,l078ch ;077f 30 0b 0 . ld a,001h ;0781 3e 01 > . l0783h: ld (0c97ch),a ;0783 32 7c c9 2 | . l0786h: pop de ;0786 d1 . pop hl ;0787 e1 . pop af ;0788 f1 . ei ;0789 fb . reti ;078a ed 4d . M l078ch: ld hl,0c9dbh ;078c 21 db c9 ! . . set 1,(hl) ;078f cb ce . . call 0b4aah ;0791 cd aa b4 . . . jr l0786h ;0794 18 f0 . . l0796h: xor a ;0796 af . ld (0c97dh),a ;0797 32 7d c9 2 } . jr l076ah ;079a 18 ce . . l079ch: call 0b591h ;079c cd 91 b5 . . . l079fh: jr nc,l0786h ;079f 30 e5 0 . ld hl,(0c9bbh) ;07a1 2a bb c9 * . . ld (0c974h),hl ;07a4 22 74 c9 " t . ld a,(0f001h) ;07a7 3a 01 f0 : . . bit 2,a ;07aa cb 57 . W jr z,l076ah ;07ac 28 bc ( . ld a,001h ;07ae 3e 01 > . ld (0c97dh),a ;07b0 32 7d c9 2 } . ld a,080h ;07b3 3e 80 > . jr l0783h ;07b5 18 cc . . ld hl,(0c974h) ;07b7 2a 74 c9 * t . ld de,(0c9c3h) ;07ba ed 5b c3 c9 . [ . . or a ;07be b7 . sbc hl,de ;07bf ed 52 . R jr nc,l07cbh ;07c1 30 08 0 . ld hl,0c9dbh ;07c3 21 db c9 ! . . set 4,(hl) ;07c6 cb e6 . . scf ;07c8 37 7 jr l07e7h ;07c9 18 1c . . l07cbh: ld hl,0c9dbh ;07cb 21 db c9 ! . . set 0,(hl) ;07ce cb c6 . . ld a,(0c984h) ;07d0 3a 84 c9 : . . inc a ;07d3 3c < ld (0c97ch),a ;07d4 32 7c c9 2 | . ld a,003h ;07d7 3e 03 > . ld (0c97dh),a ;07d9 32 7d c9 2 } . ld hl,0f53eh ;07dc 21 3e f5 ! > . res 2,(hl) ;07df cb 96 . . ld a,(hl) ;07e1 7e ~ out (004h),a ;07e2 d3 04 . . in a,(003h) ;07e4 db 03 . . or a ;07e6 b7 . l07e7h: ret ;07e7 c9 . push af ;07e8 f5 . ld a,004h ;07e9 3e 04 > . out (001h),a ;07eb d3 01 . . ld a,(0c97ch) ;07ed 3a 7c c9 : | . dec a ;07f0 3d = jp m,0b5d5h ;07f1 fa d5 b5 . . . ld (0c97ch),a ;07f4 32 7c c9 2 | . l07f7h: pop af ;07f7 f1 . ei ;07f8 fb . reti ;07f9 ed 4d . M ld a,(0c97dh) ;07fb 3a 7d c9 : } . cp 001h ;07fe fe 01 . . jr nz,l0809h ;0800 20 07 . ld a,080h ;0802 3e 80 > . ld (0c97ch),a ;0804 32 7c c9 2 | . jr l07f7h ;0807 18 ee . . l0809h: push hl ;0809 e5 . push de ;080a d5 . ld a,(0c97dh) ;080b 3a 7d c9 : } . cp 003h ;080e fe 03 . . jr nz,l0821h ;0810 20 0f . ld hl,0f53eh ;0812 21 3e f5 ! > . res 3,(hl) ;0815 cb 9e . . ld a,(hl) ;0817 7e ~ out (004h),a ;0818 d3 04 . . ld hl,0c9dbh ;081a 21 db c9 ! . . set 3,(hl) ;081d cb de . . jr l0824h ;081f 18 03 . . l0821h: call 0b591h ;0821 cd 91 b5 . . . l0824h: pop de ;0824 d1 . pop hl ;0825 e1 . jr l07f7h ;0826 18 cf . . call 0ee60h ;0828 cd 60 ee . ` . di ;082b f3 . push af ;082c f5 . ld a,(0f4d6h) ;082d 3a d6 f4 : . . cp 0c0h ;0830 fe c0 . . jr nc,l0842h ;0832 30 0e 0 . push hl ;0834 e5 . push de ;0835 d5 . push bc ;0836 c5 . call 0b4aah ;0837 cd aa b4 . . . ld hl,0c9dbh ;083a 21 db c9 ! . . set 2,(hl) ;083d cb d6 . . pop bc ;083f c1 . pop de ;0840 d1 . pop hl ;0841 e1 . l0842h: pop af ;0842 f1 . ei ;0843 fb . ret ;0844 c9 . push hl ;0845 e5 . ld hl,(0c9deh) ;0846 2a de c9 * . . jr l084fh ;0849 18 04 . . push hl ;084b e5 . ld hl,(0c9e4h) ;084c 2a e4 c9 * . . l084fh: push de ;084f d5 . push bc ;0850 c5 . push af ;0851 f5 . push hl ;0852 e5 . call 0b4aah ;0853 cd aa b4 . . . ld hl,0c9dbh ;0856 21 db c9 ! . . set 2,(hl) ;0859 cb d6 . . pop hl ;085b e1 . pop af ;085c f1 . pop bc ;085d c1 . pop de ;085e d1 . ex (sp),hl ;085f e3 . ret ;0860 c9 . ld hl,(0ef41h) ;0861 2a 41 ef * A . ld de,(0ef8fh) ;0864 ed 5b 8f ef . [ . . add hl,de ;0868 19 . ld (0f77ch),hl ;0869 22 7c f7 " | . ret ;086c c9 . ld a,(0ef40h) ;086d 3a 40 ef : @ . or a ;0870 b7 . jr z,l0892h ;0871 28 1f ( . ld hl,(0f77ch) ;0873 2a 7c f7 * | . ld de,(0ef8fh) ;0876 ed 5b 8f ef . [ . . sbc hl,de ;087a ed 52 . R jr nz,l0892h ;087c 20 14 . ld hl,0b666h ;087e 21 66 b6 ! f . push hl ;0881 e5 . ld hl,(00001h) ;0882 2a 01 00 * . . ld de,0007bh ;0885 11 7b 00 . { . add hl,de ;0888 19 . ld c,000h ;0889 0e 00 . . jp (hl) ;088b e9 . ei ;088c fb . ld hl,0c9dbh ;088d 21 db c9 ! . . set 4,(hl) ;0890 cb e6 . . l0892h: ret ;0892 c9 . ld a,(0ca0ah) ;0893 3a 0a ca : . . or a ;0896 b7 . jr z,l08b1h ;0897 28 18 ( . ld a,(0c9d2h) ;0899 3a d2 c9 : . . ld b,a ;089c 47 G ld hl,(0c9ebh) ;089d 2a eb c9 * . . ld de,00000h ;08a0 11 00 00 . . . l08a3h: srl h ;08a3 cb 3c . < rr l ;08a5 cb 1d . . rl e ;08a7 cb 13 . . rl d ;08a9 cb 12 . . djnz l08a3h ;08ab 10 f6 . . ld (0c9ebh),de ;08ad ed 53 eb c9 . S . . l08b1h: or a ;08b1 b7 . ret ;08b2 c9 . ld de,(0c9ebh) ;08b3 ed 5b eb c9 . [ . . ld hl,(0c9d7h) ;08b7 2a d7 c9 * . . ld b,000h ;08ba 06 00 . . l08bch: ld c,(hl) ;08bc 4e N inc hl ;08bd 23 # ld a,(hl) ;08be 7e ~ inc hl ;08bf 23 # or a ;08c0 b7 . jr z,l08dah ;08c1 28 17 ( . cp e ;08c3 bb . jr nz,l08cah ;08c4 20 04 . ld a,c ;08c6 79 y cp d ;08c7 ba . jr z,l08cdh ;08c8 28 03 ( . l08cah: inc b ;08ca 04 . jr l08bch ;08cb 18 ef . . l08cdh: ld e,b ;08cd 58 X ld d,000h ;08ce 16 00 . . ld hl,(0c9d9h) ;08d0 2a d9 c9 * . . add hl,de ;08d3 19 . ld a,(hl) ;08d4 7e ~ ld (0c9efh),a ;08d5 32 ef c9 2 . . or a ;08d8 b7 . ret ;08d9 c9 . l08dah: scf ;08da 37 7 ret ;08db c9 . ld hl,(0c9ebh) ;08dc 2a eb c9 * . . ld a,(0c9d2h) ;08df 3a d2 c9 : . . l08e2h: sla l ;08e2 cb 25 . % rl h ;08e4 cb 14 . . inc a ;08e6 3c < cp 010h ;08e7 fe 10 . . jr nz,l08e2h ;08e9 20 f7 . ld de,00000h ;08eb 11 00 00 . . . ld bc,0ffffh ;08ee 01 ff ff . . . ld a,(0c9d2h) ;08f1 3a d2 c9 : . . l08f4h: push af ;08f4 f5 . sla l ;08f5 cb 25 . % rl h ;08f7 cb 14 . . jr c,l0909h ;08f9 38 0e 8 . sra c ;08fb cb 29 . ) rl e ;08fd cb 13 . . ld b,000h ;08ff 06 00 . . ld a,d ;0901 7a z and 001h ;0902 e6 01 . . jr nz,l0915h ;0904 20 0f . dec b ;0906 05 . jr l0915h ;0907 18 0c . . l0909h: sra b ;0909 cb 28 . ( rl d ;090b cb 12 . . ld c,000h ;090d 0e 00 . . ld a,e ;090f 7b { and 001h ;0910 e6 01 . . jr nz,l0915h ;0912 20 01 . dec c ;0914 0d . l0915h: pop af ;0915 f1 . dec a ;0916 3d = jr nz,l08f4h ;0917 20 db . ld (0c9ebh),de ;0919 ed 53 eb c9 . S . . ret ;091d c9 . ld a,(0ca0bh) ;091e 3a 0b ca : . . ld d,a ;0921 57 W ld e,000h ;0922 1e 00 . . ld hl,(0c9d9h) ;0924 2a d9 c9 * . . l0927h: ld a,(hl) ;0927 7e ~ or a ;0928 b7 . jr z,l093eh ;0929 28 13 ( . cp d ;092b ba . jr z,l0932h ;092c 28 04 ( . inc hl ;092e 23 # inc e ;092f 1c . jr l0927h ;0930 18 f5 . . l0932h: sla e ;0932 cb 23 . # ld d,000h ;0934 16 00 . . ld hl,(0c9d7h) ;0936 2a d7 c9 * . . add hl,de ;0939 19 . ld e,(hl) ;093a 5e ^ inc hl ;093b 23 # ld d,(hl) ;093c 56 V ret ;093d c9 . l093eh: ld de,0ffffh ;093e 11 ff ff . . . ret ;0941 c9 . ld hl,(0c9e9h) ;0942 2a e9 c9 * . . ld de,00000h ;0945 11 00 00 . . . xor a ;0948 af . ld (0c9edh),a ;0949 32 ed c9 2 . . ld a,(0c9feh) ;094c 3a fe c9 : . . ld b,a ;094f 47 G ld a,(0c9cfh) ;0950 3a cf c9 : . . l0953h: rl l ;0953 cb 15 . . rl h ;0955 cb 14 . . inc a ;0957 3c < cp 010h ;0958 fe 10 . . jr nz,l0953h ;095a 20 f7 . ld a,(0c9cfh) ;095c 3a cf c9 : . . l095fh: push af ;095f f5 . ld c,000h ;0960 0e 00 . . rl l ;0962 cb 15 . . rl h ;0964 cb 14 . . rl c ;0966 cb 11 . . sra b ;0968 cb 28 . ( rl c ;096a cb 11 . . push hl ;096c e5 . push bc ;096d c5 . ld b,000h ;096e 06 00 . . ld hl,0c9d3h ;0970 21 d3 c9 ! . . add hl,bc ;0973 09 . ld a,(hl) ;0974 7e ~ pop bc ;0975 c1 . ld c,a ;0976 4f O ld hl,0c9edh ;0977 21 ed c9 ! . . l097ah: sra b ;097a cb 28 . ( rl e ;097c cb 13 . . rl d ;097e cb 12 . . inc (hl) ;0980 34 4 dec c ;0981 0d . jr nz,l097ah ;0982 20 f6 . pop hl ;0984 e1 . ld a,b ;0985 78 x cpl ;0986 2f / ld b,a ;0987 47 G pop af ;0988 f1 . dec a ;0989 3d = jr nz,l095fh ;098a 20 d3 . ld (0c9ebh),de ;098c ed 53 eb c9 . S . . or a ;0990 b7 . ret ;0991 c9 . ld a,(0ca0fh) ;0992 3a 0f ca : . . push af ;0995 f5 . ld a,(0c9fah) ;0996 3a fa c9 : . . ld b,a ;0999 47 G ld ix,(0c995h) ;099a dd 2a 95 c9 . * . . bit 0,(ix+000h) ;099e dd cb 00 46 . . . F jr z,l09a5h ;09a2 28 01 ( . dec b ;09a4 05 . l09a5h: ld ix,(0c997h) ;09a5 dd 2a 97 c9 . * . . bit 0,(ix+000h) ;09a9 dd cb 00 46 . . . F jr z,l09b0h ;09ad 28 01 ( . dec b ;09af 05 . l09b0h: ld a,b ;09b0 78 x or a ;09b1 b7 . jp m,0b7b9h ;09b2 fa b9 b7 . . . ld (0ca0fh),a ;09b5 32 0f ca 2 . . ld (0c9fah),a ;09b8 32 fa c9 2 . . ld hl,(0ca0dh) ;09bb 2a 0d ca * . . ld e,a ;09be 5f _ ld d,000h ;09bf 16 00 . . add hl,de ;09c1 19 . push hl ;09c2 e5 . call 0b7bch ;09c3 cd bc b7 . . . pop hl ;09c6 e1 . ld a,d ;09c7 7a z or a ;09c8 b7 . jp m,0b7a9h ;09c9 fa a9 b7 . . . cp (hl) ;09cc be . jr nz,l09dfh ;09cd 20 10 . inc hl ;09cf 23 # ld a,e ;09d0 7b { or a ;09d1 b7 . jp m,0b7b3h ;09d2 fa b3 b7 . . . cp (hl) ;09d5 be . jr nz,l09dfh ;09d6 20 07 . or a ;09d8 b7 . l09d9h: pop bc ;09d9 c1 . ld a,b ;09da 78 x ld (0ca0fh),a ;09db 32 0f ca 2 . . ret ;09de c9 . l09dfh: scf ;09df 37 7 jr l09d9h ;09e0 18 f7 . . ld de,(0c995h) ;09e2 ed 5b 95 c9 . [ . . ld hl,(0c997h) ;09e6 2a 97 c9 * . . ld ix,(0c997h) ;09e9 dd 2a 97 c9 . * . . bit 5,(ix+000h) ;09ed dd cb 00 6e . . . n jr z,l09f4h ;09f1 28 01 ( . ex de,hl ;09f3 eb . l09f4h: push de ;09f4 d5 . push hl ;09f5 e5 . pop ix ;09f6 dd e1 . . call 0b80dh ;09f8 cd 0d b8 . . . ld b,a ;09fb 47 G pop ix ;09fc dd e1 . . bit 5,(ix+000h) ;09fe dd cb 00 6e . . . n jr z,l0a21h ;0a02 28 1d ( . ld hl,0ca0fh ;0a04 21 0f ca ! . . ld a,(hl) ;0a07 7e ~ ld e,a ;0a08 5f _ ld d,000h ;0a09 16 00 . . push af ;0a0b f5 . inc (hl) ;0a0c 34 4 ld hl,(0ca0dh) ;0a0d 2a 0d ca * . . add hl,de ;0a10 19 . push hl ;0a11 e5 . ld a,(hl) ;0a12 7e ~ push af ;0a13 f5 . ld (hl),b ;0a14 70 p call 0b80dh ;0a15 cd 0d b8 . . . pop af ;0a18 f1 . pop hl ;0a19 e1 . ld (hl),a ;0a1a 77 w pop af ;0a1b f1 . ld (0ca0fh),a ;0a1c 32 0f ca 2 . . jr l0a24h ;0a1f 18 03 . . l0a21h: call 0b80dh ;0a21 cd 0d b8 . . . l0a24h: ld ix,(0c995h) ;0a24 dd 2a 95 c9 . * . . ld iy,(0c997h) ;0a28 fd 2a 97 c9 . * . . ld d,(ix+001h) ;0a2c dd 56 01 . V . ld e,(iy+001h) ;0a2f fd 5e 01 . ^ . ret ;0a32 c9 . bit 0,(ix+000h) ;0a33 dd cb 00 46 . . . F jr nz,l0a3fh ;0a37 20 06 . ld a,0ffh ;0a39 3e ff > . ld (ix+001h),a ;0a3b dd 77 01 . w . ret ;0a3e c9 . l0a3fh: ld h,000h ;0a3f 26 00 & . ld a,(0ca0fh) ;0a41 3a 0f ca : . . ld c,a ;0a44 4f O ld b,000h ;0a45 06 00 . . ld iy,(0ca0dh) ;0a47 fd 2a 0d ca . * . . bit 2,(ix+000h) ;0a4b dd cb 00 56 . . . V jr z,l0a55h ;0a4f 28 04 ( . add iy,bc ;0a51 fd 09 . . dec iy ;0a53 fd 2b . + l0a55h: push hl ;0a55 e5 . push ix ;0a56 dd e5 . . pop hl ;0a58 e1 . ld de,00008h ;0a59 11 08 00 . . . add hl,de ;0a5c 19 . ld e,(ix+007h) ;0a5d dd 5e 07 . ^ . ld d,000h ;0a60 16 00 . . bit 2,(ix+000h) ;0a62 dd cb 00 56 . . . V jr z,l0a6ah ;0a66 28 02 ( . add hl,de ;0a68 19 . dec hl ;0a69 2b + l0a6ah: ex de,hl ;0a6a eb . ld b,l ;0a6b 45 E pop hl ;0a6c e1 . l0a6dh: ld a,c ;0a6d 79 y or a ;0a6e b7 . jr z,l0ad3h ;0a6f 28 62 ( b push bc ;0a71 c5 . push hl ;0a72 e5 . ld b,(iy+000h) ;0a73 fd 46 00 . F . bit 1,(ix+000h) ;0a76 dd cb 00 4e . . . N jr z,l0a8ch ;0a7a 28 10 ( . ld l,(ix+002h) ;0a7c dd 6e 02 . n . ld h,(ix+003h) ;0a7f dd 66 03 . f . ld a,b ;0a82 78 x ld b,000h ;0a83 06 00 . . l0a85h: cp (hl) ;0a85 be . jr z,l0a8ch ;0a86 28 04 ( . inc hl ;0a88 23 # inc b ;0a89 04 . jr l0a85h ;0a8a 18 f9 . . l0a8ch: ld a,(de) ;0a8c 1a . call 0c0a0h ;0a8d cd a0 c0 . . . l0a90h: ld a,h ;0a90 7c | or a ;0a91 b7 . jr nz,l0a9ah ;0a92 20 06 . ld a,l ;0a94 7d } cp (ix+006h) ;0a95 dd be 06 . . . jr c,l0aach ;0a98 38 12 8 . l0a9ah: ld a,l ;0a9a 7d } sub (ix+006h) ;0a9b dd 96 06 . . . ld l,a ;0a9e 6f o ld a,h ;0a9f 7c | sbc a,000h ;0aa0 de 00 . . ld h,a ;0aa2 67 g bit 4,(ix+000h) ;0aa3 dd cb 00 66 . . . f jr z,l0a90h ;0aa7 28 e7 ( . inc hl ;0aa9 23 # jr l0a90h ;0aaa 18 e4 . . l0aach: ld a,l ;0aac 7d } pop hl ;0aad e1 . add a,h ;0aae 84 . ld l,(ix+006h) ;0aaf dd 6e 06 . n . cp l ;0ab2 bd . jr c,l0ab6h ;0ab3 38 01 8 . sub l ;0ab5 95 . l0ab6h: ld h,a ;0ab6 67 g pop bc ;0ab7 c1 . dec c ;0ab8 0d . inc iy ;0ab9 fd 23 . # bit 2,(ix+000h) ;0abb dd cb 00 56 . . . V jr z,l0ac5h ;0abf 28 04 ( . dec iy ;0ac1 fd 2b . + dec iy ;0ac3 fd 2b . + l0ac5h: dec b ;0ac5 05 . jr z,l0a55h ;0ac6 28 8d ( . inc de ;0ac8 13 . bit 2,(ix+000h) ;0ac9 dd cb 00 56 . . . V jr z,l0ad1h ;0acd 28 02 ( . dec de ;0acf 1b . dec de ;0ad0 1b . l0ad1h: jr l0a6dh ;0ad1 18 9a . . l0ad3h: bit 3,(ix+000h) ;0ad3 dd cb 00 5e . . . ^ jr z,l0ae2h ;0ad7 28 09 ( . ld a,h ;0ad9 7c | or a ;0ada b7 . jr z,l0ae2h ;0adb 28 05 ( . ld a,(ix+006h) ;0add dd 7e 06 . ~ . sub h ;0ae0 94 . ld h,a ;0ae1 67 g l0ae2h: ld e,(ix+004h) ;0ae2 dd 5e 04 . ^ . ld d,(ix+005h) ;0ae5 dd 56 05 . V . ld l,h ;0ae8 6c l ld h,000h ;0ae9 26 00 & . add hl,de ;0aeb 19 . ld a,(hl) ;0aec 7e ~ ld (ix+001h),a ;0aed dd 77 01 . w . ret ;0af0 c9 . ld a,(0ca06h) ;0af1 3a 06 ca : . . and 002h ;0af4 e6 02 . . jr nz,l0afah ;0af6 20 02 . xor a ;0af8 af . ret ;0af9 c9 . l0afah: ld hl,0ca11h ;0afa 21 11 ca ! . . ld a,008h ;0afd 3e 08 > . l0affh: ld (hl),000h ;0aff 36 00 6 . inc hl ;0b01 23 # dec a ;0b02 3d = jr nz,l0affh ;0b03 20 fa . ld a,(0c9cfh) ;0b05 3a cf c9 : . . and 001h ;0b08 e6 01 . . ld a,(0c9feh) ;0b0a 3a fe c9 : . . jr nz,l0b10h ;0b0d 20 01 . cpl ;0b0f 2f / l0b10h: ld c,a ;0b10 4f O ld a,(0c9cfh) ;0b11 3a cf c9 : . . ld b,a ;0b14 47 G ld ix,(0c9c7h) ;0b15 dd 2a c7 c9 . * . . ld e,b ;0b19 58 X ld d,000h ;0b1a 16 00 . . add ix,de ;0b1c dd 19 . . dec ix ;0b1e dd 2b . + ld de,(0c9e9h) ;0b20 ed 5b e9 c9 . [ . . l0b24h: xor a ;0b24 af . srl d ;0b25 cb 3a . : rr e ;0b27 cb 1b . . rl a ;0b29 cb 17 . . sra c ;0b2b cb 29 . ) rl a ;0b2d cb 17 . . ld l,a ;0b2f 6f o ld a,c ;0b30 79 y cpl ;0b31 2f / ld c,a ;0b32 4f O push bc ;0b33 c5 . sla l ;0b34 cb 25 . % ld h,000h ;0b36 26 00 & . ld bc,0ca11h ;0b38 01 11 ca . . . add hl,bc ;0b3b 09 . ld a,(hl) ;0b3c 7e ~ or a ;0b3d b7 . ld a,(ix+000h) ;0b3e dd 7e 00 . ~ . dec ix ;0b41 dd 2b . + jr z,l0b48h ;0b43 28 03 ( . cp (hl) ;0b45 be . jr nc,l0b49h ;0b46 30 01 0 . l0b48h: ld (hl),a ;0b48 77 w l0b49h: inc hl ;0b49 23 # cp (hl) ;0b4a be . jr c,l0b4eh ;0b4b 38 01 8 . ld (hl),a ;0b4d 77 w l0b4eh: pop bc ;0b4e c1 . djnz l0b24h ;0b4f 10 d3 . . ld c,01fh ;0b51 0e 1f . . ld ix,0ca11h ;0b53 dd 21 11 ca . ! . . ld a,(0c98ah) ;0b57 3a 8a c9 : . . ld b,a ;0b5a 47 G l0b5bh: push bc ;0b5b c5 . ld a,(ix+001h) ;0b5c dd 7e 01 . ~ . or a ;0b5f b7 . jr z,l0b7ch ;0b60 28 1a ( . ld a,(ix+000h) ;0b62 dd 7e 00 . ~ . or a ;0b65 b7 . jr z,l0b7ch ;0b66 28 14 ( . call 0c0a0h ;0b68 cd a0 c0 . . . ld b,003h ;0b6b 06 03 . . l0b6dh: sla l ;0b6d cb 25 . % rl h ;0b6f cb 14 . . jr c,l0b7bh ;0b71 38 08 8 . djnz l0b6dh ;0b73 10 f8 . . ld a,h ;0b75 7c | cp (ix+001h) ;0b76 dd be 01 . . . jr l0b7ch ;0b79 18 01 . . l0b7bh: or a ;0b7b b7 . l0b7ch: pop bc ;0b7c c1 . rl c ;0b7d cb 11 . . inc ix ;0b7f dd 23 . # inc ix ;0b81 dd 23 . # jr nc,l0b5bh ;0b83 30 d6 0 . ld a,c ;0b85 79 y and 00fh ;0b86 e6 0f . . push af ;0b88 f5 . ld c,07fh ;0b89 0e 7f .  ld ix,0ca11h ;0b8b dd 21 11 ca . ! . . ld a,(0c98bh) ;0b8f 3a 8b c9 : . . ld b,a ;0b92 47 G l0b93h: push bc ;0b93 c5 . ld a,(ix+004h) ;0b94 dd 7e 04 . ~ . or a ;0b97 b7 . scf ;0b98 37 7 jr z,l0bb6h ;0b99 28 1b ( . ld a,(ix+001h) ;0b9b dd 7e 01 . ~ . or a ;0b9e b7 . scf ;0b9f 37 7 jr z,l0bb6h ;0ba0 28 14 ( . call 0c0a0h ;0ba2 cd a0 c0 . . . ld b,003h ;0ba5 06 03 . . l0ba7h: sla l ;0ba7 cb 25 . % rl h ;0ba9 cb 14 . . jr c,l0bb5h ;0bab 38 08 8 . djnz l0ba7h ;0bad 10 f8 . . ld a,h ;0baf 7c | cp (ix+004h) ;0bb0 dd be 04 . . . jr l0bb6h ;0bb3 18 01 . . l0bb5h: or a ;0bb5 b7 . l0bb6h: pop bc ;0bb6 c1 . rl c ;0bb7 cb 11 . . inc ix ;0bb9 dd 23 . # inc ix ;0bbb dd 23 . # jr nc,l0b93h ;0bbd 30 d4 0 . ld a,c ;0bbf 79 y xor 003h ;0bc0 ee 03 . . and 07fh ;0bc2 e6 7f .  ld c,a ;0bc4 4f O ld ix,0ca11h ;0bc5 dd 21 11 ca . ! . . ld a,(0c98ch) ;0bc9 3a 8c c9 : . . ld b,a ;0bcc 47 G l0bcdh: push bc ;0bcd c5 . ld a,(ix+005h) ;0bce dd 7e 05 . ~ . or a ;0bd1 b7 . jr z,l0beeh ;0bd2 28 1a ( . ld a,(ix+000h) ;0bd4 dd 7e 00 . ~ . or a ;0bd7 b7 . jr z,l0beeh ;0bd8 28 14 ( . call 0c0a0h ;0bda cd a0 c0 . . . ld b,003h ;0bdd 06 03 . . l0bdfh: sla l ;0bdf cb 25 . % rl h ;0be1 cb 14 . . jr c,l0bedh ;0be3 38 08 8 . djnz l0bdfh ;0be5 10 f8 . . ld a,h ;0be7 7c | cp (ix+005h) ;0be8 dd be 05 . . . jr l0beeh ;0beb 18 01 . . l0bedh: or a ;0bed b7 . l0beeh: pop bc ;0bee c1 . rl c ;0bef cb 11 . . inc ix ;0bf1 dd 23 . # inc ix ;0bf3 dd 23 . # jr nc,l0bcdh ;0bf5 30 d6 0 . sla c ;0bf7 cb 21 . ! sla c ;0bf9 cb 21 . ! sla c ;0bfb cb 21 . ! sla c ;0bfd cb 21 . ! pop af ;0bff f1 . add a,c ;0c00 81 . or a ;0c01 b7 . ret z ;0c02 c8 . scf ;0c03 37 7 ret ;0c04 c9 . ld hl,0c9fah ;0c05 21 fa c9 ! . . ld a,(0c989h) ;0c08 3a 89 c9 : . . or a ;0c0b b7 . jp p,0b9efh ;0c0c f2 ef b9 . . . neg ;0c0f ed 44 . D cp (hl) ;0c11 be . ret z ;0c12 c8 . jr l0c1ch ;0c13 18 07 . . cp (hl) ;0c15 be . jr c,l0c1ah ;0c16 38 02 8 . jr nz,l0c1ch ;0c18 20 02 . l0c1ah: or a ;0c1a b7 . ret ;0c1b c9 . l0c1ch: scf ;0c1c 37 7 ret ;0c1d c9 . ld hl,0ba05h ;0c1e 21 05 ba Source start ld de,0c97eh ;0c21 11 7e c9 Target start ld bc,00017h ;0c24 01 17 00 Copy 23 bytes ldir ;0c27 ed b0 . . jr l0c42h ;0c29 18 17 . . inc d ;0c2b 14 . nop ;0c2c 00 . ret z ;0c2d c8 . nop ;0c2e 00 . sub (hl) ;0c2f 96 . nop ;0c30 00 . ld (bc),a ;0c31 02 . ld h,h ;0c32 64 d nop ;0c33 00 . cp b ;0c34 b8 . dec bc ;0c35 0b . nop ;0c36 00 . ld b,b ;0c37 40 @ inc h ;0c38 24 $ ret nz ;0c39 c0 . ld b,b ;0c3a 40 @ ld b,b ;0c3b 40 @ add a,b ;0c3c 80 . inc d ;0c3d 14 . ld a,(bc) ;0c3e 0a . dec b ;0c3f 05 . ld b,b ;0c40 40 @ ld b,b ;0c41 40 @ l0c42h: ld hl,0c999h ;0c42 21 99 c9 ! . . ld (0c995h),hl ;0c45 22 95 c9 " . . ld hl,0c9aah ;0c48 21 aa c9 ! . . ld (0c997h),hl ;0c4b 22 97 c9 " . . ld hl,0ca1fh ;0c4e 21 1f ca ! . . ld (0c9c5h),hl ;0c51 22 c5 c9 " . . ld a,00eh ;0c54 3e 0e > . ld (0c999h),a ;0c56 32 99 c9 2 . . ld (0c9aah),a ;0c59 32 aa c9 2 . . ld a,00ah ;0c5c 3e 0a > . ld (0c99fh),a ;0c5e 32 9f c9 2 . . ld (0c9b0h),a ;0c61 32 b0 c9 2 . . ld hl,l0100h+1 ;0c64 21 01 01 ! . . ld (0c9a0h),hl ;0c67 22 a0 c9 " . . ld (0c9b1h),hl ;0c6a 22 b1 c9 " . . ld hl,(0c9bbh) ;0c6d 2a bb c9 * . . ld de,00000h ;0c70 11 00 00 . . . add hl,de ;0c73 19 . ld (0c9bdh),hl ;0c74 22 bd c9 " . . xor a ;0c77 af . ld (0c9d0h),a ;0c78 32 d0 c9 2 . . ld (0c9d1h),a ;0c7b 32 d1 c9 2 . . ld hl,l0100h+1 ;0c7e 21 01 01 ! . . ld (0c9d3h),hl ;0c81 22 d3 c9 " . . ld hl,l0202h ;0c84 21 02 02 ! . . ld (0c9d5h),hl ;0c87 22 d5 c9 " . . ld ix,(0c972h) ;0c8a dd 2a 72 c9 . * r . ld de,(0c972h) ;0c8e ed 5b 72 c9 . [ r . ld l,(ix+016h) ;0c92 dd 6e 16 . n . ld h,(ix+017h) ;0c95 dd 66 17 . f . ld (0ca06h),hl ;0c98 22 06 ca " . . ld l,(ix+018h) ;0c9b dd 6e 18 . n . ld h,(ix+019h) ;0c9e dd 66 19 . f . add hl,de ;0ca1 19 . ld (0c9d7h),hl ;0ca2 22 d7 c9 " . . ld l,(ix+01ah) ;0ca5 dd 6e 1a . n . ld h,(ix+01bh) ;0ca8 dd 66 1b . f . add hl,de ;0cab 19 . ld (0c9d9h),hl ;0cac 22 d9 c9 " . . ld (0c99bh),hl ;0caf 22 9b c9 " . . ld (0c99dh),hl ;0cb2 22 9d c9 " . . ld (0c9ach),hl ;0cb5 22 ac c9 " . . ld (0c9aeh),hl ;0cb8 22 ae c9 " . . ret ;0cbb c9 . ld a,(0c98dh) ;0cbc 3a 8d c9 : . . add a,020h ;0cbf c6 20 . ld l,a ;0cc1 6f o ld h,000h ;0cc2 26 00 & . ld (0ca13h),hl ;0cc4 22 13 ca " . . ld a,(0c98dh) ;0cc7 3a 8d c9 : . . ld b,040h ;0cca 06 40 . @ call 0c0a0h ;0ccc cd a0 c0 . . . ld (0ca11h),hl ;0ccf 22 11 ca " . . call 0c062h ;0cd2 cd 62 c0 . b . ld (0c9f4h),a ;0cd5 32 f4 c9 2 . . sub 040h ;0cd8 d6 40 . @ neg ;0cda ed 44 . D ld (0c9f6h),a ;0cdc 32 f6 c9 2 . . ld a,(0c98eh) ;0cdf 3a 8e c9 : . . add a,020h ;0ce2 c6 20 . ld l,a ;0ce4 6f o ld h,000h ;0ce5 26 00 & . ld (0ca13h),hl ;0ce7 22 13 ca " . . ld a,(0c98eh) ;0cea 3a 8e c9 : . . ld b,040h ;0ced 06 40 . @ call 0c0a0h ;0cef cd a0 c0 . . . ld (0ca11h),hl ;0cf2 22 11 ca " . . call 0c062h ;0cf5 cd 62 c0 . b . ld (0c9f5h),a ;0cf8 32 f5 c9 2 . . sub 040h ;0cfb d6 40 . @ neg ;0cfd ed 44 . D ld (0c9f7h),a ;0cff 32 f7 c9 2 . . xor a ;0d02 af . ld (0ca08h),a ;0d03 32 08 ca 2 . . ld (0ca09h),a ;0d06 32 09 ca 2 . . ld hl,(0c9bdh) ;0d09 2a bd c9 * . . ld (0c9c1h),hl ;0d0c 22 c1 c9 " . . ld a,(0c9d0h) ;0d0f 3a d0 c9 : . . or a ;0d12 b7 . ld a,(0c9cdh) ;0d13 3a cd c9 : . . jr z,l0d1ch ;0d16 28 04 ( . ld hl,0c9ceh ;0d18 21 ce c9 ! . . add a,(hl) ;0d1b 86 . l0d1ch: ld (0c9cfh),a ;0d1c 32 cf c9 2 . . xor a ;0d1f af . ld (0ca0ah),a ;0d20 32 0a ca 2 . . ld hl,0c9dbh ;0d23 21 db c9 ! . . res 4,(hl) ;0d26 cb a6 . . ld ix,(0c995h) ;0d28 dd 2a 95 c9 . * . . ld a,(0ca06h) ;0d2c 3a 06 ca : . . and 004h ;0d2f e6 04 . . jr z,l0d39h ;0d31 28 06 ( . set 0,(ix+000h) ;0d33 dd cb 00 c6 . . . . jr l0d3dh ;0d37 18 04 . . l0d39h: res 0,(ix+000h) ;0d39 dd cb 00 86 . . . . l0d3dh: ld ix,(0c997h) ;0d3d dd 2a 97 c9 . * . . ld a,(0ca06h) ;0d41 3a 06 ca : . . and 008h ;0d44 e6 08 . . jr z,l0d4eh ;0d46 28 06 ( . set 0,(ix+000h) ;0d48 dd cb 00 c6 . . . . jr l0d52h ;0d4c 18 04 . . l0d4eh: res 0,(ix+000h) ;0d4e dd cb 00 86 . . . . l0d52h: ret ;0d52 c9 . xor a ;0d53 af . ld (0ca03h),a ;0d54 32 03 ca 2 . . ld (0c9fah),a ;0d57 32 fa c9 2 . . ld (0ca05h),a ;0d5a 32 05 ca 2 . . ld hl,(0c9c1h) ;0d5d 2a c1 c9 * . . ld (0c9bfh),hl ;0d60 22 bf c9 " . . ld hl,(0ca0dh) ;0d63 2a 0d ca * . . ld (0c9fbh),hl ;0d66 22 fb c9 " . . ret ;0d69 c9 . ld hl,0ca09h ;0d6a 21 09 ca ! . . ld a,(0c990h) ;0d6d 3a 90 c9 : . . cp (hl) ;0d70 be . jr c,l0d8ch ;0d71 38 19 8 . jr z,l0d8ch ;0d73 28 17 ( . inc (hl) ;0d75 34 4 ld a,(0ca0ah) ;0d76 3a 0a ca : . . xor 0ffh ;0d79 ee ff . . ld (0ca0ah),a ;0d7b 32 0a ca 2 . . jr nz,l0d8ah ;0d7e 20 0a . ld hl,(0c9c1h) ;0d80 2a c1 c9 * . . ld de,00004h ;0d83 11 04 00 . . . add hl,de ;0d86 19 . ld (0c9c1h),hl ;0d87 22 c1 c9 " . . l0d8ah: or a ;0d8a b7 . ret ;0d8b c9 . l0d8ch: scf ;0d8c 37 7 ret ;0d8d c9 . ld a,(0c9cfh) ;0d8e 3a cf c9 : . . and 001h ;0d91 e6 01 . . ld a,(0c9feh) ;0d93 3a fe c9 : . . jr nz,l0d99h ;0d96 20 01 . cpl ;0d98 2f / l0d99h: ld (0ca00h),a ;0d99 32 00 ca 2 . . ld iy,0c9e9h ;0d9c fd 21 e9 c9 . ! . . ld hl,00000h ;0da0 21 00 00 ! . . ld (0c9e9h),hl ;0da3 22 e9 c9 " . . ld a,(0c9d0h) ;0da6 3a d0 c9 : . . and 001h ;0da9 e6 01 . . ld b,a ;0dab 47 G ld hl,(0c9c7h) ;0dac 2a c7 c9 * . . ld a,(0c9cfh) ;0daf 3a cf c9 : . . ld e,a ;0db2 5f _ ld d,000h ;0db3 16 00 . . add hl,de ;0db5 19 . dec hl ;0db6 2b + push hl ;0db7 e5 . ld hl,0c9f0h ;0db8 21 f0 c9 ! . . ld de,0c9cdh ;0dbb 11 cd c9 . . . ld a,(0c9d0h) ;0dbe 3a d0 c9 : . . or a ;0dc1 b7 . jr z,l0dcch ;0dc2 28 08 ( . ld a,(0ca00h) ;0dc4 3a 00 ca : . . or a ;0dc7 b7 . jr z,l0dcch ;0dc8 28 02 ( . inc hl ;0dca 23 # inc de ;0dcb 13 . l0dcch: ld a,(hl) ;0dcc 7e ~ ld l,a ;0dcd 6f o ld a,(de) ;0dce 1a . ld h,a ;0dcf 67 g l0dd0h: dec l ;0dd0 2d - jp m,0bc02h ;0dd1 fa 02 bc . . . pop ix ;0dd4 dd e1 . . push ix ;0dd6 dd e5 . . push hl ;0dd8 e5 . push hl ;0dd9 e5 . ld d,000h ;0dda 16 00 . . ld e,b ;0ddc 58 X ld a,b ;0ddd 78 x or a ;0dde b7 . jr nz,l0de2h ;0ddf 20 01 . inc de ;0de1 13 . l0de2h: ld h,d ;0de2 62 b ld l,e ;0de3 6b k ld c,d ;0de4 4a J l0de5h: ld a,(ix+000h) ;0de5 dd 7e 00 . ~ . cp c ;0de8 b9 . jr c,l0e01h ;0de9 38 16 8 . jr z,l0e01h ;0deb 28 14 ( . push af ;0ded f5 . ld a,h ;0dee 7c | and (iy+001h) ;0def fd a6 01 . . . jr nz,l0e00h ;0df2 20 0c . ld a,l ;0df4 7d } and (iy+000h) ;0df5 fd a6 00 . . . jr nz,l0e00h ;0df8 20 06 . ld d,h ;0dfa 54 T ld e,l ;0dfb 5d ] pop af ;0dfc f1 . ld c,a ;0dfd 4f O jr l0e01h ;0dfe 18 01 . . l0e00h: pop af ;0e00 f1 . l0e01h: dec ix ;0e01 dd 2b . + sla l ;0e03 cb 25 . % rl h ;0e05 cb 14 . . ld a,b ;0e07 78 x or a ;0e08 b7 . jr z,l0e11h ;0e09 28 06 ( . dec ix ;0e0b dd 2b . + sla l ;0e0d cb 25 . % rl h ;0e0f cb 14 . . l0e11h: pop af ;0e11 f1 . dec a ;0e12 3d = push af ;0e13 f5 . jr nz,l0de5h ;0e14 20 cf . ld a,e ;0e16 7b { or (iy+000h) ;0e17 fd b6 00 . . . ld (iy+000h),a ;0e1a fd 77 00 . w . ld a,d ;0e1d 7a z or (iy+001h) ;0e1e fd b6 01 . . . ld (iy+001h),a ;0e21 fd 77 01 . w . pop hl ;0e24 e1 . pop hl ;0e25 e1 . jr l0dd0h ;0e26 18 a8 . . pop hl ;0e28 e1 . ld a,b ;0e29 78 x cp 001h ;0e2a fe 01 . . jr nz,l0e3ch ;0e2c 20 0e . ld b,002h ;0e2e 06 02 . . dec hl ;0e30 2b + push hl ;0e31 e5 . ld a,(0ca00h) ;0e32 3a 00 ca : . . cpl ;0e35 2f / ld (0ca00h),a ;0e36 32 00 ca 2 . . jp 0bb92h ;0e39 c3 92 bb . . . l0e3ch: or a ;0e3c b7 . ret ;0e3d c9 . ld hl,(0c9f8h) ;0e3e 2a f8 c9 * . . ld (0c9f2h),hl ;0e41 22 f2 c9 " . . ld hl,(0c9c7h) ;0e44 2a c7 c9 * . . ld (0c9cbh),hl ;0e47 22 cb c9 " . . ld a,(0c9feh) ;0e4a 3a fe c9 : . . ld (0ca00h),a ;0e4d 32 00 ca 2 . . ld hl,00000h ;0e50 21 00 00 ! . . ld (0c9e9h),hl ;0e53 22 e9 c9 " . . ld a,(0c9cfh) ;0e56 3a cf c9 : . . jp 0bcc7h ;0e59 c3 c7 bc . . . ld hl,(0c9f2h) ;0e5c 2a f2 c9 * . . ld (0c9f8h),hl ;0e5f 22 f8 c9 " . . or a ;0e62 b7 . ret ;0e63 c9 . ld hl,0c98fh ;0e64 21 8f c9 ! . . ld a,(hl) ;0e67 7e ~ push af ;0e68 f5 . ld (hl),000h ;0e69 36 00 6 . ld a,(0c9cfh) ;0e6b 3a cf c9 : . . and 001h ;0e6e e6 01 . . ld a,(0c9feh) ;0e70 3a fe c9 : . . jr nz,l0e76h ;0e73 20 01 . cpl ;0e75 2f / l0e76h: ld (0ca00h),a ;0e76 32 00 ca 2 . . ld hl,(0c9c7h) ;0e79 2a c7 c9 * . . ld a,(0c9cfh) ;0e7c 3a cf c9 : . . dec a ;0e7f 3d = ld e,a ;0e80 5f _ ld d,000h ;0e81 16 00 . . add hl,de ;0e83 19 . ld (0c9cbh),hl ;0e84 22 cb c9 " . . ld hl,0ca11h ;0e87 21 11 ca ! . . ld a,008h ;0e8a 3e 08 > . l0e8ch: ld (hl),000h ;0e8c 36 00 6 . inc hl ;0e8e 23 # dec a ;0e8f 3d = jr nz,l0e8ch ;0e90 20 fa . ld a,(0c9cfh) ;0e92 3a cf c9 : . . l0e95h: push af ;0e95 f5 . call 0bcf9h ;0e96 cd f9 bc . . . ld c,a ;0e99 4f O ld a,(0ca00h) ;0e9a 3a 00 ca : . . or a ;0e9d b7 . jr z,l0ea2h ;0e9e 28 02 ( . ld a,004h ;0ea0 3e 04 > . l0ea2h: ld e,a ;0ea2 5f _ ld d,000h ;0ea3 16 00 . . ld hl,0ca11h ;0ea5 21 11 ca ! . . add hl,de ;0ea8 19 . ld a,(hl) ;0ea9 7e ~ add a,c ;0eaa 81 . ld (hl),a ;0eab 77 w inc hl ;0eac 23 # ld a,(hl) ;0ead 7e ~ adc a,000h ;0eae ce 00 . . ld (hl),a ;0eb0 77 w inc hl ;0eb1 23 # inc (hl) ;0eb2 34 4 ld hl,(0c9e9h) ;0eb3 2a e9 c9 * . . srl h ;0eb6 cb 3c . < rr l ;0eb8 cb 1d . . ld (0c9e9h),hl ;0eba 22 e9 c9 " . . ld a,(0ca00h) ;0ebd 3a 00 ca : . . cpl ;0ec0 2f / ld (0ca00h),a ;0ec1 32 00 ca 2 . . ld hl,(0c9cbh) ;0ec4 2a cb c9 * . . dec hl ;0ec7 2b + ld (0c9cbh),hl ;0ec8 22 cb c9 " . . pop af ;0ecb f1 . dec a ;0ecc 3d = jr nz,l0e95h ;0ecd 20 c6 . call 0c062h ;0ecf cd 62 c0 . b . ld (0c9f2h),a ;0ed2 32 f2 c9 2 . . ld hl,(0ca15h) ;0ed5 2a 15 ca * . . ld (0ca11h),hl ;0ed8 22 11 ca " . . ld hl,(0ca17h) ;0edb 2a 17 ca * . . ld (0ca13h),hl ;0ede 22 13 ca " . . call 0c062h ;0ee1 cd 62 c0 . b . ld (0c9f3h),a ;0ee4 32 f3 c9 2 . . pop af ;0ee7 f1 . ld (0c98fh),a ;0ee8 32 8f c9 2 . . or a ;0eeb b7 . ret ;0eec c9 . l0eedh: push af ;0eed f5 . ld hl,0c9f2h ;0eee 21 f2 c9 ! . . ld a,(0ca00h) ;0ef1 3a 00 ca : . . and 001h ;0ef4 e6 01 . . jr z,l0ef9h ;0ef6 28 01 ( . inc hl ;0ef8 23 # l0ef9h: ld a,(hl) ;0ef9 7e ~ ld hl,(0c9cbh) ;0efa 2a cb c9 * . . cp (hl) ;0efd be . ld hl,(0c9e9h) ;0efe 2a e9 c9 * . . rl l ;0f01 cb 15 . . rl h ;0f03 cb 14 . . ld (0c9e9h),hl ;0f05 22 e9 c9 " . . call 0bcf9h ;0f08 cd f9 bc . . . ld hl,(0c9cbh) ;0f0b 2a cb c9 * . . inc hl ;0f0e 23 # ld (0c9cbh),hl ;0f0f 22 cb c9 " . . ld a,(0ca00h) ;0f12 3a 00 ca : . . cpl ;0f15 2f / ld (0ca00h),a ;0f16 32 00 ca 2 . . pop af ;0f19 f1 . dec a ;0f1a 3d = jr nz,l0eedh ;0f1b 20 d0 . or a ;0f1d b7 . ret ;0f1e c9 . ld hl,(0c9cbh) ;0f1f 2a cb c9 * . . ld b,(hl) ;0f22 46 F ld a,(0c9e9h) ;0f23 3a e9 c9 : . . and 001h ;0f26 e6 01 . . ld e,a ;0f28 5f _ ld a,(0ca00h) ;0f29 3a 00 ca : . . rrca ;0f2c 0f . rl e ;0f2d cb 13 . . ld d,000h ;0f2f 16 00 . . ld hl,0c9f4h ;0f31 21 f4 c9 ! . . add hl,de ;0f34 19 . ld a,(hl) ;0f35 7e ~ call 0c0a0h ;0f36 cd a0 c0 . . . ld b,003h ;0f39 06 03 . . l0f3bh: sla l ;0f3b cb 25 . % rl h ;0f3d cb 14 . . djnz l0f3bh ;0f3f 10 fa . . ld a,l ;0f41 7d } or a ;0f42 b7 . jp p,0bd21h ;0f43 f2 21 bd . ! . inc h ;0f46 24 $ ld b,h ;0f47 44 D ld a,(0c98fh) ;0f48 3a 8f c9 : . . or a ;0f4b b7 . jr z,l0f51h ;0f4c 28 03 ( . call 0c0a0h ;0f4e cd a0 c0 . . . l0f51h: push hl ;0f51 e5 . ld hl,0c9f2h ;0f52 21 f2 c9 ! . . ld a,(0ca00h) ;0f55 3a 00 ca : . . or a ;0f58 b7 . jr z,l0f5ch ;0f59 28 01 ( . inc hl ;0f5b 23 # l0f5ch: ld b,(hl) ;0f5c 46 F ld a,(0c98fh) ;0f5d 3a 8f c9 : . . neg ;0f60 ed 44 . D push hl ;0f62 e5 . call 0c0a0h ;0f63 cd a0 c0 . . . pop de ;0f66 d1 . pop af ;0f67 f1 . add a,h ;0f68 84 . ld (de),a ;0f69 12 . or a ;0f6a b7 . ret ;0f6b c9 . ld a,(0ca0fh) ;0f6c 3a 0f ca : . . ld hl,0c9fah ;0f6f 21 fa c9 ! . . cp (hl) ;0f72 be . jr c,l0fa0h ;0f73 38 2b 8 + jr z,l0fa0h ;0f75 28 29 ( ) inc (hl) ;0f77 34 4 ld c,a ;0f78 4f O ld b,000h ;0f79 06 00 . . ld a,(0ca0ah) ;0f7b 3a 0a ca : . . or a ;0f7e b7 . jr z,l0f93h ;0f7f 28 12 ( . dec c ;0f81 0d . jr z,l0f8dh ;0f82 28 09 ( . ld hl,(0c9fbh) ;0f84 2a fb c9 * . . add hl,bc ;0f87 09 . ld d,h ;0f88 54 T ld e,l ;0f89 5d ] dec hl ;0f8a 2b + lddr ;0f8b ed b8 . . l0f8dh: ld a,(0c9efh) ;0f8d 3a ef c9 : . . ld (de),a ;0f90 12 . jr l0f9eh ;0f91 18 0b . . l0f93h: ld hl,(0c9fbh) ;0f93 2a fb c9 * . . ld a,(0c9efh) ;0f96 3a ef c9 : . . ld (hl),a ;0f99 77 w inc hl ;0f9a 23 # ld (0c9fbh),hl ;0f9b 22 fb c9 " . . l0f9eh: or a ;0f9e b7 . ret ;0f9f c9 . l0fa0h: scf ;0fa0 37 7 ret ;0fa1 c9 . ld c,a ;0fa2 4f O ld b,000h ;0fa3 06 00 . . or a ;0fa5 b7 . jr z,l0fbeh ;0fa6 28 16 ( . ld a,(0ca0ah) ;0fa8 3a 0a ca : . . or a ;0fab b7 . jr z,l0fbeh ;0fac 28 10 ( . push bc ;0fae c5 . ld a,(0c9fah) ;0faf 3a fa c9 : . . sub c ;0fb2 91 . ld l,a ;0fb3 6f o ld h,000h ;0fb4 26 00 & . ld de,(0c9fbh) ;0fb6 ed 5b fb c9 add hl,de ;0fba 19 . ldir ;0fbb ed b0 . . pop bc ;0fbd c1 . l0fbeh: ld a,c ;0fbe 79 y ld (0c9fah),a ;0fbf 32 fa c9 2 . . ld a,(0ca0fh) ;0fc2 3a 0f ca : . . sub c ;0fc5 91 . ld hl,(0ca0dh) ;0fc6 2a 0d ca * . . add hl,bc ;0fc9 09 . l0fcah: or a ;0fca b7 . jr z,l0fd3h ;0fcb 28 06 ( . ld (hl),020h ;0fcd 36 20 6 inc hl ;0fcf 23 # dec a ;0fd0 3d = jr l0fcah ;0fd1 18 f7 . . l0fd3h: or a ;0fd3 b7 . ret ;0fd4 c9 . ld a,(0c9d1h) ;0fd5 3a d1 c9 : . . or a ;0fd8 b7 . ld a,(0c9cfh) ;0fd9 3a cf c9 : . . jr z,l0fdfh ;0fdc 28 01 ( . inc a ;0fde 3c < l0fdfh: call 0bdd4h ;0fdf cd d4 bd . . . jr c,l0ff9h ;0fe2 38 15 8 . ld a,(0c9d1h) ;0fe4 3a d1 c9 : . . or a ;0fe7 b7 . jr z,l0ff9h ;0fe8 28 0f ( . ld hl,(0c9c7h) ;0fea 2a c7 c9 * . . inc hl ;0fed 23 # ld (0c9c7h),hl ;0fee 22 c7 c9 " . . ld a,(0c9feh) ;0ff1 3a fe c9 : . . cpl ;0ff4 2f / ld (0c9feh),a ;0ff5 32 fe c9 2 . . or a ;0ff8 b7 . l0ff9h: ret ;0ff9 c9 . push af ;0ffa f5 . ld a,(0c9bfh) ;0ffb 3a bf c9 : . . ld hl,0c9c1h ;0ffe 21 c1 c9 ! . . sub (hl) ;1001 96 . and 002h ;1002 e6 02 . . ld a,000h ;1004 3e 00 > . jr nz,l1009h ;1006 20 01 . cpl ;1008 2f / l1009h: ld (0c9fdh),a ;1009 32 fd c9 2 . . ld (0c9feh),a ;100c 32 fe c9 2 . . ld (0c9ffh),a ;100f 32 ff c9 2 . . xor a ;1012 af . ld (0ca04h),a ;1013 32 04 ca 2 . . ld hl,(0c9c5h) ;1016 2a c5 c9 * . . ld (0c9c7h),hl ;1019 22 c7 c9 " . . ld (0c9c9h),hl ;101c 22 c9 c9 " . . pop af ;101f f1 . jp 0bdfdh ;1020 c3 fd bd . . . push af ;1023 f5 . ld hl,(0c9bfh) ;1024 2a bf c9 * . . inc hl ;1027 23 # inc hl ;1028 23 # l1029h: ld (0ca15h),hl ;1029 22 15 ca " . . l102ch: ld hl,(0ca15h) ;102c 2a 15 ca * . . ld a,(0c9dbh) ;102f 3a db c9 : . . and 014h ;1032 e6 14 . . jr nz,l10b4h ;1034 20 7e ~ inc hl ;1036 23 # inc hl ;1037 23 # ld de,(0c974h) ;1038 ed 5b 74 c9 . [ t . or a ;103c b7 . sbc hl,de ;103d ed 52 . R jr c,l1053h ;103f 38 12 8 . ld a,(0c9dbh) ;1041 3a db c9 : . . and 003h ;1044 e6 03 . . jr nz,l104dh ;1046 20 05 . call 0b647h ;1048 cd 47 b6 . G . jr l102ch ;104b 18 df . . l104dh: ld a,h ;104d 7c | or l ;104e b5 . jr z,l106eh ;104f 28 1d ( . jr l10b4h ;1051 18 61 . a l1053h: ld hl,(0ca15h) ;1053 2a 15 ca * . . ld c,(hl) ;1056 4e N inc hl ;1057 23 # ld b,(hl) ;1058 46 F inc hl ;1059 23 # ld e,(hl) ;105a 5e ^ inc hl ;105b 23 # ld d,(hl) ;105c 56 V inc hl ;105d 23 # ex de,hl ;105e eb . or a ;105f b7 . sbc hl,bc ;1060 ed 42 . B ld bc,(0c985h) ;1062 ed 4b 85 c9 . K . . or a ;1066 b7 . sbc hl,bc ;1067 ed 42 . B jr nc,l106eh ;1069 30 03 0 . ex de,hl ;106b eb . jr l1029h ;106c 18 bb . . l106eh: ld hl,(0ca15h) ;106e 2a 15 ca * . . ld e,(hl) ;1071 5e ^ inc hl ;1072 23 # ld d,(hl) ;1073 56 V ld hl,(0c9bfh) ;1074 2a bf c9 * . . ld c,(hl) ;1077 4e N inc hl ;1078 23 # ld b,(hl) ;1079 46 F ex de,hl ;107a eb . or a ;107b b7 . sbc hl,bc ;107c ed 42 . B ld de,0ca01h ;107e 11 01 ca . . . ld a,(0c9ffh) ;1081 3a ff c9 : . . or a ;1084 b7 . jr z,l1088h ;1085 28 01 ( . inc de ;1087 13 . l1088h: ld a,(de) ;1088 1a . call 0c0a5h ;1089 cd a5 c0 . . . or a ;108c b7 . jr nz,l10bch ;108d 20 2d - or l ;108f b5 . jp p,0be70h ;1090 f2 70 be . p . inc h ;1093 24 $ jr z,l10bch ;1094 28 26 ( & ld a,h ;1096 7c | ld hl,(0c9c9h) ;1097 2a c9 c9 * . . ld (hl),a ;109a 77 w inc hl ;109b 23 # ld (0c9c9h),hl ;109c 22 c9 c9 " . . ld hl,(0ca15h) ;109f 2a 15 ca * . . ld (0c9bfh),hl ;10a2 22 bf c9 " . . ld hl,0c9ffh ;10a5 21 ff c9 ! . . ld a,(hl) ;10a8 7e ~ cpl ;10a9 2f / ld (hl),a ;10aa 77 w pop af ;10ab f1 . dec a ;10ac 3d = push af ;10ad f5 . jp nz,0bdfeh ;10ae c2 fe bd . . . or a ;10b1 b7 . l10b2h: pop hl ;10b2 e1 . ret ;10b3 c9 . l10b4h: ld hl,0ca05h ;10b4 21 05 ca ! . . set 0,(hl) ;10b7 cb c6 . . scf ;10b9 37 7 jr l10b2h ;10ba 18 f6 . . l10bch: ld hl,0ca05h ;10bc 21 05 ca ! . . set 1,(hl) ;10bf cb ce . . scf ;10c1 37 7 jr l10b2h ;10c2 18 ee . . ld a,(0ca06h) ;10c4 3a 06 ca : . . and 001h ;10c7 e6 01 . . jp z,0bf43h ;10c9 ca 43 bf . C . ld a,(0ca03h) ;10cc 3a 03 ca : . . ld hl,0c991h ;10cf 21 91 c9 ! . . cp (hl) ;10d2 be . jp nc,0bf43h ;10d3 d2 43 bf . C . ld a,(0ca04h) ;10d6 3a 04 ca : . . ld hl,0c992h ;10d9 21 92 c9 ! . . cp (hl) ;10dc be . jp nc,0bf43h ;10dd d2 43 bf . C . ld hl,0ca03h ;10e0 21 03 ca ! . . inc (hl) ;10e3 34 4 ld hl,0ca04h ;10e4 21 04 ca ! . . inc (hl) ;10e7 34 4 ld a,002h ;10e8 3e 02 > . call 0bdfdh ;10ea cd fd bd . . . jr c,l1169h ;10ed 38 7a 8 z ld a,(0c9cfh) ;10ef 3a cf c9 : . . add a,002h ;10f2 c6 02 . . ld b,a ;10f4 47 G ld a,(0c9fdh) ;10f5 3a fd c9 : . . ld c,a ;10f8 4f O ld a,(0ca06h) ;10f9 3a 06 ca : . . and 020h ;10fc e6 20 . xor a ;10fe af . jr z,l1102h ;10ff 28 01 ( . cpl ;1101 2f / l1102h: ld d,a ;1102 57 W ld ix,(0c9c5h) ;1103 dd 2a c5 c9 . * . . ld e,0ffh ;1107 1e ff . . push ix ;1109 dd e5 . . xor a ;110b af . push af ;110c f5 . ld h,a ;110d 67 g l110eh: ld a,d ;110e 7a z or a ;110f b7 . jr z,l1116h ;1110 28 04 ( . ld a,c ;1112 79 y or a ;1113 b7 . jr nz,l1124h ;1114 20 0e . l1116h: ld a,e ;1116 7b { cp (ix+000h) ;1117 dd be 00 . . . jr c,l1124h ;111a 38 08 8 . pop af ;111c f1 . pop af ;111d f1 . push ix ;111e dd e5 . . push hl ;1120 e5 . ld e,(ix+000h) ;1121 dd 5e 00 . ^ . l1124h: inc ix ;1124 dd 23 . # ld a,c ;1126 79 y cpl ;1127 2f / ld c,a ;1128 4f O inc h ;1129 24 $ ld a,h ;112a 7c | cp b ;112b b8 . jr c,l110eh ;112c 38 e0 8 . pop de ;112e d1 . pop ix ;112f dd e1 . . ld a,d ;1131 7a z or a ;1132 b7 . jr z,l114dh ;1133 28 18 ( . dec ix ;1135 dd 2b . + ld a,(ix+000h) ;1137 dd 7e 00 . ~ . add a,(ix+001h) ;113a dd 86 01 . . . jr c,l1146h ;113d 38 07 8 . add a,(ix+002h) ;113f dd 86 02 . . . jr c,l1146h ;1142 38 02 8 . jr l1148h ;1144 18 02 . . l1146h: ld a,0ffh ;1146 3e ff > . l1148h: ld (ix+000h),a ;1148 dd 77 00 . w . inc ix ;114b dd 23 . # l114dh: ld a,b ;114d 78 x sub d ;114e 92 . jp m,0bf39h ;114f fa 39 bf . 9 . ld c,a ;1152 4f O ld a,(ix+002h) ;1153 dd 7e 02 . ~ . ld (ix+000h),a ;1156 dd 77 00 . w . inc ix ;1159 dd 23 . # dec c ;115b 0d . jp p,0bf2dh ;115c f2 2d bf . - . ld hl,(0c9c9h) ;115f 2a c9 c9 * . . dec hl ;1162 2b + dec hl ;1163 2b + ld (0c9c9h),hl ;1164 22 c9 c9 " . . or a ;1167 b7 . ret ;1168 c9 . l1169h: scf ;1169 37 7 ret ;116a c9 . ld a,(0ca0ah) ;116b 3a 0a ca : . . or a ;116e b7 . ld a,(0c993h) ;116f 3a 93 c9 : . . jr z,l1177h ;1172 28 03 ( . ld a,(0c994h) ;1174 3a 94 c9 : . . l1177h: ld l,000h ;1177 2e 00 . . ld h,a ;1179 67 g ld (0ca11h),hl ;117a 22 11 ca " . . xor a ;117d af . ld (0ca01h),a ;117e 32 01 ca 2 . . ld (0ca02h),a ;1181 32 02 ca 2 . . ld a,001h ;1184 3e 01 > . call 0bdd4h ;1186 cd d4 bd . . . jr c,l11b0h ;1189 38 25 8 % ld hl,(0c9bfh) ;118b 2a bf c9 * . . ld e,(hl) ;118e 5e ^ inc hl ;118f 23 # ld d,(hl) ;1190 56 V push de ;1191 d5 . call 0bb2dh ;1192 cd 2d bb . - . ld hl,(0c9bfh) ;1195 2a bf c9 * . . ld e,(hl) ;1198 5e ^ inc hl ;1199 23 # ld d,(hl) ;119a 56 V pop hl ;119b e1 . or a ;119c b7 . sbc hl,de ;119d ed 52 . R ld (0ca13h),hl ;119f 22 13 ca " . . call 0c062h ;11a2 cd 62 c0 . b . or a ;11a5 b7 . jr nz,l11a9h ;11a6 20 01 . inc a ;11a8 3c < l11a9h: ld (0ca01h),a ;11a9 32 01 ca 2 . . ld (0ca02h),a ;11ac 32 02 ca 2 . . or a ;11af b7 . l11b0h: ret ;11b0 c9 . call 0bc3eh ;11b1 cd 3e bc . > . ld a,(0ca06h) ;11b4 3a 06 ca : . . and 080h ;11b7 e6 80 . . jr nz,l11ddh ;11b9 20 22 " ld a,(0ca02h) ;11bb 3a 02 ca : . . ld b,a ;11be 47 G ld a,(0c9f3h) ;11bf 3a f3 c9 : . . call 0c0a0h ;11c2 cd a0 c0 . . . ld (0ca11h),hl ;11c5 22 11 ca " . . ld a,(0c9f2h) ;11c8 3a f2 c9 : . . ld l,a ;11cb 6f o ld h,000h ;11cc 26 00 & . ld (0ca13h),hl ;11ce 22 13 ca " . . call 0c062h ;11d1 cd 62 c0 . b . ld (0ca01h),a ;11d4 32 01 ca 2 . . ld a,(0c9f3h) ;11d7 3a f3 c9 : . . ld (0c9f2h),a ;11da 32 f2 c9 2 . . l11ddh: or a ;11dd b7 . ret ;11de c9 . l11dfh: call 0b420h ;11df cd 20 b4 . . call 0b43eh ;11e2 cd 3e b4 . > . call 0b462h ;11e5 cd 62 b4 . b . call 0b47ah ;11e8 cd 7a b4 . z . call 0b3e9h ;11eb cd e9 b3 . . . push hl ;11ee e5 . di ;11ef f3 . call 0b4aah ;11f0 cd aa b4 . . . ei ;11f3 fb . pop hl ;11f4 e1 . ld a,h ;11f5 7c | or a ;11f6 b7 . jp p,0bfdfh ;11f7 f2 df bf . . . and 004h ;11fa e6 04 . . jr z,l1205h ;11fc 28 07 ( . ld a,(0ca06h) ;11fe 3a 06 ca : . . and 010h ;1201 e6 10 . . jr nz,l11dfh ;1203 20 da . l1205h: ret ;1205 c9 . l1206h: call 0ba96h ;1206 cd 96 ba . . . l1209h: call 0bb2dh ;1209 cd 2d bb . - . call 0c02bh ;120c cd 2b c0 . + . jr c,l1219h ;120f 38 08 8 . ld a,(0c9fah) ;1211 3a fa c9 : . . ld l,a ;1214 6f o ld h,000h ;1215 26 00 & . jr l1250h ;1217 18 37 . 7 l1219h: ld a,(0c9dbh) ;1219 3a db c9 : . . and 010h ;121c e6 10 . . jr nz,l1206h ;121e 20 e6 . ld a,(0c9dbh) ;1220 3a db c9 : . . and 00ch ;1223 e6 0c . . jr nz,l1241h ;1225 20 1a . ld a,b ;1227 78 x and 001h ;1228 e6 01 . . jr z,l1233h ;122a 28 07 ( . ld a,(0ca05h) ;122c 3a 05 ca : . . and 001h ;122f e6 01 . . jr nz,l1241h ;1231 20 0e . l1233h: ld a,(0ca08h) ;1233 3a 08 ca : . . or b ;1236 b0 . ld (0ca08h),a ;1237 32 08 ca 2 . . call 0bb44h ;123a cd 44 bb . D . ld b,040h ;123d 06 40 . @ jr nc,l1209h ;123f 30 c8 0 . l1241h: ld a,(0c9dbh) ;1241 3a db c9 : . . cpl ;1244 2f / ld h,a ;1245 67 g ld a,(0ca08h) ;1246 3a 08 ca : . . or b ;1249 b0 . neg ;124a ed 44 . D ld l,a ;124c 6f o jr nz,l1250h ;124d 20 01 . inc h ;124f 24 $ l1250h: ret ;1250 c9 . call 0b3f5h ;1251 cd f5 b3 . . . ld b,001h ;1254 06 01 . . jr nc,l1260h ;1256 30 08 0 . ld a,(0ca06h) ;1258 3a 06 ca : . . and 040h ;125b e6 40 . @ scf ;125d 37 7 jr z,l1287h ;125e 28 27 ( ' l1260h: call 0b3fdh ;1260 cd fd b3 . . . ld b,002h ;1263 06 02 . . jr nc,l1260h ;1265 30 f9 0 . ld a,(0c9dbh) ;1267 3a db c9 : . . and 014h ;126a e6 14 . . scf ;126c 37 7 jr nz,l1287h ;126d 20 18 . call 0b3f9h ;126f cd f9 b3 . . . ld b,008h ;1272 06 08 . . jr c,l1287h ;1274 38 11 8 . call 0b401h ;1276 cd 01 b4 . . . ld b,010h ;1279 06 10 . . jr c,l1287h ;127b 38 0a 8 . call 0b9dfh ;127d cd df b9 . . . ld b,020h ;1280 06 20 . jr c,l1287h ;1282 38 03 8 . ld b,000h ;1284 06 00 . . or a ;1286 b7 . l1287h: ret ;1287 c9 . ld hl,(0ca11h) ;1288 2a 11 ca * . . ld de,(0ca13h) ;128b ed 5b 13 ca . [ . . xor a ;128f af . ld c,a ;1290 4f O ld b,a ;1291 47 G inc b ;1292 04 . jp m,0c09ch ;1293 fa 9c c0 . . . sla e ;1296 cb 23 . # rl d ;1298 cb 12 . . jp p,0c06ch ;129a f2 6c c0 . l . l129dh: srl d ;129d cb 3a . : rr e ;129f cb 1b . . dec b ;12a1 05 . jp m,0c08fh ;12a2 fa 8f c0 . . . or a ;12a5 b7 . sbc hl,de ;12a6 ed 52 . R rl c ;12a8 cb 11 . . ld a,c ;12aa 79 y xor 001h ;12ab ee 01 . . ld c,a ;12ad 4f O and 001h ;12ae e6 01 . . jr nz,l129dh ;12b0 20 eb . add hl,de ;12b2 19 . jr l129dh ;12b3 18 e8 . . or a ;12b5 b7 . sbc hl,de ;12b6 ed 52 . R jr c,l12bdh ;12b8 38 03 8 . jr z,l12bdh ;12ba 28 01 ( . inc c ;12bc 0c . l12bdh: ld a,c ;12bd 79 y ld (0ca11h),a ;12be 32 11 ca 2 . . ret ;12c1 c9 . ld c,0ffh ;12c2 0e ff . . jr l12bdh ;12c4 18 f7 . . ld l,b ;12c6 68 h ld h,000h ;12c7 26 00 & . jr l12cbh ;12c9 18 00 . . l12cbh: push de ;12cb d5 . ld c,a ;12cc 4f O ld d,h ;12cd 54 T ld e,l ;12ce 5d ] ld hl,00000h ;12cf 21 00 00 ! . . ld b,008h ;12d2 06 08 . . srl c ;12d4 cb 39 . 9 l12d6h: jr nc,l12d9h ;12d6 30 01 0 . add hl,de ;12d8 19 . l12d9h: rr h ;12d9 cb 1c . . rr l ;12db cb 1d . . rr c ;12dd cb 19 . . djnz l12d6h ;12df 10 f5 . . ld a,h ;12e1 7c | ld h,l ;12e2 65 e ld l,c ;12e3 69 i pop de ;12e4 d1 . ret ;12e5 c9 . ld b,e ;12e6 43 C inc sp ;12e7 33 3 add hl,sp ;12e8 39 9 ld b,c ;12e9 41 A ld e,000h ;12ea 1e 00 . . ld hl,02400h ;12ec 21 00 24 ! . $ nop ;12ef 00 . daa ;12f0 27 ' nop ;12f1 00 . ld c,d ;12f2 4a J nop ;12f3 00 . ld (hl),a ;12f4 77 w nop ;12f5 00 . ld a,a ;12f6 7f  nop ;12f7 00 . jp nz,0bf00h ;12f8 c2 00 bf . . . nop ;12fb 00 . inc hl ;12fc 23 # nop ;12fd 00 . push bc ;12fe c5 . nop ;12ff 00 . rra ;1300 1f . ld bc,l014bh+1 ;1301 01 4c 01 . L . jp 0b35ah ;1304 c3 5a b3 . Z . jp 0b35dh ;1307 c3 5d b3 . ] . jp 0b360h ;130a c3 60 b3 . ` . ld a,009h ;130d 3e 09 > . ld (0c9cdh),a ;130f 32 cd c9 2 . . ld a,003h ;1312 3e 03 > . ld (0c9f0h),a ;1314 32 f0 c9 2 . . ld a,00ch ;1317 3e 0c > . ld (0c9d2h),a ;1319 32 d2 c9 2 . . ld a,0ffh ;131c 3e ff > . ld (0c9d1h),a ;131e 32 d1 c9 2 . . ld ix,(0c995h) ;1321 dd 2a 95 c9 . * . . ld a,002h ;1325 3e 02 > . ld (ix+000h),a ;1327 dd 77 00 . w . ld a,02bh ;132a 3e 2b > + ld (ix+006h),a ;132c dd 77 06 . w . ret ;132f c9 . xor a ;1330 af . ld (0c9d1h),a ;1331 32 d1 c9 2 . . ld (0c9efh),a ;1334 32 ef c9 2 . . ld hl,00094h ;1337 21 94 00 ! . . ld a,(0ca0ah) ;133a 3a 0a ca : . . or a ;133d b7 . jr z,l1342h ;133e 28 02 ( . ld l,052h ;1340 2e 52 . R l1342h: ld (0c9e9h),hl ;1342 22 e9 c9 " . . call 0b354h ;1345 cd 54 b3 . T . jr c,l1357h ;1348 38 0d 8 . call 0b348h ;134a cd 48 b3 . H . jr c,l1357h ;134d 38 08 8 . call 0b321h ;134f cd 21 b3 . ! . push af ;1352 f5 . call 0b357h ;1353 cd 57 b3 . W . pop af ;1356 f1 . l1357h: ld a,0ffh ;1357 3e ff > . ld (0c9d1h),a ;1359 32 d1 c9 2 . . ret ;135c c9 . ld a,(0c9efh) ;135d 3a ef c9 : . . cp 02ah ;1360 fe 2a . * ret z ;1362 c8 . scf ;1363 37 7 ret ;1364 c9 . call 0c146h ;1365 cd 46 c1 . F . ret c ;1368 d8 . jp 0b342h ;1369 c3 42 b3 . B . call 0b348h ;136c cd 48 b3 . H . jr c,l13a2h ;136f 38 31 8 1 call 0b33ch ;1371 cd 3c b3 . < . l1374h: ld a,(0ca07h) ;1374 3a 07 ca : . . and 001h ;1377 e6 01 . . jr z,l1380h ;1379 28 05 ( . call 0b339h ;137b cd 39 b3 . 9 . jr l1383h ;137e 18 03 . . l1380h: call 0b336h ;1380 cd 36 b3 . 6 . l1383h: call 0b321h ;1383 cd 21 b3 . ! . jr c,l1393h ;1386 38 0b 8 . call 0b318h ;1388 cd 18 b3 . . . call 0b30ch ;138b cd 0c b3 . . . call 0b30fh ;138e cd 0f b3 . . . jr nc,l139ah ;1391 30 07 0 . l1393h: call 0b351h ;1393 cd 51 b3 . Q . jr nc,l1374h ;1396 30 dc 0 . jr l13a2h ;1398 18 08 . . l139ah: ld a,(0c9efh) ;139a 3a ef c9 : . . cp 02ah ;139d fe 2a . * jr z,l13a3h ;139f 28 02 ( . or a ;13a1 b7 . l13a2h: ret ;13a2 c9 . l13a3h: scf ;13a3 37 7 ret ;13a4 c9 . jp 0b31eh ;13a5 c3 1e b3 . . . jp 0b31bh ;13a8 c3 1b b3 . . . ld a,(bc) ;13ab 0a . ld l,l ;13ac 6d m dec c ;13ad 0d . dec hl ;13ae 2b + dec bc ;13af 0b . dec hl ;13b0 2b + dec c ;13b1 0d . sub l ;13b2 95 . ld a,(bc) ;13b3 0a . ld l,e ;13b4 6b k dec c ;13b5 0d . dec (hl) ;13b6 35 5 dec bc ;13b7 0b . dec (hl) ;13b8 35 5 ld a,(bc) ;13b9 0a . ld e,e ;13ba 5b [ dec c ;13bb 0d . dec l ;13bc 2d - dec bc ;13bd 0b . dec l ;13be 2d - dec c ;13bf 0d . ld c,e ;13c0 4b K dec bc ;13c1 0b . ld c,e ;13c2 4b K dec c ;13c3 0d . and l ;13c4 a5 . ld a,(bc) ;13c5 0a . rrc l ;13c6 cb 0d . . ld h,l ;13c8 65 e dec bc ;13c9 0b . ld h,l ;13ca 65 e ld a,(bc) ;13cb 0a . sbc a,e ;13cc 9b . dec c ;13cd 0d . ld c,l ;13ce 4d M dec bc ;13cf 0b . ld c,l ;13d0 4d M ld a,(bc) ;13d1 0a . call 0530dh ;13d2 cd 0d 53 . . S dec bc ;13d5 0b . ld d,e ;13d6 53 S dec c ;13d7 0d . xor c ;13d8 a9 . ld a,(bc) ;13d9 0a . out (00dh),a ;13da d3 0d . . ld l,c ;13dc 69 i dec bc ;13dd 0b . ld l,c ;13de 69 i ld a,(bc) ;13df 0a . or e ;13e0 b3 . dec c ;13e1 0d . ld e,c ;13e2 59 Y dec bc ;13e3 0b . ld e,c ;13e4 59 Y ld a,(bc) ;13e5 0a . exx ;13e6 d9 . inc c ;13e7 0c . xor e ;13e8 ab . add hl,bc ;13e9 09 . xor e ;13ea ab . inc c ;13eb 0c . push de ;13ec d5 . add hl,bc ;13ed 09 . ld l,e ;13ee 6b k inc c ;13ef 0c . or l ;13f0 b5 . add hl,bc ;13f1 09 . or l ;13f2 b5 . add hl,bc ;13f3 09 . ld e,e ;13f4 5b [ inc c ;13f5 0c . xor l ;13f6 ad . add hl,bc ;13f7 09 . xor l ;13f8 ad . add hl,bc ;13f9 09 . dec h ;13fa 25 % add hl,bc ;13fb 09 . add hl,hl ;13fc 29 ) add hl,bc ;13fd 09 . ld c,c ;13fe 49 I ld a,(bc) ;13ff 0a . ld c,c ;1400 49 I add hl,bc ;1401 09 . ld l,l ;1402 6d m nop ;1403 00 . nop ;1404 00 . jr nc,l1438h ;1405 30 31 0 1 ld (03433h),a ;1407 32 33 34 2 3 4 dec (hl) ;140a 35 5 ld (hl),037h ;140b 36 37 6 7 jr c,l1448h ;140d 38 39 8 9 ld b,c ;140f 41 A ld b,d ;1410 42 B ld b,e ;1411 43 C ld b,h ;1412 44 D ld b,l ;1413 45 E ld b,(hl) ;1414 46 F ld b,a ;1415 47 G ld c,b ;1416 48 H ld c,c ;1417 49 I ld c,d ;1418 4a J ld c,e ;1419 4b K ld c,h ;141a 4c L ld c,l ;141b 4d M ld c,(hl) ;141c 4e N ld c,a ;141d 4f O ld d,b ;141e 50 P ld d,c ;141f 51 Q ld d,d ;1420 52 R ld d,e ;1421 53 S ld d,h ;1422 54 T ld d,l ;1423 55 U ld d,(hl) ;1424 56 V ld d,a ;1425 57 W ld e,b ;1426 58 X ld e,c ;1427 59 Y ld e,d ;1428 5a Z dec l ;1429 2d - ld l,020h ;142a 2e 20 . inc h ;142c 24 $ cpl ;142d 2f / dec hl ;142e 2b + dec h ;142f 25 % ld hl,(04500h) ;1430 2a 00 45 * . E ld b,c ;1433 41 A ld c,(hl) ;1434 4e N ld b,c ;1435 41 A ld e,000h ;1436 1e 00 . . l1438h: ld hl,02400h ;1438 21 00 24 ! . $ nop ;143b 00 . daa ;143c 27 ' nop ;143d 00 . ld c,e ;143e 4b K nop ;143f 00 . sbc a,a ;1440 9f . nop ;1441 00 . adc a,b ;1442 88 . ld bc,00288h ;1443 01 88 02 . . . add a,l ;1446 85 . ld (bc),a ;1447 02 . l1448h: add a,(hl) ;1448 86 . nop ;1449 00 . xor b ;144a a8 . ld (bc),a ;144b 02 . jp nc,03102h ;144c d2 02 31 . . 1 inc bc ;144f 03 . jp 0b35ah ;1450 c3 5a b3 . Z . jp 0b35dh ;1453 c3 5d b3 . ] . jp 0b360h ;1456 c3 60 b3 . ` . ld a,020h ;1459 3e 20 > ld (0c993h),a ;145b 32 93 c9 2 . . ld (0c994h),a ;145e 32 94 c9 2 . . ld a,02ch ;1461 3e 2c > , ld (0c98ah),a ;1463 32 8a c9 2 . . ld a,00ah ;1466 3e 0a > . ld (0c99fh),a ;1468 32 9f c9 2 . . ld a,002h ;146b 3e 02 > . ld (0c9a0h),a ;146d 32 a0 c9 2 . . ld hl,l0301h ;1470 21 01 03 ! . . ld (0c9a1h),hl ;1473 22 a1 c9 " . . ld hl,00000h ;1476 21 00 00 ! . . ld (0c9e9h),hl ;1479 22 e9 c9 " . . ret ;147c c9 . call 0b354h ;147d cd 54 b3 . T . jr c,l14b0h ;1480 38 2e 8 . xor a ;1482 af . ld (0ca19h),a ;1483 32 19 ca 2 . . ld a,003h ;1486 3e 03 > . call 0c290h ;1488 cd 90 c2 . . . jr c,l14b0h ;148b 38 23 8 # ld a,(0ca0ah) ;148d 3a 0a ca : . . or a ;1490 b7 . jr z,l14b0h ;1491 28 1d ( . ld hl,(0c9bfh) ;1493 2a bf c9 * . . push hl ;1496 e5 . ld hl,(0ca1bh) ;1497 2a 1b ca * . . ld (0c9bfh),hl ;149a 22 bf c9 " . . ld a,006h ;149d 3e 06 > . call 0c290h ;149f cd 90 c2 . . . pop hl ;14a2 e1 . jr nc,l14abh ;14a3 30 06 0 . ld (0c9bfh),hl ;14a5 22 bf c9 " . . or a ;14a8 b7 . jr l14b0h ;14a9 18 05 . . l14abh: ld a,006h ;14ab 3e 06 > . ld (0ca19h),a ;14ad 32 19 ca 2 . . l14b0h: push af ;14b0 f5 . call 0b357h ;14b1 cd 57 b3 . W . pop af ;14b4 f1 . ret ;14b5 c9 . ld (0c9cfh),a ;14b6 32 cf c9 2 . . ld hl,(0c9bfh) ;14b9 2a bf c9 * . . ld (0ca1bh),hl ;14bc 22 1b ca " . . call 0b348h ;14bf cd 48 b3 . H . jr c,l14c9h ;14c2 38 05 8 . call 0b321h ;14c4 cd 21 b3 . ! . jr nc,l14d0h ;14c7 30 07 0 . l14c9h: ld hl,(0ca1bh) ;14c9 2a 1b ca * . . ld (0c9bfh),hl ;14cc 22 bf c9 " . . scf ;14cf 37 7 l14d0h: ret ;14d0 c9 . ld a,(0ca0ah) ;14d1 3a 0a ca : . . or a ;14d4 b7 . jr nz,l14deh ;14d5 20 07 . ld a,(0ca19h) ;14d7 3a 19 ca : . . cp 006h ;14da fe 06 . . jr z,l14e5h ;14dc 28 07 ( . l14deh: ld a,003h ;14de 3e 03 > . call 0c290h ;14e0 cd 90 c2 . . . jr c,l1548h ;14e3 38 63 8 c l14e5h: ld a,(0c9fah) ;14e5 3a fa c9 : . . cp 006h ;14e8 fe 06 . . jr nz,l1535h ;14ea 20 49 I call 0c359h ;14ec cd 59 c3 . Y . jr c,l1548h ;14ef 38 57 8 W push de ;14f1 d5 . ld e,005h ;14f2 1e 05 . . call 0c323h ;14f4 cd 23 c3 . # . pop de ;14f7 d1 . ld d,e ;14f8 53 S ld e,000h ;14f9 1e 00 . . call 0c323h ;14fb cd 23 c3 . # . ld ix,(0ca0dh) ;14fe dd 2a 0d ca . * . . ld a,(ix+007h) ;1502 dd 7e 07 . ~ . sub 030h ;1505 d6 30 . 0 ld ix,0c51fh ;1507 dd 21 1f c5 . ! . . ld e,a ;150b 5f _ ld d,000h ;150c 16 00 . . add ix,de ;150e dd 19 . . add ix,de ;1510 dd 19 . . add ix,de ;1512 dd 19 . . ld e,(ix+000h) ;1514 dd 5e 00 . ^ . ld d,(ix+002h) ;1517 dd 56 02 . V . call 0c323h ;151a cd 23 c3 . # . ld d,030h ;151d 16 30 . 0 call 0c323h ;151f cd 23 c3 . # . call 0c323h ;1522 cd 23 c3 . # . call 0c323h ;1525 cd 23 c3 . # . ld d,(ix+001h) ;1528 dd 56 01 . V . call 0c323h ;152b cd 23 c3 . # . ld a,(0c9fah) ;152e 3a fa c9 : . . dec a ;1531 3d = ld (0c9fah),a ;1532 32 fa c9 2 . . l1535h: ld a,(0c9fah) ;1535 3a fa c9 : . . cp 00ch ;1538 fe 0c . . scf ;153a 37 7 ccf ;153b 3f ? jr nz,l1548h ;153c 20 0a . call 0c359h ;153e cd 59 c3 . Y . jr c,l1548h ;1541 38 05 8 . ld e,000h ;1543 1e 00 . . call 0c323h ;1545 cd 23 c3 . # . l1548h: ret ;1548 c9 . push ix ;1549 dd e5 . . ld a,(0c9fah) ;154b 3a fa c9 : . . ld hl,0ca0fh ;154e 21 0f ca ! . . cp (hl) ;1551 be . jr c,l1557h ;1552 38 03 8 . scf ;1554 37 7 jr l157ch ;1555 18 25 . % l1557h: ld hl,0c9fah ;1557 21 fa c9 ! . . inc (hl) ;155a 34 4 ld b,000h ;155b 06 00 . . ld a,(0ca0fh) ;155d 3a 0f ca : . . ld c,a ;1560 4f O ld ix,(0ca0dh) ;1561 dd 2a 0d ca . * . . add ix,bc ;1565 dd 09 . . dec ix ;1567 dd 2b . + sub e ;1569 93 . dec a ;156a 3d = l156bh: jr z,l1578h ;156b 28 0b ( . dec ix ;156d dd 2b . + ld b,(ix+000h) ;156f dd 46 00 . F . ld (ix+001h),b ;1572 dd 70 01 . p . dec a ;1575 3d = jr l156bh ;1576 18 f3 . . l1578h: ld (ix+000h),d ;1578 dd 72 00 . r . or a ;157b b7 . l157ch: pop ix ;157c dd e1 . . ret ;157e c9 . push ix ;157f dd e5 . . ld hl,(0ca0dh) ;1581 2a 0d ca * . . ld a,004h ;1584 3e 04 > . l1586h: ld b,(hl) ;1586 46 F res 7,(hl) ;1587 cb be . . sla b ;1589 cb 20 . rl a ;158b cb 17 . . inc hl ;158d 23 # jr nc,l1586h ;158e 30 f6 0 . ld ix,0c4f3h ;1590 dd 21 f3 c4 . ! . . ld c,a ;1594 4f O l1595h: ld a,(ix+001h) ;1595 dd 7e 01 . ~ . or a ;1598 b7 . jr z,l15b7h ;1599 28 1c ( . ld a,(ix+000h) ;159b dd 7e 00 . ~ . cp c ;159e b9 . jr z,l15a7h ;159f 28 06 ( . inc ix ;15a1 dd 23 . # inc ix ;15a3 dd 23 . # jr l1595h ;15a5 18 ee . . l15a7h: ld e,030h ;15a7 1e 30 . 0 ld a,(ix+001h) ;15a9 dd 7e 01 . ~ . bit 7,a ;15ac cb 7f .  jr nz,l15b1h ;15ae 20 01 . inc e ;15b0 1c . l15b1h: and 07fh ;15b1 e6 7f .  ld d,a ;15b3 57 W l15b4h: pop ix ;15b4 dd e1 . . ret ;15b6 c9 . l15b7h: scf ;15b7 37 7 jr l15b4h ;15b8 18 fa . . ld a,(0ca19h) ;15ba 3a 19 ca : . . or a ;15bd b7 . jr nz,l15cdh ;15be 20 0d . ld a,005h ;15c0 3e 05 > . call 0c290h ;15c2 cd 90 c2 . . . jr c,l15cdh ;15c5 38 06 8 . ld a,(0c9fah) ;15c7 3a fa c9 : . . ld (0ca19h),a ;15ca 32 19 ca 2 . . l15cdh: ld a,004h ;15cd 3e 04 > . ld (0c9cfh),a ;15cf 32 cf c9 2 . . call 0b348h ;15d2 cd 48 b3 . H . jr c,l1644h ;15d5 38 6d 8 m ld a,007h ;15d7 3e 07 > . call 0c41fh ;15d9 cd 1f c4 . . . call 0c42fh ;15dc cd 2f c4 . / . ld a,(0c9edh) ;15df 3a ed c9 : . . ld (0c9d2h),a ;15e2 32 d2 c9 2 . . call 0b30ch ;15e5 cd 0c b3 . . . call 0b30fh ;15e8 cd 0f b3 . . . jr c,l1644h ;15eb 38 57 8 W ld a,(0c9efh) ;15ed 3a ef c9 : . . and 07fh ;15f0 e6 7f .  cp 031h ;15f2 fe 31 . 1 jr c,l1632h ;15f4 38 3c 8 < cp 033h ;15f6 fe 33 . 3 jr nc,l1632h ;15f8 30 38 0 8 ld a,(0c9efh) ;15fa 3a ef c9 : . . ld hl,0ca0ah ;15fd 21 0a ca ! . . xor (hl) ;1600 ae . ld b,a ;1601 47 G ld ix,(0c9c7h) ;1602 dd 2a c7 c9 . * . . bit 7,b ;1606 cb 78 . x jr z,l160ch ;1608 28 02 ( . dec ix ;160a dd 2b . + l160ch: ld a,(ix+001h) ;160c dd 7e 01 . ~ . add a,(ix+003h) ;160f dd 86 03 . . . bit 7,b ;1612 cb 78 . x jr z,l161ah ;1614 28 04 ( . inc ix ;1616 dd 23 . # inc ix ;1618 dd 23 . # l161ah: ld b,0c8h ;161a 06 c8 . . call 0b363h ;161c cd 63 b3 . c . ld a,h ;161f 7c | sub (ix+000h) ;1620 dd 96 00 . . . sub (ix+002h) ;1623 dd 96 02 . . . bit 7,a ;1626 cb 7f .  jr nz,l1632h ;1628 20 08 . ld a,(0c9efh) ;162a 3a ef c9 : . . add a,006h ;162d c6 06 . . ld (0c9efh),a ;162f 32 ef c9 2 . . l1632h: call 0b342h ;1632 cd 42 b3 . B . jr c,l1644h ;1635 38 0d 8 . ld a,(0ca19h) ;1637 3a 19 ca : . . or a ;163a b7 . jr z,l1644h ;163b 28 07 ( . dec a ;163d 3d = ld (0ca19h),a ;163e 32 19 ca 2 . . jr nz,l1644h ;1641 20 01 . scf ;1643 37 7 l1644h: ret ;1644 c9 . ld e,a ;1645 5f _ ld a,(0c9cfh) ;1646 3a cf c9 : . . ld d,a ;1649 57 W ld ix,(0c9c7h) ;164a dd 2a c7 c9 . * . . call 0c46fh ;164e cd 6f c4 . o . ld (0ca1ah),a ;1651 32 1a ca 2 . . ret ;1654 c9 . ld hl,00000h ;1655 21 00 00 ! . . ld c,000h ;1658 0e 00 . . ld b,001h ;165a 06 01 . . ld a,(0ca1ah) ;165c 3a 1a ca : . . ld e,a ;165f 5f _ ld a,(0c9cfh) ;1660 3a cf c9 : . . ld d,a ;1663 57 W ld ix,(0c9c7h) ;1664 dd 2a c7 c9 . * . . l1668h: push bc ;1668 c5 . push de ;1669 d5 . push hl ;166a e5 . push ix ;166b dd e5 . . ld d,002h ;166d 16 02 . . call 0c46fh ;166f cd 6f c4 . o . pop ix ;1672 dd e1 . . pop hl ;1674 e1 . pop de ;1675 d1 . pop bc ;1676 c1 . or a ;1677 b7 . l1678h: jr z,l1686h ;1678 28 0c ( . push bc ;167a c5 . srl b ;167b cb 38 . 8 pop bc ;167d c1 . rl l ;167e cb 15 . . rl h ;1680 cb 14 . . inc c ;1682 0c . dec a ;1683 3d = jr l1678h ;1684 18 f2 . . l1686h: inc ix ;1686 dd 23 . # inc b ;1688 04 . ld a,b ;1689 78 x cp d ;168a ba . jr c,l1668h ;168b 38 db 8 . ld (0c9ebh),hl ;168d 22 eb c9 " . . ld a,c ;1690 79 y ld (0c9edh),a ;1691 32 ed c9 2 . . ret ;1694 c9 . ld bc,00000h ;1695 01 00 00 . . . ld hl,00000h ;1698 21 00 00 ! . . l169bh: ld c,(ix+000h) ;169b dd 4e 00 . N . add hl,bc ;169e 09 . inc ix ;169f dd 23 . # dec d ;16a1 15 . jr nz,l169bh ;16a2 20 f7 . xor a ;16a4 af . ld d,a ;16a5 57 W l16a6h: or a ;16a6 b7 . sbc hl,de ;16a7 ed 52 . R jr c,l16aeh ;16a9 38 03 8 . inc a ;16ab 3c < jr l16a6h ;16ac 18 f8 . . l16aeh: add hl,de ;16ae 19 . add hl,hl ;16af 29 ) or a ;16b0 b7 . sbc hl,de ;16b1 ed 52 . R jr c,l16b6h ;16b3 38 01 8 . inc a ;16b5 3c < l16b6h: ret ;16b6 c9 . jp 0b31eh ;16b7 c3 1e b3 . . . call 0b31bh ;16ba cd 1b b3 . . . ld b,000h ;16bd 06 00 . . jr nc,l16c2h ;16bf 30 01 0 . inc b ;16c1 04 . l16c2h: ld a,(0c9fah) ;16c2 3a fa c9 : . . ld hl,(0ca0dh) ;16c5 2a 0d ca * . . l16c8h: or a ;16c8 b7 . jr z,l16d7h ;16c9 28 0c ( . bit 7,(hl) ;16cb cb 7e . ~ jr z,l16d3h ;16cd 28 04 ( . ld b,001h ;16cf 06 01 . . res 7,(hl) ;16d1 cb be . . l16d3h: inc hl ;16d3 23 # dec a ;16d4 3d = jr l16c8h ;16d5 18 f1 . . l16d7h: srl b ;16d7 cb 38 . 8 ret ;16d9 c9 . inc bc ;16da 03 . ex (sp),hl ;16db e3 . rlca ;16dc 07 . add a,a ;16dd 87 . inc bc ;16de 03 . adc a,a ;16df 8f . rrca ;16e0 0f . add a,e ;16e1 83 . ld b,01fh ;16e2 06 1f . . ld c,00fh ;16e4 0e 0f . . ld bc,l079fh ;16e6 01 9f 07 . . . add a,a ;16e9 87 . inc bc ;16ea 03 . adc a,a ;16eb 8f . ld bc,l03e7h ;16ec 01 e7 03 . . . rra ;16ef 1f . rlca ;16f0 07 . rrca ;16f1 0f . inc bc ;16f2 03 . rst 0 ;16f3 c7 . inc c ;16f4 0c . rra ;16f5 1f . rlca ;16f6 07 . jp 0070fh ;16f7 c3 0f 07 . . . ld bc,007f3h ;16fa 01 f3 07 . . . rrca ;16fd 0f . inc bc ;16fe 03 . rst 0 ;16ff c7 . ld bc,000cfh ;1700 01 cf 00 . . . nop ;1703 00 . jr nc,l1737h ;1704 30 31 0 1 ld (03433h),a ;1706 32 33 34 2 3 4 dec (hl) ;1709 35 5 ld (hl),037h ;170a 36 37 6 7 jr c,$+59 ;170c 38 39 8 9 or b ;170e b0 . or c ;170f b1 . or d ;1710 b2 . or e ;1711 b3 . or h ;1712 b4 . or l ;1713 b5 . or (hl) ;1714 b6 . or a ;1715 b7 . cp b ;1716 b8 . cp c ;1717 b9 . nop ;1718 00 . nop ;1719 00 . jr nc,$+13 ;171a 30 0b 0 . ld sp,0320dh ;171c 31 0d 32 1 . 2 ld c,033h ;171f 0e 33 . 3 inc de ;1721 13 . inc (hl) ;1722 34 4 add hl,de ;1723 19 . dec (hl) ;1724 35 5 inc e ;1725 1c . ld (hl),015h ;1726 36 15 6 . scf ;1728 37 7 ld d,038h ;1729 16 38 . 8 ld a,(de) ;172b 1a . add hl,sp ;172c 39 9 rlca ;172d 07 . jr nc,$+58 ;172e 30 38 0 8 or b ;1730 b0 . inc (hl) ;1731 34 4 or c ;1732 b1 . ld (031b2h),a ;1733 32 b2 31 2 . 1 or e ;1736 b3 . l1737h: inc l ;1737 2c , or h ;1738 b4 . ld h,0b5h ;1739 26 b5 & . inc hl ;173b 23 # or (hl) ;173c b6 . ld hl,(029b7h) ;173d 2a b7 29 * . ) cp b ;1740 b8 . dec h ;1741 25 % cp c ;1742 b9 . nop ;1743 00 . nop ;1744 00 . inc bc ;1745 03 . jr nc,$+50 ;1746 30 30 0 0 inc bc ;1748 03 . ld sp,l0330h ;1749 31 30 03 1 0 . ld (l0430h),a ;174c 32 30 04 2 0 . jr nc,$+50 ;174f 30 30 0 0 dec b ;1751 05 . jr nc,l1784h ;1752 30 30 0 0 ld b,030h ;1754 06 30 . 0 dec (hl) ;1756 35 5 ld b,030h ;1757 06 30 . 0 ld (hl),006h ;1759 36 06 6 . jr nc,l1794h ;175b 30 37 0 7 ld b,030h ;175d 06 30 . 0 jr c,l1767h ;175f 38 06 8 . jr nc,l179ch ;1761 30 39 0 9 ld c,c ;1763 49 I ld (04135h),a ;1764 32 35 41 2 5 A l1767h: ld e,000h ;1767 1e 00 . . ld hl,02400h ;1769 21 00 24 ! . $ nop ;176c 00 . daa ;176d 27 ' nop ;176e 00 . ld e,a ;176f 5f _ nop ;1770 00 . and a ;1771 a7 . nop ;1772 00 . cp e ;1773 bb . nop ;1774 00 . inc a ;1775 3c < ld bc,l0139h ;1776 01 39 01 . 9 . inc hl ;1779 23 # nop ;177a 00 . ccf ;177b 3f ? ld bc,00155h ;177c 01 55 01 . U . ld h,c ;177f 61 a ld bc,05ac3h ;1780 01 c3 5a . . Z or e ;1783 b3 . l1784h: jp 0b35dh ;1784 c3 5d b3 . ] . jp 0b360h ;1787 c3 60 b3 . ` . ld a,00eh ;178a 3e 0e > . ld (0c9d2h),a ;178c 32 d2 c9 2 . . ld a,005h ;178f 3e 05 > . ld (0c9cdh),a ;1791 32 cd c9 2 . . l1794h: ld (0c9ceh),a ;1794 32 ce c9 2 . . ld a,0ffh ;1797 3e ff > . ld (0c9d0h),a ;1799 32 d0 c9 2 . . l179ch: ld a,002h ;179c 3e 02 > . ld (0c9f0h),a ;179e 32 f0 c9 2 . . ld (0c9f1h),a ;17a1 32 f1 c9 2 . . ld ix,(0c995h) ;17a4 dd 2a 95 c9 . * . . ld a,009h ;17a8 3e 09 > . ld (ix+006h),a ;17aa dd 77 06 . w . call 0c58eh ;17ad cd 8e c5 . . . ld ix,(0c997h) ;17b0 dd 2a 97 c9 . * . . ld (ix+007h),006h ;17b4 dd 36 07 06 . 6 . . ld b,007h ;17b8 06 07 . . l17bah: ld (ix+008h),b ;17ba dd 70 08 . p . inc ix ;17bd dd 23 . # djnz l17bah ;17bf 10 f9 . . ret ;17c1 c9 . xor a ;17c2 af . ld (0ca1bh),a ;17c3 32 1b ca 2 . . ld a,(0c9cfh) ;17c6 3a cf c9 : . . push af ;17c9 f5 . call 0b354h ;17ca cd 54 b3 . T . jr c,l17dah ;17cd 38 0b 8 . ld a,(0ca0ah) ;17cf 3a 0a ca : . . call 0c5bah ;17d2 cd ba c5 . . . push af ;17d5 f5 . call 0b357h ;17d6 cd 57 b3 . W . pop af ;17d9 f1 . l17dah: pop bc ;17da c1 . ld a,b ;17db 78 x ld (0c9cfh),a ;17dc 32 cf c9 2 . . ret ;17df c9 . or a ;17e0 b7 . jr nz,l17edh ;17e1 20 0a . ld hl,00000h ;17e3 21 00 00 ! . . ld (0c9e9h),hl ;17e6 22 e9 c9 " . . ld a,004h ;17e9 3e 04 > . jr l17feh ;17eb 18 11 . . l17edh: ld hl,00004h ;17ed 21 04 00 ! . . ld a,(0ca0ah) ;17f0 3a 0a ca : . . or a ;17f3 b7 . jr z,l17f9h ;17f4 28 03 ( . ld hl,00001h ;17f6 21 01 00 ! . . l17f9h: ld (0c9e9h),hl ;17f9 22 e9 c9 " . . ld a,003h ;17fc 3e 03 > . l17feh: ld (0c9cfh),a ;17fe 32 cf c9 2 . . call 0b34bh ;1801 cd 4b b3 . K . ld a,000h ;1804 3e 00 > . ret c ;1806 d8 . jp 0b321h ;1807 c3 21 b3 . ! . ld a,(0ca1bh) ;180a 3a 1b ca : . . or a ;180d b7 . jr z,l181ch ;180e 28 0c ( . ld hl,(0ca19h) ;1810 2a 19 ca * . . ld (0c9bfh),hl ;1813 22 bf c9 " . . ld a,(0ca1bh) ;1816 3a 1b ca : . . jp 0b345h ;1819 c3 45 b3 . E . l181ch: scf ;181c 37 7 ret ;181d c9 . ld a,(0c9cfh) ;181e 3a cf c9 : . . push af ;1821 f5 . ld a,(0ca0ah) ;1822 3a 0a ca : . . cpl ;1825 2f / call 0c5bah ;1826 cd ba c5 . . . rl b ;1829 cb 10 . . or a ;182b b7 . jr nz,l183eh ;182c 20 10 . rr b ;182e cb 18 . . jr c,l1896h ;1830 38 64 8 d ld hl,(0c9bfh) ;1832 2a bf c9 * . . ld (0ca19h),hl ;1835 22 19 ca " . . ld a,(0c9fah) ;1838 3a fa c9 : . . ld (0ca1bh),a ;183b 32 1b ca 2 . . l183eh: ld hl,0c9cfh ;183e 21 cf c9 ! . . pop bc ;1841 c1 . ld a,b ;1842 78 x sub (hl) ;1843 96 . ld (hl),b ;1844 70 p call 0b34eh ;1845 cd 4e b3 . N . jr c,l189bh ;1848 38 51 8 Q l184ah: call 0b336h ;184a cd 36 b3 . 6 . call 0b321h ;184d cd 21 b3 . ! . jr c,l188fh ;1850 38 3d 8 = call 0b318h ;1852 cd 18 b3 . . . call 0b30ch ;1855 cd 0c b3 . . . call 0b312h ;1858 cd 12 b3 . . . ld a,(0c9ech) ;185b 3a ec c9 : . . push af ;185e f5 . xor a ;185f af . ld (0c9ech),a ;1860 32 ec c9 2 . . call 0b30fh ;1863 cd 0f b3 . . . pop bc ;1866 c1 . jr c,l188fh ;1867 38 26 8 & push af ;1869 f5 . ld a,b ;186a 78 x ld (0c9ebh),a ;186b 32 eb c9 2 . . call 0b30fh ;186e cd 0f b3 . . . pop hl ;1871 e1 . jr c,l188fh ;1872 38 1b 8 . push af ;1874 f5 . ld a,(0ca0ah) ;1875 3a 0a ca : . . or a ;1878 b7 . jr nz,l187ch ;1879 20 01 . ex (sp),hl ;187b e3 . l187ch: ld a,h ;187c 7c | ld (0c9efh),a ;187d 32 ef c9 2 . . call 0b342h ;1880 cd 42 b3 . B . pop hl ;1883 e1 . jr c,l189bh ;1884 38 15 8 . ld a,h ;1886 7c | ld (0c9efh),a ;1887 32 ef c9 2 . . call 0b342h ;188a cd 42 b3 . B . jr l189bh ;188d 18 0c . . l188fh: call 0b351h ;188f cd 51 b3 . Q . jr nc,l184ah ;1892 30 b6 0 . jr l189bh ;1894 18 05 . . l1896h: pop bc ;1896 c1 . ld a,b ;1897 78 x ld (0c9cfh),a ;1898 32 cf c9 2 . . l189bh: ret ;189b c9 . jp 0b31eh ;189c c3 1e b3 . . . jp 0b31bh ;189f c3 1b b3 . . . nop ;18a2 00 . ld e,c ;18a3 59 Y nop ;18a4 00 . ld l,e ;18a5 6b k nop ;18a6 00 . ld c,e ;18a7 4b K nop ;18a8 00 . ld h,l ;18a9 65 e nop ;18aa 00 . ld e,e ;18ab 5b [ nop ;18ac 00 . ld l,l ;18ad 6d m nop ;18ae 00 . ld c,l ;18af 4d M nop ;18b0 00 . ld d,e ;18b1 53 S nop ;18b2 00 . ld l,c ;18b3 69 i nop ;18b4 00 . ld c,c ;18b5 49 I nop ;18b6 00 . nop ;18b7 00 . jr nc,l18ebh ;18b8 30 31 0 1 ld (03433h),a ;18ba 32 33 34 2 3 4 dec (hl) ;18bd 35 5 ld (hl),037h ;18be 36 37 6 7 jr c,l18fbh ;18c0 38 39 8 9 jr nc,l18c4h ;18c2 30 00 0 . l18c4h: ld b,e ;18c4 43 C ld b,d ;18c5 42 B ld d,d ;18c6 52 R ld b,c ;18c7 41 A ld e,000h ;18c8 1e 00 . . ld hl,02400h ;18ca 21 00 24 ! . $ nop ;18cd 00 . daa ;18ce 27 ' nop ;18cf 00 . ld b,a ;18d0 47 G nop ;18d1 00 . jp z,0d100h ;18d2 ca 00 d1 . . . nop ;18d5 00 . inc de ;18d6 13 . ld bc,00110h ;18d7 01 10 01 . . . inc hl ;18da 23 # nop ;18db 00 . ld (06401h),a ;18dc 32 01 64 2 . d ld bc,0017dh ;18df 01 7d 01 . } . jp 0b35ah ;18e2 c3 5a b3 . Z . jp 0b35dh ;18e5 c3 5d b3 . ] . jp 0b360h ;18e8 c3 60 b3 . ` . l18ebh: ld a,007h ;18eb 3e 07 > . ld (0c9cdh),a ;18ed 32 cd c9 2 . . ld a,0ffh ;18f0 3e ff > . ld (0c9d1h),a ;18f2 32 d1 c9 2 . . ld hl,l0100h+2 ;18f5 21 02 01 ! . . ld (0c9d3h),hl ;18f8 22 d3 c9 " . . l18fbh: ld hl,l0304h ;18fb 21 04 03 ! . . ld (0c9d5h),hl ;18fe 22 d5 c9 " . . ld ix,(0c995h) ;1901 dd 2a 95 c9 . * . . ld a,010h ;1905 3e 10 > . ld (ix+006h),a ;1907 dd 77 06 . w . ret ;190a c9 . ld a,(0c9cdh) ;190b 3a cd c9 : . . push af ;190e f5 . xor a ;190f af . ld (0c9d1h),a ;1910 32 d1 c9 2 . . ld a,0ffh ;1913 3e ff > . ld (0c9d0h),a ;1915 32 d0 c9 2 . . ld hl,l0403h ;1918 21 03 04 ! . . ld (0c9cdh),hl ;191b 22 cd c9 " . . ld hl,l0100h+2 ;191e 21 02 01 ! . . ld (0c9f0h),hl ;1921 22 f0 c9 " . . ld a,010h ;1924 3e 10 > . ld (0c9d2h),a ;1926 32 d2 c9 2 . . call 0b354h ;1929 cd 54 b3 . T . jr c,l194fh ;192c 38 21 8 ! call 0b348h ;192e cd 48 b3 . H . jr c,l194fh ;1931 38 1c 8 . call 0b336h ;1933 cd 36 b3 . 6 . call 0b321h ;1936 cd 21 b3 . ! . jr c,l194ah ;1939 38 0f 8 . call 0b318h ;193b cd 18 b3 . . . call 0b30ch ;193e cd 0c b3 . . . call 0b30fh ;1941 cd 0f b3 . . . ld d,a ;1944 57 W ld e,000h ;1945 1e 00 . . call 0c739h ;1947 cd 39 c7 . 9 . l194ah: push af ;194a f5 . call 0b357h ;194b cd 57 b3 . W . pop af ;194e f1 . l194fh: pop bc ;194f c1 . ld a,b ;1950 78 x ld (0c9cdh),a ;1951 32 cd c9 2 . . ld a,000h ;1954 3e 00 > . ld (0c9d0h),a ;1956 32 d0 c9 2 . . ld a,0ffh ;1959 3e ff > . ld (0c9d1h),a ;195b 32 d1 c9 2 . . ret ;195e c9 . ld a,d ;195f 7a z cp 041h ;1960 fe 41 . A jr c,l198dh ;1962 38 29 8 ) cp 045h ;1964 fe 45 . E jr c,l196bh ;1966 38 03 8 . scf ;1968 37 7 jr l198dh ;1969 18 22 . " l196bh: ld a,(0ca0ah) ;196b 3a 0a ca : . . or a ;196e b7 . jr z,l1974h ;196f 28 03 ( . ld a,e ;1971 7b { cpl ;1972 2f / ld e,a ;1973 5f _ l1974h: ld a,e ;1974 7b { or a ;1975 b7 . jr z,l198ah ;1976 28 12 ( . ld a,d ;1978 7a z sub 041h ;1979 d6 41 . A ld c,a ;197b 4f O ld b,000h ;197c 06 00 . . ld hl,(0c9d9h) ;197e 2a d9 c9 * . . add hl,bc ;1981 09 . ld bc,00014h ;1982 01 14 00 . . . add hl,bc ;1985 09 . ld a,(hl) ;1986 7e ~ ld (0c9efh),a ;1987 32 ef c9 2 . . l198ah: call 0b342h ;198a cd 42 b3 . B . l198dh: ret ;198d c9 . ld a,(0ca19h) ;198e 3a 19 ca : . . xor 0ffh ;1991 ee ff . . rra ;1993 1f . ret ;1994 c9 . call 0b348h ;1995 cd 48 b3 . H . jr c,l19d3h ;1998 38 39 8 9 call 0b33ch ;199a cd 3c b3 . < . l199dh: call 0b339h ;199d cd 39 b3 . 9 . call 0b321h ;19a0 cd 21 b3 . ! . jr c,l19ceh ;19a3 38 29 8 ) call 0b318h ;19a5 cd 18 b3 . . . ld a,(0c9edh) ;19a8 3a ed c9 : . . ld (0c9d2h),a ;19ab 32 d2 c9 2 . . call 0b30ch ;19ae cd 0c b3 . . . call 0b30fh ;19b1 cd 0f b3 . . . jr c,l19ceh ;19b4 38 18 8 . ld d,a ;19b6 57 W ld e,0ffh ;19b7 1e ff . . call 0c739h ;19b9 cd 39 c7 . 9 . ld a,000h ;19bc 3e 00 > . rl a ;19be cb 17 . . xor 001h ;19c0 ee 01 . . ld (0ca19h),a ;19c2 32 19 ca 2 . . rr a ;19c5 cb 1f . . jr c,l19d3h ;19c7 38 0a 8 . call 0b342h ;19c9 cd 42 b3 . B . jr l19d3h ;19cc 18 05 . . l19ceh: call 0b351h ;19ce cd 51 b3 . Q . jr nc,l199dh ;19d1 30 ca 0 . l19d3h: ret ;19d3 c9 . jp 0b31eh ;19d4 c3 1e b3 . . . ld a,(0c9fah) ;19d7 3a fa c9 : . . sub 002h ;19da d6 02 . . jr c,l19f5h ;19dc 38 17 8 . ld hl,(0ca0dh) ;19de 2a 0d ca * . . ld c,a ;19e1 4f O ld b,000h ;19e2 06 00 . . add hl,bc ;19e4 09 . push hl ;19e5 e5 . ld c,(hl) ;19e6 4e N inc hl ;19e7 23 # ld b,(hl) ;19e8 46 F push bc ;19e9 c5 . ld (hl),c ;19ea 71 q dec hl ;19eb 2b + ld (hl),b ;19ec 70 p call 0b31bh ;19ed cd 1b b3 . . . pop bc ;19f0 c1 . pop hl ;19f1 e1 . ld (hl),c ;19f2 71 q inc hl ;19f3 23 # ld (hl),b ;19f4 70 p l19f5h: ret ;19f5 c9 . inc h ;19f6 24 $ add a,a ;19f7 87 . inc h ;19f8 24 $ pop hl ;19f9 e1 . inc h ;19fa 24 $ daa ;19fb 27 ' jr c,l1a47h ;19fc 38 49 8 I daa ;19fe 27 ' ld hl,02139h ;19ff 21 39 21 ! 9 ! ld hl,02127h ;1a02 21 27 21 ! ' ! add hl,sp ;1a05 39 9 ld hl,039c9h ;1a06 21 c9 39 ! . 9 add hl,bc ;1a09 09 . daa ;1a0a 27 ' add hl,bc ;1a0b 09 . inc h ;1a0c 24 $ add hl,sp ;1a0d 39 9 call po,0e7e7h ;1a0e e4 e7 e7 . . . daa ;1a11 27 ' rst 20h ;1a12 e7 . add hl,sp ;1a13 39 9 sbc a,h ;1a14 9c . rst 20h ;1a15 e7 . sbc a,h ;1a16 9c . ld hl,02784h ;1a17 21 84 27 ! . ' sub b ;1a1a 90 . add a,a ;1a1b 87 . sub b ;1a1c 90 . pop hl ;1a1d e1 . sbc a,h ;1a1e 9c . ld hl,02784h ;1a1f 21 84 27 ! . ' sub b ;1a22 90 . add a,a ;1a23 87 . sub b ;1a24 90 . pop hl ;1a25 e1 . nop ;1a26 00 . nop ;1a27 00 . jr nc,$+51 ;1a28 30 31 0 1 ld (03433h),a ;1a2a 32 33 34 2 3 4 dec (hl) ;1a2d 35 5 ld (hl),037h ;1a2e 36 37 6 7 jr c,$+59 ;1a30 38 39 8 9 inc h ;1a32 24 $ dec l ;1a33 2d - ld a,(02e2fh) ;1a34 3a 2f 2e : / . dec hl ;1a37 2b + ld b,c ;1a38 41 A ld b,d ;1a39 42 B ld b,e ;1a3a 43 C ld b,h ;1a3b 44 D ld d,h ;1a3c 54 T ld c,(hl) ;1a3d 4e N ld hl,(00045h) ;1a3e 2a 45 00 * E . ld c,l ;1a41 4d M ld d,b ;1a42 50 P ld c,h ;1a43 4c L ld b,c ;1a44 41 A ld e,000h ;1a45 1e 00 . . l1a47h: ld hl,02400h ;1a47 21 00 24 ! . $ nop ;1a4a 00 . daa ;1a4b 27 ' nop ;1a4c 00 . ld d,d ;1a4d 52 R nop ;1a4e 00 . sbc a,d ;1a4f 9a . nop ;1a50 00 . xor (hl) ;1a51 ae . nop ;1a52 00 . ld (02f01h),a ;1a53 32 01 2f 2 . / ld bc,00023h ;1a56 01 23 00 . # . dec (hl) ;1a59 35 5 ld bc,l014bh ;1a5a 01 4b 01 . K . ld d,a ;1a5d 57 W ld bc,05ac3h ;1a5e 01 c3 5a . . Z or e ;1a61 b3 . jp 0b35dh ;1a62 c3 5d b3 . ] . jp 0b360h ;1a65 c3 60 b3 . ` . ld a,00ch ;1a68 3e 0c > . ld (0c9d2h),a ;1a6a 32 d2 c9 2 . . xor a ;1a6d af . ld (0c9d1h),a ;1a6e 32 d1 c9 2 . . ld a,008h ;1a71 3e 08 > . ld (0c9cdh),a ;1a73 32 cd c9 2 . . ld ix,(0c995h) ;1a76 dd 2a 95 c9 . * . . call 0c85fh ;1a7a cd 5f c8 . _ . ld ix,(0c997h) ;1a7d dd 2a 97 c9 . * . . ld (ix+006h),00bh ;1a81 dd 36 06 0b . 6 . . ld (ix+007h),006h ;1a85 dd 36 07 06 . 6 . . ld b,007h ;1a89 06 07 . . l1a8bh: ld (ix+008h),b ;1a8b dd 70 08 . p . inc ix ;1a8e dd 23 . # djnz l1a8bh ;1a90 10 f9 . . ret ;1a92 c9 . xor a ;1a93 af . ld (0ca1bh),a ;1a94 32 1b ca 2 . . ld a,(0c9cfh) ;1a97 3a cf c9 : . . push af ;1a9a f5 . call 0b354h ;1a9b cd 54 b3 . T . jr c,l1aabh ;1a9e 38 0b 8 . ld a,(0ca0ah) ;1aa0 3a 0a ca : . . call 0c88bh ;1aa3 cd 8b c8 . . . push af ;1aa6 f5 . call 0b357h ;1aa7 cd 57 b3 . W . pop af ;1aaa f1 . l1aabh: pop bc ;1aab c1 . ld a,b ;1aac 78 x ld (0c9cfh),a ;1aad 32 cf c9 2 . . ret ;1ab0 c9 . or a ;1ab1 b7 . jr nz,l1ac7h ;1ab2 20 13 . ld hl,00002h ;1ab4 21 02 00 ! . . ld a,(0ca0ah) ;1ab7 3a 0a ca : . . or a ;1aba b7 . jr z,l1ac0h ;1abb 28 03 ( . ld hl,00001h ;1abd 21 01 00 ! . . l1ac0h: ld (0c9e9h),hl ;1ac0 22 e9 c9 " . . ld a,002h ;1ac3 3e 02 > . jr l1acfh ;1ac5 18 08 . . l1ac7h: ld hl,00002h ;1ac7 21 02 00 ! . . ld (0c9e9h),hl ;1aca 22 e9 c9 " . . ld a,003h ;1acd 3e 03 > . l1acfh: ld (0c9cfh),a ;1acf 32 cf c9 2 . . call 0b34bh ;1ad2 cd 4b b3 . K . ld a,000h ;1ad5 3e 00 > . ret c ;1ad7 d8 . jp 0b321h ;1ad8 c3 21 b3 . ! . ld a,(0ca1bh) ;1adb 3a 1b ca : . . or a ;1ade b7 . jr z,l1aedh ;1adf 28 0c ( . ld hl,(0ca19h) ;1ae1 2a 19 ca * . . ld (0c9bfh),hl ;1ae4 22 bf c9 " . . ld a,(0ca1bh) ;1ae7 3a 1b ca : . . jp 0b345h ;1aea c3 45 b3 . E . l1aedh: scf ;1aed 37 7 ret ;1aee c9 . ld a,(0c9cfh) ;1aef 3a cf c9 : . . push af ;1af2 f5 . ld a,(0ca0ah) ;1af3 3a 0a ca : . . cpl ;1af6 2f / call 0c88bh ;1af7 cd 8b c8 . . . rl b ;1afa cb 10 . . or a ;1afc b7 . jr nz,l1b0fh ;1afd 20 10 . rr b ;1aff cb 18 . . jr c,l1b6ah ;1b01 38 67 8 g ld hl,(0c9bfh) ;1b03 2a bf c9 * . . ld (0ca19h),hl ;1b06 22 19 ca " . . ld a,(0c9fah) ;1b09 3a fa c9 : . . ld (0ca1bh),a ;1b0c 32 1b ca 2 . . l1b0fh: ld hl,0c9cfh ;1b0f 21 cf c9 ! . . pop bc ;1b12 c1 . ld a,b ;1b13 78 x sub (hl) ;1b14 96 . ld (hl),b ;1b15 70 p call 0b34eh ;1b16 cd 4e b3 . N . jr c,l1b6fh ;1b19 38 54 8 T call 0b33ch ;1b1b cd 3c b3 . < . l1b1eh: ld a,(0ca07h) ;1b1e 3a 07 ca : . . and 001h ;1b21 e6 01 . . jr z,l1b2ah ;1b23 28 05 ( . call 0b339h ;1b25 cd 39 b3 . 9 . jr l1b4eh ;1b28 18 24 . $ l1b2ah: ld hl,(0c9c7h) ;1b2a 2a c7 c9 * . . ld b,004h ;1b2d 06 04 . . l1b2fh: push bc ;1b2f c5 . push af ;1b30 f5 . ld b,040h ;1b31 06 40 . @ ld a,(hl) ;1b33 7e ~ inc hl ;1b34 23 # cp (hl) ;1b35 be . jr c,l1b3ah ;1b36 38 02 8 . sla b ;1b38 cb 20 . l1b3ah: pop af ;1b3a f1 . sla b ;1b3b cb 20 . rl a ;1b3d cb 17 . . sla b ;1b3f cb 20 . rl a ;1b41 cb 17 . . pop bc ;1b43 c1 . inc hl ;1b44 23 # dec b ;1b45 05 . jr nz,l1b2fh ;1b46 20 e7 . ld l,a ;1b48 6f o ld h,000h ;1b49 26 00 & . ld (0c9e9h),hl ;1b4b 22 e9 c9 " . . l1b4eh: call 0b321h ;1b4e cd 21 b3 . ! . jr c,l1b63h ;1b51 38 10 8 . call 0b318h ;1b53 cd 18 b3 . . . call 0b30ch ;1b56 cd 0c b3 . . . call 0b30fh ;1b59 cd 0f b3 . . . jr c,l1b63h ;1b5c 38 05 8 . call 0b342h ;1b5e cd 42 b3 . B . jr l1b6fh ;1b61 18 0c . . l1b63h: call 0b351h ;1b63 cd 51 b3 . Q . jr nc,l1b1eh ;1b66 30 b6 0 . jr l1b6fh ;1b68 18 05 . . l1b6ah: pop bc ;1b6a c1 . ld a,b ;1b6b 78 x ld (0c9cfh),a ;1b6c 32 cf c9 2 . . l1b6fh: ret ;1b6f c9 . jp 0b31eh ;1b70 c3 1e b3 . . . jp 0b31bh ;1b73 c3 1b b3 . . . add hl,bc ;1b76 09 . inc h ;1b77 24 $ add hl,bc ;1b78 09 . ld h,009h ;1b79 26 09 & . inc (hl) ;1b7b 34 4 add hl,bc ;1b7c 09 . ld (hl),009h ;1b7d 36 09 6 . and h ;1b7f a4 . add hl,bc ;1b80 09 . and (hl) ;1b81 a6 . add hl,bc ;1b82 09 . or h ;1b83 b4 . add hl,bc ;1b84 09 . or (hl) ;1b85 b6 . dec c ;1b86 0d . inc h ;1b87 24 $ dec c ;1b88 0d . ld h,000h ;1b89 26 00 & . nop ;1b8b 00 . jr nc,l1bbfh ;1b8c 30 31 0 1 ld (03433h),a ;1b8e 32 33 34 2 3 4 dec (hl) ;1b91 35 5 ld (hl),037h ;1b92 36 37 6 7 jr c,l1bcfh ;1b94 38 39 8 9 jr nc,l1b98h ;1b96 30 00 0 . l1b98h: nop ;1b98 00 . nop ;1b99 00 . nop ;1b9a 00 . nop ;1b9b 00 . nop ;1b9c 00 . nop ;1b9d 00 . nop ;1b9e 00 . nop ;1b9f 00 . nop ;1ba0 00 . nop ;1ba1 00 . nop ;1ba2 00 . nop ;1ba3 00 . nop ;1ba4 00 . nop ;1ba5 00 . nop ;1ba6 00 . nop ;1ba7 00 . nop ;1ba8 00 . nop ;1ba9 00 . nop ;1baa 00 . nop ;1bab 00 . nop ;1bac 00 . nop ;1bad 00 . nop ;1bae 00 . nop ;1baf 00 . nop ;1bb0 00 . nop ;1bb1 00 . nop ;1bb2 00 . nop ;1bb3 00 . nop ;1bb4 00 . nop ;1bb5 00 . nop ;1bb6 00 . nop ;1bb7 00 . nop ;1bb8 00 . nop ;1bb9 00 . nop ;1bba 00 . nop ;1bbb 00 . nop ;1bbc 00 . nop ;1bbd 00 . nop ;1bbe 00 . l1bbfh: nop ;1bbf 00 . nop ;1bc0 00 . nop ;1bc1 00 . nop ;1bc2 00 . nop ;1bc3 00 . nop ;1bc4 00 . nop ;1bc5 00 . nop ;1bc6 00 . nop ;1bc7 00 . nop ;1bc8 00 . nop ;1bc9 00 . nop ;1bca 00 . nop ;1bcb 00 . nop ;1bcc 00 . nop ;1bcd 00 . nop ;1bce 00 . l1bcfh: nop ;1bcf 00 . nop ;1bd0 00 . nop ;1bd1 00 . nop ;1bd2 00 . nop ;1bd3 00 . nop ;1bd4 00 . nop ;1bd5 00 . nop ;1bd6 00 . nop ;1bd7 00 . nop ;1bd8 00 . nop ;1bd9 00 . nop ;1bda 00 . nop ;1bdb 00 . nop ;1bdc 00 . nop ;1bdd 00 . nop ;1bde 00 . nop ;1bdf 00 . nop ;1be0 00 . nop ;1be1 00 . nop ;1be2 00 . nop ;1be3 00 . nop ;1be4 00 . nop ;1be5 00 . nop ;1be6 00 . nop ;1be7 00 . nop ;1be8 00 . nop ;1be9 00 . nop ;1bea 00 . nop ;1beb 00 . nop ;1bec 00 . nop ;1bed 00 . nop ;1bee 00 . nop ;1bef 00 . nop ;1bf0 00 . nop ;1bf1 00 . nop ;1bf2 00 . nop ;1bf3 00 . nop ;1bf4 00 . nop ;1bf5 00 . nop ;1bf6 00 . nop ;1bf7 00 . nop ;1bf8 00 . nop ;1bf9 00 . nop ;1bfa 00 . nop ;1bfb 00 . nop ;1bfc 00 . nop ;1bfd 00 . nop ;1bfe 00 . nop ;1bff 00 .