Advertisement
luckytyphlosion

le roboponbgb dfump

Dec 3rd, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.03 KB | None | 0 0
  1. jp $0388
  2. rst $38
  3. rst $38
  4. rst $38
  5. rst $38
  6. rst $38
  7. jp $0068
  8. ld e,$1e
  9. ld c,d
  10. ld e,$1f
  11. jp $00c9
  12. ld bc,$0108
  13. ldh a,[$ffa1]
  14. rst $38
  15. rst $38
  16. rst $38
  17. rst $38
  18. rst $38
  19. rst $38
  20. rst $38
  21. rst $38
  22. ldh [$ff80],a
  23. ld [$2000],a
  24. ret
  25. rst $38
  26. rst $38
  27. rst $38
  28. rst $38
  29. rst $38
  30. rst $38
  31. rst $38
  32. rst $38
  33. rst $38
  34. rst $38
  35. rst $38
  36. rst $38
  37. rst $38
  38. rst $38
  39. rst $38
  40. rst $38
  41. rst $38
  42. rst $38
  43. rst $38
  44. rst $38
  45. rst $38
  46. rst $38
  47. rst $38
  48. rst $38
  49. rst $38
  50. rst $38
  51. jp $c006
  52. rst $38
  53. rst $38
  54. rst $38
  55. rst $38
  56. rst $38
  57. jp $c200
  58. rst $38
  59. rst $38
  60. rst $38
  61. rst $38
  62. rst $38
  63. jp $c000
  64. jp $021c
  65. rst $38
  66. rst $38
  67. jp $c003
  68. rst $38
  69. rst $38
  70. rst $38
  71. rst $38
  72. rst $38
  73. rst $38
  74. rst $38
  75. rst $38
  76. rst $38
  77. rst $38
  78. rst $38
  79. rst $38
  80. rst $38
  81. add sp,$fb
  82. push af
  83. push de
  84. push hl
  85. ld hl,[sp+$0b]
  86. ld e,[hl]
  87. inc hl
  88. ld d,[hl]
  89. ld a,[de]
  90. inc de
  91. ld [hl],d
  92. dec hl
  93. ld [hl],e
  94. ld e,a
  95. ld a,[$000d]
  96. cp e
  97. jr c,$0093
  98. ld d,$00
  99. ld hl,$01e0
  100. add hl,de
  101. add hl,de
  102. ld e,[hl]
  103. inc hl
  104. ld d,[hl]
  105. ld hl,[sp+$09]
  106. ld [hl],e
  107. inc hl
  108. ld [hl],d
  109. pop hl
  110. pop de
  111. pop af
  112. add sp,$03
  113. ret
  114. ld d,e
  115. dec hl
  116. ldh a,[$ff80]
  117. ldd [hl],a
  118. ld [hl],$00
  119. dec hl
  120. ld [hl],$bd
  121. sla e
  122. ld a,d
  123. rlca
  124. and a,$01
  125. add a,$0e
  126. ld l,a
  127. ld h,$00
  128. ld a,[hl]
  129. call $00f7
  130. ld hl,$4000
  131. ld d,l
  132. add hl,de
  133. ld e,[hl]
  134. inc hl
  135. ld d,[hl]
  136. ld hl,[sp+$06]
  137. ld [hl],e
  138. inc hl
  139. ld [hl],d
  140. pop hl
  141. pop de
  142. pop af
  143. ret
  144. push af
  145. push hl
  146. ld hl,[sp+$04]
  147. ld a,[hl]
  148. call $00f7
  149. pop hl
  150. pop af
  151. inc sp
  152. ret
  153. push af
  154. push af
  155. push de
  156. push hl
  157. ld hl,[sp+$08]
  158. ldi a,[hl]
  159. ld h,[hl]
  160. ld l,a
  161. ld e,[hl]
  162. inc hl
  163. ld d,[hl]
  164. push hl
  165. dec hl
  166. add hl,de
  167. ld e,l
  168. ld d,h
  169. ld hl,[sp+$0b]
  170. ld [hl],d
  171. dec hl
  172. ld [hl],e
  173. pop de
  174. inc de
  175. dec hl
  176. ld [hl],d
  177. dec hl
  178. ld [hl],e
  179. pop hl
  180. pop de
  181. pop af
  182. ret
  183. xor a
  184. ldh [$ff81],a
  185. inc a
  186. ld [$6000],a
  187. xor a
  188. ld [$0000],a
  189. ld a,[$000c]
  190. ldh [$ff80],a
  191. ld [$2000],a
  192. ret
  193. nop
  194. nop
  195. nop
  196. nop
  197. jp $0323
  198. db $ce,$ed,$66,$66,$cc,$0d,$00,$0b,$03,$73,$00,$83,$00,$0c,$00,$0d
  199. db $00,$08,$11,$1f,$88,$89,$00,$0e,$dc,$cc,$6e,$e6,$dd,$dd,$d9,$99
  200. db $bb,$bb,$67,$63,$6e,$0e,$ec,$cc,$dd,$dc,$99,$9f,$bb,$b9,$33,$3e
  201. db "sun hree"
  202. db $80
  203. db $45,$42
  204. db $03
  205. db $fe
  206. db $05
  207. db $03
  208. db $01
  209. db $33
  210. db $00
  211. db $89
  212. db $da,$57
  213. ld a,[$000b]
  214. ldh [$ff80],a
  215. ld [$2000],a
  216. jp $4100
  217. ld a,b
  218. or c
  219. ret z
  220. ldh a,[$ff86]
  221. or a
  222. jr z,$0174
  223. ld a,h
  224. and a,$e0
  225. cp a,$80
  226. jr z,$017d
  227. ld a,d
  228. and a,$e0
  229. cp a,$80
  230. jr nz,$0174
  231. rst $08
  232. cp a,$c9
  233. ld a,[de]
  234. inc de
  235. ldi [hl],a
  236. dec bc
  237. ld a,b
  238. or c
  239. jr nz,$0174
  240. ret
  241. ld a,b
  242. or a
  243. push af
  244. rst $08
  245. db $fd
  246. pop af
  247. push af
  248. jr nz,$018a
  249. ld a,b
  250. cp c
  251. jr nc,$01a5
  252. push bc
  253. push hl
  254. ld c,b
  255. ld b,$00
  256. push bc
  257. call $01a6
  258. pop bc
  259. pop hl
  260. add hl,bc
  261. pop bc
  262. pop af
  263. push hl
  264. ld l,b
  265. ld b,a
  266. ld a,c
  267. sub l
  268. ld c,a
  269. ld a,b
  270. sbc a,$00
  271. ld b,a
  272. pop hl
  273. jr $017f
  274. pop af
  275. rst $08
  276. rst $38
  277. ld a,[de]
  278. inc de
  279. ld [hl],a
  280. inc l
  281. dec c
  282. jr nz,$01a8
  283. di
  284. ld a,l
  285. ldh [$ff87],a
  286. ldh a,[$ff89]
  287. add b
  288. ldh [$ff89],a
  289. ei
  290. ret
  291. nop
  292. nop
  293. nop
  294. nop
  295. nop
  296. nop
  297. nop
  298. nop
  299. nop
  300. nop
  301. nop
  302. nop
  303. nop
  304. nop
  305. nop
  306. nop
  307. nop
  308. nop
  309. nop
  310. nop
  311. nop
  312. nop
  313. nop
  314. nop
  315. nop
  316. nop
  317. nop
  318. nop
  319. nop
  320. nop
  321. nop
  322. nop
  323. nop
  324. nop
  325. nop
  326. nop
  327. nop
  328. nop
  329. jp [hl]
  330. nop
  331. ld d,b
  332. ld bc,$015b
  333. nop
  334. ld l,a
  335. jr nc,$0259
  336. add hl,sp
  337. ld l,a
  338. db $d3
  339. halt
  340. db $ec
  341. halt
  342. dec c
  343. ld [hl],a
  344. db $fd
  345. ld [bc],a
  346. cp c
  347. ld bc,$01b9
  348. cp c
  349. ld bc,$01b9
  350. cp c
  351. ld bc,$01b9
  352. sub [hl]
  353. ld [bc],a
  354. inc l
  355. ld [bc],a
  356. jr nc,$0208
  357. inc [hl]
  358. ld [bc],a
  359. jr c,$020c
  360. ld b,c
  361. ld [bc],a
  362. ld b,l
  363. ld [bc],a
  364. ld c,c
  365. ld [bc],a
  366. ld c,l
  367. ld [bc],a
  368. ld d,c
  369. ld [bc],a
  370. jr $0218
  371. ld l,h
  372. ld [bc],a
  373. ld de,$1c7d
  374. ret
  375. push af
  376. push bc
  377. push de
  378. push hl
  379. ldh a,[$ff99]
  380. bit 2,a
  381. call nz,$0230
  382. pop hl
  383. pop de
  384. pop bc
  385. pop af
  386. reti
  387. ld l,$00
  388. jr $0253
  389. ld l,$03
  390. jr $0253
  391. ld l,$06
  392. jr $0253
  393. cp a,$3c
  394. ret c
  395. sub a,$14
  396. ld l,$09
  397. jr $0253
  398. ld l,$0c
  399. jr $0253
  400. ld l,$0f
  401. jr $0253
  402. ld l,$12
  403. jr $0253
  404. ld l,$15
  405. jr $0253
  406. ld l,$18
  407. ld h,$40
  408. push af
  409. call $025e
  410. pop hl
  411. push af
  412. ld a,h
  413. jr $0267
  414. push hl
  415. push af
  416. ldh a,[$ff80]
  417. ld hl,[sp+$07]
  418. ld [hl],a
  419. ld a,$1c
  420. call $0020
  421. pop af
  422. ret
  423. ld a,d
  424. cp a,$80
  425. ret c
  426. cp a,$a0
  427. jp c,$03d3
  428. cp a,$c0
  429. jr c,$0286
  430. cp a,$e0
  431. jp nc,$03d3
  432. sub a,$c0
  433. rst $08
  434. ld d,b
  435. jp c,$03d3
  436. ret
  437. sub a,$a0
  438. rst $08
  439. cp h
  440. jp c,$03d3
  441. ret
  442. di
  443. ld sp,$e000
  444. rst $08
  445. nop
  446. rst $08
  447. ld l,[hl]
  448. ld hl,$0296
  449. rst $08
  450. ld l,a
  451. jp $0300
  452. rst $38
  453. rst $38
  454. rst $38
  455. rst $38
  456. rst $38
  457. rst $38
  458. rst $38
  459. rst $38
  460. rst $38
  461. rst $38
  462. rst $38
  463. rst $38
  464. rst $38
  465. rst $38
  466. rst $38
  467. rst $38
  468. rst $38
  469. rst $38
  470. rst $38
  471. rst $38
  472. rst $38
  473. rst $38
  474. rst $38
  475. rst $38
  476. rst $38
  477. rst $38
  478. rst $38
  479. rst $38
  480. rst $38
  481. rst $38
  482. rst $38
  483. rst $38
  484. rst $38
  485. rst $38
  486. rst $38
  487. rst $38
  488. rst $38
  489. rst $38
  490. rst $38
  491. rst $38
  492. rst $38
  493. rst $38
  494. rst $38
  495. rst $38
  496. rst $38
  497. rst $38
  498. rst $38
  499. rst $38
  500. rst $38
  501. rst $38
  502. rst $38
  503. rst $38
  504. rst $38
  505. rst $38
  506. rst $38
  507. rst $38
  508. rst $38
  509. rst $38
  510. rst $38
  511. rst $38
  512. rst $38
  513. rst $38
  514. rst $38
  515. rst $38
  516. rst $38
  517. rst $38
  518. rst $38
  519. rst $38
  520. rst $38
  521. rst $38
  522. rst $38
  523. rst $38
  524. rst $38
  525. rst $38
  526. rst $38
  527. rst $38
  528. rst $38
  529. rst $38
  530. rst $38
  531. rst $38
  532. rst $38
  533. rst $38
  534. rst $38
  535. rst $38
  536. rst $38
  537. rst $38
  538. rst $38
  539. rst $38
  540. rst $38
  541. rst $38
  542. rst $38
  543. rst $38
  544. rst $38
  545. rst $38
  546. rst $38
  547. jp $0309
  548. jp $030a
  549. jp $03a4
  550. jp $03d1
  551. ret
  552. ld bc,$000a
  553. ld hl,$0000
  554. dec hl
  555. ld a,l
  556. or h
  557. jr nz,$0310
  558. dec bc
  559. ld a,c
  560. or b
  561. jr nz,$030d
  562. di
  563. ld sp,$e000
  564. rst $08
  565. nop
  566. call $1a60
  567. di
  568. ld sp,$e000
  569. ldh [$fff4],a
  570. push af
  571. ldh a,[$ff44]
  572. cp a,$91
  573. jp nc,$032a
  574. ldh a,[$ff44]
  575. cp a,$91
  576. jp c,$0331
  577. ldh a,[$ff40]
  578. and a,$7f
  579. ldh [$ff40],a
  580. ld hl,$9800
  581. ld bc,$0400
  582. xor a
  583. ldi [hl],a
  584. dec bc
  585. ld a,b
  586. or c
  587. jr nz,$0344
  588. ldh a,[$ff40]
  589. or a,$80
  590. ldh [$ff40],a
  591. pop af
  592. di
  593. ld sp,$e000
  594. push af
  595. rst $08
  596. nop
  597. rst $08
  598. ld de,$183e
  599. call $03f2
  600. pop af
  601. push af
  602. call $720e
  603. di
  604. pop af
  605. ld [$c2fb],a
  606. di
  607. ld sp,$e000
  608. ld a,$01
  609. call $03f2
  610. ld a,$03
  611. call $03d5
  612. call $4064
  613. ld a,$3f
  614. call $03f2
  615. call $624a
  616. ld a,[$c2fb]
  617. ldh [$fff4],a
  618. di
  619. ld sp,$e000
  620. ld a,$01
  621. call $03f2
  622. ld a,$03
  623. call $03d5
  624. call $4064
  625. call $1a60
  626. ld a,$01
  627. call $03f2
  628. jp $4000
  629. ldh a,[$fff4]
  630. ld [$c2fb],a
  631. di
  632. ld sp,$e000
  633. ld a,$01
  634. call $03f2
  635. ld a,$03
  636. call $03d5
  637. call $4064
  638. call $1a60
  639. ld a,$ff
  640. ld [$c213],a
  641. ld a,$01
  642. call $03f2
  643. call $4000
  644. xor a
  645. ld [$c213],a
  646. jp $1e59
  647. scf
  648. ret
  649. scf
  650. ret
  651. bit 7,a
  652. jr nz,$03e4
  653. ldh [$ff81],a
  654. ld [$4000],a
  655. ld a,$0a
  656. ld [$0000],a
  657. ret
  658. set 7,a
  659. ldh [$ff81],a
  660. res 7,a
  661. ld [$4000],a
  662. xor a
  663. ld [$0000],a
  664. ret
  665. ldh [$ff80],a
  666. ld [$2000],a
  667. ret
  668. push hl
  669. push bc
  670. ld hl,[sp+$00]
  671. ld bc,$27f0
  672. add hl,bc
  673. bit 7,h
  674. jr z,$0417
  675. di
  676. ld hl,[sp+$04]
  677. ld e,[hl]
  678. inc hl
  679. ld d,[hl]
  680. ldh a,[$ff80]
  681. ld c,a
  682. ld b,$ff
  683. ld hl,[sp+$00]
  684. ld sp,$e000
  685. jp $1d90
  686. pop bc
  687. pop hl
  688. ld [$c212],a
  689. ldh a,[$ff80]
  690. push af
  691. ld a,[$c21a]
  692. call $03f2
  693. ld a,l
  694. ld [$c218],a
  695. ld a,h
  696. ld [$c219],a
  697. ld hl,$0446
  698. push hl
  699. ld a,[$c21b]
  700. ld l,a
  701. ld a,[$c21c]
  702. ld h,a
  703. push hl
  704. ld a,[$c219]
  705. ld h,a
  706. ld a,[$c218]
  707. ld l,a
  708. ld a,[$c212]
  709. ret
  710. ld [$c212],a
  711. pop af
  712. call $03f2
  713. ld a,[$c212]
  714. ret
  715. push bc
  716. ld a,[$c3a3]
  717. push af
  718. xor a
  719. ld [$c3a3],a
  720. call $0465
  721. ld c,a
  722. pop af
  723. ld [$c3a3],a
  724. ld a,c
  725. pop bc
  726. ret
  727. push bc
  728. ld a,[$c209]
  729. ld c,a
  730. halt
  731. nop
  732. ld a,[$c207]
  733. ld b,a
  734. ld a,[$c209]
  735. cp c
  736. jr z,$046a
  737. ld a,b
  738. push af
  739. call $1af8
  740. pop af
  741. pop bc
  742. ret
  743. ld a,[de]
  744. inc de
  745. ldi [hl],a
  746. dec bc
  747. ld a,b
  748. or c
  749. jr nz,$047e
  750. ret
  751. ld a,e
  752. ldi [hl],a
  753. dec bc
  754. ld a,b
  755. or c
  756. jr nz,$0487
  757. ret
  758. rst $38
  759. rst $38
  760. rst $38
  761. rst $38
  762. rst $38
  763. rst $38
  764. rst $38
  765. rst $38
  766. rst $38
  767. rst $38
  768. rst $38
  769. rst $38
  770. rst $38
  771. rst $38
  772. rst $38
  773. rst $38
  774. rst $38
  775. rst $38
  776. rst $38
  777. rst $38
  778. rst $38
  779. rst $38
  780. rst $38
  781. rst $38
  782. rst $38
  783. rst $38
  784. rst $38
  785. rst $38
  786. rst $38
  787. rst $38
  788. rst $38
  789. rst $38
  790. rst $38
  791. rst $38
  792. rst $38
  793. rst $38
  794. rst $38
  795. rst $38
  796. rst $38
  797. rst $38
  798. rst $38
  799. rst $38
  800. rst $38
  801. rst $38
  802. rst $38
  803. rst $38
  804. rst $38
  805. rst $38
  806. rst $38
  807. rst $38
  808. rst $38
  809. rst $38
  810. rst $38
  811. rst $38
  812. rst $38
  813. rst $38
  814. rst $38
  815. rst $38
  816. rst $38
  817. rst $38
  818. rst $38
  819. rst $38
  820. rst $38
  821. rst $38
  822. rst $38
  823. rst $38
  824. rst $38
  825. rst $38
  826. rst $38
  827. rst $38
  828. rst $38
  829. rst $38
  830. rst $38
  831. rst $38
  832. rst $38
  833. rst $38
  834. rst $38
  835. rst $38
  836. rst $38
  837. rst $38
  838. rst $38
  839. rst $38
  840. rst $38
  841. rst $38
  842. rst $38
  843. rst $38
  844. rst $38
  845. rst $38
  846. rst $38
  847. rst $38
  848. rst $38
  849. rst $38
  850. rst $38
  851. rst $38
  852. rst $38
  853. rst $38
  854. rst $38
  855. rst $38
  856. rst $38
  857. rst $38
  858. rst $38
  859. rst $38
  860. rst $38
  861. rst $38
  862. rst $38
  863. rst $38
  864. rst $38
  865. rst $38
  866. rst $38
  867. rst $38
  868. rst $38
  869. rst $38
  870. rst $38
  871. ld sp,$e000
  872. di
  873. rst $08
  874. nop
  875. ld a,$07
  876. ld [$c654],a
  877. ld a,$ff
  878. ld [$c655],a
  879. ld a,$20
  880. rst $08
  881. or e
  882. ld hl,$0400
  883. rst $08
  884. jp z,$a2cd
  885. rlca
  886. ld de,$0204
  887. rst $08
  888. ld d,a
  889. ld c,$80
  890. ld de,$059c
  891. ld a,[$c654]
  892. ld b,a
  893. ld a,[$c655]
  894. push bc
  895. push hl
  896. push af
  897. ld a,c
  898. ld c,l
  899. ld b,h
  900. ld l,e
  901. ld h,d
  902. ld d,a
  903. ld e,$07
  904. pop af
  905. rrca
  906. push af
  907. call $058a
  908. pop af
  909. ld e,l
  910. ld d,h
  911. pop hl
  912. ld bc,$0020
  913. add hl,bc
  914. pop bc
  915. inc c
  916. dec b
  917. jr nz,$052d
  918. ld hl,$065e
  919. call $083b
  920. ld a,$01
  921. rst $08
  922. or h
  923. ld c,$00
  924. ld a,[$c654]
  925. ld b,a
  926. ld hl,$0104
  927. ld d,$20
  928. ld e,$3e
  929. rst $08
  930. ld e,[hl]
  931. jr c,$0588
  932. ld c,a
  933. inc a
  934. call $0739
  935. ld h,a
  936. ld a,[$c655]
  937. and h
  938. jr z,$0557
  939. ld l,c
  940. ld h,$00
  941. rst $08
  942. ld b,$08
  943. rla
  944. ld bc,$01f5
  945. ei
  946. ld bc,$0201
  947. rlca
  948. ld [bc],a
  949. dec c
  950. ld [bc],a
  951. inc de
  952. ld [bc],a
  953. ld [bc],a
  954. nop
  955. rst $08
  956. ld bc,$0330
  957. rst $08
  958. ld e,e
  959. ret
  960. ldi a,[hl]
  961. or a
  962. jr nz,$058f
  963. ld a,$0d
  964. rst $08
  965. cp c
  966. ld a,$01
  967. rst $08
  968. cp c
  969. ret
  970. jr nz,$05ee
  971. ld b,c
  972. ld d,e
  973. ld d,e
  974. ld d,a
  975. ld c,a
  976. ld d,d
  977. ld b,h
  978. jr nz,$05f0
  979. ld c,[hl]
  980. ld d,b
  981. ld d,l
  982. ld d,h
  983. ld c,$0d
  984. ld bc,$2000
  985. or a
  986. xor h
  987. rst $10
  988. jp z,$ddde
  989. jp z,$b0de
  990. cp h
  991. sbc a,$ae
  992. db $dd
  993. jr nz,$05f4
  994. cp c
  995. sbc a,$b0
  996. pop de
  997. dec c
  998. ld bc,$2000
  999. or a
  1000. cp l
  1001. db $d3
  1002. db $dd
  1003. ld h,$ca
  1004. sbc a,$b9
  1005. rrca
  1006. pop bc
  1007. xor l
  1008. ld c,$d8
  1009. jp c,$0fb0
  1010. adc a,$b6
  1011. inc [hl]
  1012. ld c,$0d
  1013. ld bc,$2000
  1014. ld sp,$ca35
  1015. rst $18
  1016. cp l
  1017. sbc a,$d9
  1018. ld h,$b7
  1019. xor h
  1020. ret
  1021. db $dd
  1022. rrca
  1023. jr nz,$05bc
  1024. or [hl]
  1025. inc [hl]
  1026. cp d
  1027. ld c,$0d
  1028. ld bc,$2000
  1029. jp z,$b2de
  1030. push bc
  1031. ret c
  1032. or b
  1033. rst $10
  1034. db $dd
  1035. call nz,$0fde
  1036. ld h,$42
  1037. ld c,d
  1038. adc a,$b6
  1039. ldd [hl],a
  1040. cp d
  1041. ld c,$0d
  1042. ld bc,$2000
  1043. ret nc
  1044. add a,$b9
  1045. sbc a,$b0
  1046. pop de
  1047. rrca
  1048. or [hl]
  1049. sbc a,$bf
  1050. sbc a,$b3
  1051. or d
  1052. jp c,$b4b6
  1053. ld c,$c3
  1054. sbc a,$b0
  1055. ret nz
  1056. dec c
  1057. ld bc,$2000
  1058. ld b,a
  1059. ld b,d
  1060. jr nz,$0675
  1061. ld c,c
  1062. ld d,e
  1063. ld d,e
  1064. jr nz,$0683
  1065. ld c,a
  1066. ld c,a
  1067. ld c,h
  1068. ld d,e
  1069. dec c
  1070. ld bc,$4b00
  1071. ld c,c
  1072. ld d,e
  1073. ld d,e
  1074. ld c,l
  1075. ld c,a
  1076. ld c,[hl]
  1077. jr nz,$0682
  1078. ld b,c
  1079. ld c,[hl]
  1080. ld c,[hl]
  1081. ld c,a
  1082. ld c,[hl]
  1083. jr nz,$0666
  1084. ld b,d
  1085. ld c,c
  1086. ld c,[hl]
  1087. ld b,c
  1088. ld d,d
  1089. ld e,c
  1090. jr nz,$066e
  1091. ld b,a
  1092. ld b,c
  1093. ld c,l
  1094. ld b,l
  1095. ld b,h
  1096. ld b,c
  1097. ld d,h
  1098. ld b,c
  1099. ld c,e
  1100. ld c,c
  1101. ld d,e
  1102. ld d,e
  1103. ld d,h
  1104. ld c,a
  1105. ld c,a
  1106. ld c,h
  1107. jr nz,$0680
  1108. jp nc,$adc6
  1109. or b
  1110. rrca
  1111. and [hl]
  1112. jr nz,$0626
  1113. db $dd
  1114. ret nz
  1115. cp b
  1116. cp h
  1117. jp $000e
  1118. jr nz,$0671
  1119. rrca
  1120. ld d,e
  1121. ld d,h
  1122. ld b,c
  1123. ld d,d
  1124. ld d,h
  1125. cpl
  1126. ld b,c
  1127. and [hl]
  1128. jr nz,$0631
  1129. cp h
  1130. jp $c0b8
  1131. sbc a,$bb
  1132. or d
  1133. ld c,$00
  1134. nop
  1135. dec l
  1136. dec l
  1137. dec l
  1138. dec l
  1139. dec l
  1140. dec l
  1141. dec l
  1142. dec l
  1143. nop
  1144. call $07a2
  1145. ld a,$20
  1146. ld de,$0204
  1147. ld bc,$1004
  1148. ld hl,$0000
  1149. rst $08
  1150. ld e,c
  1151. ld a,$f0
  1152. ld de,$0208
  1153. ld bc,$1003
  1154. ld hl,$0301
  1155. rst $08
  1156. ld e,c
  1157. ld hl,$0204
  1158. rst $08
  1159. cp b
  1160. ld hl,$059c
  1161. rst $08
  1162. ld l,c
  1163. ld hl,$0607
  1164. rst $08
  1165. cp b
  1166. ld hl,$0686
  1167. rst $08
  1168. ld l,c
  1169. ld hl,$0743
  1170. ld bc,$9902
  1171. call $083e
  1172. ld a,$03
  1173. ldh [$ffae],a
  1174. ld de,$900d
  1175. ld hl,$0000
  1176. rst $08
  1177. ld d,h
  1178. ld a,$80
  1179. ld de,$0606
  1180. ld bc,$0801
  1181. ld hl,$0100
  1182. rst $08
  1183. ld e,c
  1184. ld a,$03
  1185. rst $08
  1186. or h
  1187. ld hl,$c656
  1188. ld e,$20
  1189. ld bc,$0008
  1190. rst $08
  1191. and [hl]
  1192. ld de,$8001
  1193. ld b,$08
  1194. ld hl,$c656
  1195. ld c,$00
  1196. rst $08
  1197. ld d,l
  1198. jp c,$0519
  1199. ld hl,$0636
  1200. ld bc,$0502
  1201. push bc
  1202. push hl
  1203. ld de,$c656
  1204. ld bc,$0008
  1205. push bc
  1206. rst $08
  1207. ld h,a
  1208. pop bc
  1209. ld a,h
  1210. or l
  1211. pop hl
  1212. add hl,bc
  1213. pop bc
  1214. inc c
  1215. or a
  1216. jr z,$0720
  1217. dec b
  1218. jr nz,$0705
  1219. jp $0519
  1220. ld a,[$c654]
  1221. cp c
  1222. ld a,c
  1223. jp nc,$072b
  1224. ld [$c654],a
  1225. call $0739
  1226. ld d,a
  1227. ld a,[$c655]
  1228. or d
  1229. ld [$c655],a
  1230. jp $0519
  1231. push bc
  1232. ld c,a
  1233. ld a,$80
  1234. rlca
  1235. dec c
  1236. jr nz,$073d
  1237. pop bc
  1238. ret
  1239. jr nz,$0745
  1240. jp z,$bddf
  1241. call c,$c4b0
  1242. sbc a,$0f
  1243. and [hl]
  1244. jr nz,$0716
  1245. xor l
  1246. or e
  1247. ret c
  1248. xor [hl]
  1249. cp b
  1250. cp h
  1251. jp $0e20
  1252. nop
  1253. rrca
  1254. ld d,e
  1255. ld d,h
  1256. ld b,c
  1257. ld d,d
  1258. ld d,h
  1259. and [hl]
  1260. jr nz,$0718
  1261. cp h
  1262. jp $c0b8
  1263. sbc a,$bb
  1264. or d
  1265. jr nz,$078c
  1266. ld c,$00
  1267. nop
  1268. ld de,$4000
  1269. ld a,$07
  1270. call $0856
  1271. ld de,$4000
  1272. ld a,$09
  1273. call $0856
  1274. ld de,$4000
  1275. ld a,$0b
  1276. call $0856
  1277. ld de,$4000
  1278. ld a,$0d
  1279. call $0856
  1280. ld de,$4000
  1281. ld a,$0e
  1282. call $0856
  1283. ld de,$4000
  1284. ld a,$0f
  1285. call $0856
  1286. jp $0519
  1287. rst $08
  1288. or l
  1289. ld a,$0c
  1290. rst $08
  1291. cp c
  1292. ld hl,$8800
  1293. ld e,$00
  1294. ld bc,$0a00
  1295. rst $08
  1296. and [hl]
  1297. ld de,$0003
  1298. ld bc,$1409
  1299. rst $08
  1300. ld e,b
  1301. ld a,$80
  1302. ld de,$0204
  1303. ld bc,$1007
  1304. ld hl,$0701
  1305. rst $08
  1306. ld e,c
  1307. ld de,$000d
  1308. ld bc,$1405
  1309. rst $08
  1310. ld e,b
  1311. ld a,$f0
  1312. ld de,$020e
  1313. ld bc,$1003
  1314. ld hl,$0301
  1315. rst $08
  1316. ld e,c
  1317. ld hl,$0101
  1318. rst $08
  1319. cp b
  1320. ld hl,$07e7
  1321. rst $08
  1322. ld l,c
  1323. ret
  1324. ld b,a
  1325. ld b,d
  1326. jr nz,$0836
  1327. ld c,c
  1328. ld d,e
  1329. ld d,e
  1330. jr nz,$0810
  1331. ld c,l
  1332. ld c,c
  1333. ld c,[hl]
  1334. ld c,c
  1335. jr nz,$083d
  1336. ld b,c
  1337. ld c,l
  1338. ld b,l
  1339. nop
  1340. rrca
  1341. cp h
  1342. jp $c9b2
  1343. ld c,$c3
  1344. sbc a,$b0
  1345. ret nz
  1346. rrca
  1347. and [hl]
  1348. jr nz,$07cb
  1349. db $dd
  1350. cp a
  1351. or e
  1352. cp h
  1353. rst $08
  1354. cp l
  1355. ld c,$00
  1356. rrca
  1357. jr nz,$0833
  1358. ld b,c
  1359. jp $47de
  1360. ld b,d
  1361. ld c,e
  1362. ld c,c
  1363. ld d,e
  1364. ld d,e
  1365. jp $bfdd
  1366. or e
  1367. jr nz,$0842
  1368. ld c,$00
  1369. rrca
  1370. ld d,e
  1371. ld d,h
  1372. ld b,c
  1373. ld d,d
  1374. ld d,h
  1375. jp $20de
  1376. cp h
  1377. sbc a,$cc
  1378. sbc a,$dd
  1379. ret
  1380. ld d,e
  1381. ld d,d
  1382. ld b,c
  1383. ld c,l
  1384. call $000e
  1385. nop
  1386. ld bc,$99c2
  1387. ld d,$f0
  1388. ld e,$03
  1389. ld a,[hl]
  1390. or a
  1391. ret z
  1392. push de
  1393. push bc
  1394. rst $08
  1395. ld e,e
  1396. pop bc
  1397. ld a,$20
  1398. add c
  1399. ld c,a
  1400. ld a,$00
  1401. adc b
  1402. ld b,a
  1403. pop de
  1404. inc d
  1405. jr $0842
  1406. ld hl,$c600
  1407. ldi [hl],a
  1408. ld [hl],e
  1409. inc hl
  1410. ld [hl],d
  1411. call $07a2
  1412. ld hl,$07fa
  1413. call $083b
  1414. ldh a,[$ff80]
  1415. push af
  1416. ld hl,$c600
  1417. ldi a,[hl]
  1418. ld e,[hl]
  1419. inc hl
  1420. ld d,[hl]
  1421. ldh [$ff80],a
  1422. ld [$2000],a
  1423. ld hl,$c604
  1424. ld bc,$0028
  1425. rst $08
  1426. ld [bc],a
  1427. pop af
  1428. ldh [$ff80],a
  1429. ld [$2000],a
  1430. ld de,$0304
  1431. rst $08
  1432. ld d,a
  1433. ld b,$07
  1434. ld c,$87
  1435. ld de,$c604
  1436. push bc
  1437. push hl
  1438. ld l,e
  1439. ld h,d
  1440. ldi a,[hl]
  1441. ld b,[hl]
  1442. inc hl
  1443. ld e,[hl]
  1444. inc hl
  1445. ld d,[hl]
  1446. inc hl
  1447. push hl
  1448. or a
  1449. jr z,$08da
  1450. ldh a,[$ff80]
  1451. push af
  1452. ld a,b
  1453. ldh [$ff80],a
  1454. ld [$2000],a
  1455. ld a,d
  1456. cp a,$80
  1457. jr c,$08af
  1458. sub a,$40
  1459. ld d,a
  1460. push bc
  1461. ld hl,$c634
  1462. ld bc,$0020
  1463. rst $08
  1464. ld [bc],a
  1465. pop bc
  1466. pop af
  1467. ldh [$ff80],a
  1468. ld [$2000],a
  1469. ld d,c
  1470. ld e,$07
  1471. pop hl
  1472. pop bc
  1473. push bc
  1474. push hl
  1475. ld hl,$c638
  1476. rst $08
  1477. ld e,e
  1478. pop de
  1479. pop hl
  1480. ld bc,$0020
  1481. add hl,bc
  1482. pop bc
  1483. inc c
  1484. dec b
  1485. jp nz,$088f
  1486. push bc
  1487. push hl
  1488. push de
  1489. ld a,$01
  1490. rst $08
  1491. or h
  1492. pop de
  1493. pop hl
  1494. pop bc
  1495. ld a,$07
  1496. sub b
  1497. ld b,a
  1498. ld c,$00
  1499. ld hl,$0104
  1500. ld d,$20
  1501. ld e,$3e
  1502. push bc
  1503. rst $08
  1504. ld e,[hl]
  1505. pop bc
  1506. jr c,$08ff
  1507. ld c,a
  1508. push bc
  1509. call $0906
  1510. pop bc
  1511. jr nc,$08e7
  1512. jp $085d
  1513. ldh a,[$ff8a]
  1514. and a,$04
  1515. ret z
  1516. rst $08
  1517. ld bc,$0421
  1518. add a,$87
  1519. add a
  1520. ld e,a
  1521. ld d,$00
  1522. add hl,de
  1523. ldi a,[hl]
  1524. or a
  1525. scf
  1526. ret z
  1527. ldh a,[$ff8a]
  1528. ld [$c660],a
  1529. ldh a,[$ff80]
  1530. ld [$c65f],a
  1531. push af
  1532. ldi a,[hl]
  1533. ldh [$ff80],a
  1534. ld [$2000],a
  1535. ldi a,[hl]
  1536. ld h,[hl]
  1537. ld l,a
  1538. ld a,h
  1539. cp a,$80
  1540. jr c,$092f
  1541. sub a,$40
  1542. ld h,a
  1543. ldi a,[hl]
  1544. ld b,[hl]
  1545. inc hl
  1546. ld e,[hl]
  1547. inc hl
  1548. ld d,[hl]
  1549. cp a,$44
  1550. jr z,$09a2
  1551. pop af
  1552. ldh [$ff80],a
  1553. ld [$2000],a
  1554. push bc
  1555. push de
  1556. ld a,$04
  1557. add c
  1558. ld l,a
  1559. ld h,$01
  1560. rst $08
  1561. cp b
  1562. ld a,$2a
  1563. rst $08
  1564. cp e
  1565. ld a,[$c660]
  1566. and a,$01
  1567. call nz,$0c51
  1568. pop de
  1569. pop bc
  1570. ret c
  1571. ldh a,[$ff80]
  1572. push af
  1573. ld a,b
  1574. ld [$c65e],a
  1575. ldh [$ff80],a
  1576. ld [$2000],a
  1577. ld l,e
  1578. ld h,d
  1579. push bc
  1580. call $09c2
  1581. pop bc
  1582. jr c,$0972
  1583. ld de,$0cfc
  1584. jr $097e
  1585. ld de,$0d0f
  1586. ld a,[$c664]
  1587. or a
  1588. jr z,$097e
  1589. ld de,$0d24
  1590. pop af
  1591. ldh [$ff80],a
  1592. ld [$2000],a
  1593. ld a,$04
  1594. add c
  1595. push de
  1596. push bc
  1597. ld e,a
  1598. ld d,$02
  1599. rst $08
  1600. ld d,a
  1601. ld c,l
  1602. ld b,h
  1603. pop de
  1604. ld a,$80
  1605. add e
  1606. ld d,a
  1607. ld e,$07
  1608. pop hl
  1609. rst $08
  1610. ld e,e
  1611. ld hl,$07fa
  1612. call $083b
  1613. xor a
  1614. ret
  1615. pop af
  1616. ldh [$ff80],a
  1617. ld [$2000],a
  1618. ld c,b
  1619. ld hl,$c600
  1620. ld b,[hl]
  1621. inc hl
  1622. ldi a,[hl]
  1623. ld h,[hl]
  1624. ld l,a
  1625. push bc
  1626. push hl
  1627. ld a,c
  1628. call $0856
  1629. pop de
  1630. pop af
  1631. ld hl,$c600
  1632. ldi [hl],a
  1633. ld [hl],e
  1634. inc hl
  1635. ld [hl],d
  1636. scf
  1637. ret
  1638. xor a
  1639. ld [$c664],a
  1640. ld a,[$c660]
  1641. bit 0,a
  1642. jp nz,$0a91
  1643. bit 7,h
  1644. jr nz,$0a07
  1645. push hl
  1646. call $0a18
  1647. pop hl
  1648. ret c
  1649. ld b,$00
  1650. add hl,bc
  1651. ld c,e
  1652. ld b,d
  1653. push bc
  1654. ld a,b
  1655. cp a,$08
  1656. jr c,$09e6
  1657. ld bc,$0800
  1658. ld e,l
  1659. ld d,h
  1660. push de
  1661. push bc
  1662. ld hl,$c900
  1663. rst $08
  1664. ld [bc],a
  1665. pop bc
  1666. push bc
  1667. ld de,$c900
  1668. ld hl,$c500
  1669. rst $08
  1670. db $ec
  1671. pop de
  1672. pop hl
  1673. add hl,de
  1674. pop bc
  1675. ld a,c
  1676. sub e
  1677. ld c,a
  1678. ld a,b
  1679. sbc d
  1680. ld b,a
  1681. or c
  1682. jr nz,$09dd
  1683. ret
  1684. ld de,$c000
  1685. add hl,de
  1686. push hl
  1687. call $0a18
  1688. pop hl
  1689. ret c
  1690. ld b,$00
  1691. add hl,bc
  1692. ld c,e
  1693. ld b,d
  1694. jr $09dd
  1695. ld e,[hl]
  1696. inc hl
  1697. ld d,[hl]
  1698. inc hl
  1699. push de
  1700. ld b,[hl]
  1701. inc hl
  1702. ldi a,[hl]
  1703. ld c,[hl]
  1704. inc hl
  1705. push bc
  1706. push af
  1707. ld e,l
  1708. ld d,h
  1709. push bc
  1710. ld hl,$c400
  1711. ld b,$00
  1712. push hl
  1713. rst $08
  1714. ld [bc],a
  1715. pop de
  1716. pop bc
  1717. ld hl,$c500
  1718. push bc
  1719. push de
  1720. rst $08
  1721. ld l,e
  1722. pop de
  1723. pop bc
  1724. jr nc,$0a85
  1725. pop hl
  1726. pop bc
  1727. pop de
  1728. ld a,$2e
  1729. bit 0,b
  1730. jr nz,$0a46
  1731. xor a
  1732. add a,$05
  1733. add c
  1734. ld c,a
  1735. push bc
  1736. push bc
  1737. ld a,$00
  1738. adc a
  1739. ld b,a
  1740. ld a,e
  1741. sub c
  1742. ld e,a
  1743. ld a,d
  1744. sbc b
  1745. ld d,a
  1746. pop bc
  1747. ld c,$00
  1748. ld a,h
  1749. ld hl,$c50a
  1750. ld [hl],a
  1751. ld hl,$c500
  1752. push de
  1753. rst $08
  1754. jp [hl]
  1755. pop de
  1756. pop bc
  1757. jr c,$0a8d
  1758. bit 0,b
  1759. ret z
  1760. push bc
  1761. push de
  1762. ld b,$00
  1763. ld de,$ffd2
  1764. ld hl,$c500
  1765. rst $08
  1766. ld [$21d1],a
  1767. ld l,$00
  1768. add hl,de
  1769. ld e,l
  1770. ld d,h
  1771. pop bc
  1772. ld a,c
  1773. sub a,$2e
  1774. ld c,a
  1775. xor a
  1776. ret
  1777. ld a,$01
  1778. ld [$c664],a
  1779. pop hl
  1780. pop bc
  1781. pop de
  1782. or a,$01
  1783. scf
  1784. ret
  1785. bit 7,h
  1786. jr nz,$0add
  1787. push hl
  1788. call $0aee
  1789. pop hl
  1790. ret c
  1791. ld b,$00
  1792. add hl,bc
  1793. ld c,e
  1794. ld b,d
  1795. push bc
  1796. ld a,b
  1797. or a
  1798. jr z,$0aa8
  1799. ld bc,$0100
  1800. ld e,l
  1801. ld d,h
  1802. push de
  1803. push bc
  1804. ld hl,$c900
  1805. rst $08
  1806. ld [bc],a
  1807. pop bc
  1808. push bc
  1809. ld de,$c900
  1810. call $0ce1
  1811. pop de
  1812. pop hl
  1813. push af
  1814. add hl,de
  1815. pop af
  1816. pop bc
  1817. jr c,$0adb
  1818. ld a,c
  1819. sub e
  1820. ld c,a
  1821. ld a,b
  1822. sbc d
  1823. ld b,a
  1824. or c
  1825. jr nz,$0aa0
  1826. call $0bae
  1827. jr c,$0adb
  1828. ld a,$02
  1829. call $0cc1
  1830. jr c,$0adb
  1831. call $0cd2
  1832. xor a
  1833. ret
  1834. scf
  1835. ret
  1836. ld de,$c000
  1837. add hl,de
  1838. push hl
  1839. call $0aee
  1840. pop hl
  1841. ret c
  1842. ld b,$00
  1843. add hl,bc
  1844. ld c,e
  1845. ld b,d
  1846. jr $0aa0
  1847. ld e,[hl]
  1848. inc hl
  1849. ld d,[hl]
  1850. inc hl
  1851. push de
  1852. ld b,[hl]
  1853. inc hl
  1854. ldi a,[hl]
  1855. ld c,[hl]
  1856. inc hl
  1857. push bc
  1858. ld [$c661],a
  1859. ld e,l
  1860. ld d,h
  1861. push bc
  1862. ld hl,$c400
  1863. ld b,$00
  1864. push hl
  1865. rst $08
  1866. ld [bc],a
  1867. pop de
  1868. pop bc
  1869. ld hl,$c700
  1870. push bc
  1871. push de
  1872. call $0cf3
  1873. pop de
  1874. pop bc
  1875. jp nc,$0b97
  1876. pop bc
  1877. pop de
  1878. cp a,$ff
  1879. jp z,$0baa
  1880. ld a,$2e
  1881. bit 0,b
  1882. jr nz,$0b24
  1883. xor a
  1884. add a,$05
  1885. add c
  1886. ld c,a
  1887. push bc
  1888. push bc
  1889. ld a,$00
  1890. adc a
  1891. ld b,a
  1892. ld a,e
  1893. sub c
  1894. ld e,a
  1895. ld a,d
  1896. sbc b
  1897. ld d,a
  1898. pop bc
  1899. ld a,[$c662]
  1900. ld c,a
  1901. ld a,$ff
  1902. ld hl,$c70a
  1903. ld [hl],a
  1904. push de
  1905. push bc
  1906. ld a,$05
  1907. call $0cc1
  1908. pop bc
  1909. pop de
  1910. push de
  1911. ld hl,$c700
  1912. call $0ced
  1913. pop de
  1914. pop bc
  1915. jr nc,$0b5b
  1916. cp a,$ff
  1917. jr z,$0baa
  1918. ld a,$04
  1919. jr $0ba4
  1920. push bc
  1921. push de
  1922. push hl
  1923. ld hl,[sp+$00]
  1924. ld d,h
  1925. ld e,l
  1926. ld hl,$ce00
  1927. ld c,$02
  1928. call $0cbb
  1929. pop hl
  1930. pop de
  1931. pop bc
  1932. ld a,[$c663]
  1933. cp h
  1934. jr nz,$0ba2
  1935. ld a,$05
  1936. cp l
  1937. jr nz,$0ba2
  1938. xor a
  1939. bit 0,b
  1940. ret z
  1941. push bc
  1942. push de
  1943. ld b,$00
  1944. ld de,$ffd2
  1945. ld hl,$c700
  1946. call $0ce7
  1947. pop de
  1948. ld hl,$002e
  1949. add hl,de
  1950. ld e,l
  1951. ld d,h
  1952. pop bc
  1953. ld a,c
  1954. sub a,$2e
  1955. ld c,a
  1956. xor a
  1957. ret
  1958. ld a,$01
  1959. ld [$c664],a
  1960. pop bc
  1961. pop de
  1962. ld a,$07
  1963. jr $0ba4
  1964. ld a,$05
  1965. call $0cc1
  1966. call $0cd2
  1967. or a,$01
  1968. scf
  1969. ret
  1970. ld hl,$c709
  1971. ldi a,[hl]
  1972. push hl
  1973. inc hl
  1974. ld b,$00
  1975. bit 0,a
  1976. ld a,$fe
  1977. jr z,$0bbe
  1978. sub a,$2e
  1979. sub [hl]
  1980. ld e,a
  1981. ld a,$ff
  1982. sbc b
  1983. ld d,a
  1984. call $0ce7
  1985. pop de
  1986. ret c
  1987. ld a,[$c661]
  1988. ld [de],a
  1989. ld bc,$0001
  1990. jp $0ce1
  1991. rrca
  1992. jp nz,$bcb3
  1993. db $dd
  1994. cp h
  1995. sbc a,$ad
  1996. db $dd
  1997. set 3,[hl]
  1998. pop bc
  1999. xor l
  2000. or e
  2001. jr nz,$0ba9
  2002. cp h
  2003. jp $2020
  2004. ld c,$00
  2005. cp c
  2006. sbc a,$b0
  2007. pop de
  2008. adc a,$de
  2009. or b
  2010. or d
  2011. rrca
  2012. call nz,$b3de
  2013. cp h
  2014. and [hl]
  2015. jr nz,$0bb1
  2016. xor a
  2017. jp nz,$20b9
  2018. ld c,$00
  2019. ld b,c
  2020. adc a,$de
  2021. ret nz
  2022. db $dd
  2023. rrca
  2024. and [hl]
  2025. jr nz,$0bbd
  2026. cp h
  2027. jp $c0b8
  2028. sbc a,$bb
  2029. or d
  2030. jr nz,$0c31
  2031. jr nz,$0c21
  2032. nop
  2033. nop
  2034. rrca
  2035. jp nz,$bcb3
  2036. db $dd
  2037. and [hl]
  2038. jr nz,$0bde
  2039. xor l
  2040. or e
  2041. cp h
  2042. cp l
  2043. reti
  2044. jp z,$b1de
  2045. or d
  2046. jp z,$0e20
  2047. nop
  2048. jr nz,$0c4c
  2049. jr nz,$0c4e
  2050. jr nz,$0c50
  2051. jr nz,$0c52
  2052. jr nz,$0c54
  2053. jr nz,$0c56
  2054. jr nz,$0c58
  2055. jr nz,$0c5a
  2056. nop
  2057. ld b,d
  2058. adc a,$de
  2059. ret nz
  2060. db $dd
  2061. rrca
  2062. and [hl]
  2063. jr nz,$0bf9
  2064. cp h
  2065. jp $c0b8
  2066. sbc a,$bb
  2067. or d
  2068. jr nz,$0c6d
  2069. jr nz,$0c5d
  2070. nop
  2071. nop
  2072. ld hl,$0bd3
  2073. call $083b
  2074. rst $08
  2075. ret c
  2076. bit 1,a
  2077. jr nz,$0ca4
  2078. and a,$01
  2079. jr z,$0c57
  2080. ld hl,$0c15
  2081. call $083b
  2082. ld hl,$ce00
  2083. ld de,$c800
  2084. ld c,$10
  2085. call $0cbb
  2086. jr c,$0ca4
  2087. rst $10
  2088. add hl,sp
  2089. nop
  2090. pop hl
  2091. ld de,$c802
  2092. ld bc,$000d
  2093. rst $08
  2094. ld h,a
  2095. ld a,h
  2096. or l
  2097. ld a,$06
  2098. jr nz,$0ca6
  2099. ld a,[$c800]
  2100. or a
  2101. jr nz,$0ca6
  2102. ld a,[$c801]
  2103. ld [$c663],a
  2104. ld a,[$c80f]
  2105. ld [$c662],a
  2106. ld a,$01
  2107. call $0cc1
  2108. jr c,$0ca4
  2109. call $0cd2
  2110. xor a
  2111. ret
  2112. scf
  2113. ret
  2114. call $0cc1
  2115. call $0cd2
  2116. scf
  2117. ret
  2118. ld b,a
  2119. ld b,d
  2120. jr nz,$0cfd
  2121. ld c,c
  2122. ld d,e
  2123. ld d,e
  2124. jr nz,$0d04
  2125. ld b,l
  2126. ld c,[hl]
  2127. ld d,l
  2128. jr nz,$0c8b
  2129. jp $7ccf
  2130. jr $0cf7
  2131. ld [$c800],a
  2132. ld de,$ce00
  2133. ld hl,$c800
  2134. ld c,$01
  2135. rst $08
  2136. jp $7fcf
  2137. jr $0cf7
  2138. rst $08
  2139. jp $73cf
  2140. jr $0cf7
  2141. ld hl,$c700
  2142. rst $08
  2143. jp $79cf
  2144. jr $0cf7
  2145. rst $08
  2146. jp $7dcf
  2147. jr $0cf7
  2148. rst $08
  2149. jp $77cf
  2150. jr $0cf7
  2151. rst $08
  2152. jp $76cf
  2153. jr $0cf7
  2154. rst $08
  2155. jp $75cf
  2156. push af
  2157. rst $08
  2158. db $db
  2159. pop af
  2160. ret
  2161. rrca
  2162. dec l
  2163. jr nz,$0d3c
  2164. jp $bfdd
  2165. or e
  2166. jr nz,$0cc1
  2167. jp c,$bccf
  2168. ret nz
  2169. ld a,$20
  2170. dec l
  2171. ld c,$00
  2172. rrca
  2173. dec l
  2174. jr nz,$0cd6
  2175. db $dd
  2176. cp a
  2177. or e
  2178. jp $b7de
  2179. rst $08
  2180. cp [hl]
  2181. db $dd
  2182. jp $bcde
  2183. ret nz
  2184. jr nz,$0d4f
  2185. ld c,$00
  2186. rrca
  2187. dec l
  2188. jr nz,$0cdd
  2189. push bc
  2190. cp h
  2191. sbc a,$0e
  2192. call z,$b2a7
  2193. reti
  2194. rrca
  2195. or [hl]
  2196. sbc a,$b1
  2197. ret c
  2198. rst $08
  2199. cp l
  2200. jr nz,$0d66
  2201. ld c,$00
  2202. rst $38
  2203. rst $38
  2204. rst $38
  2205. rst $38
  2206. rst $38
  2207. rst $38
  2208. rst $38
  2209. rst $38
  2210. rst $38
  2211. rst $38
  2212. rst $38
  2213. rst $38
  2214. rst $38
  2215. rst $38
  2216. rst $38
  2217. rst $38
  2218. rst $38
  2219. rst $38
  2220. rst $38
  2221. rst $38
  2222. rst $38
  2223. rst $38
  2224. rst $38
  2225. rst $38
  2226. rst $38
  2227. rst $38
  2228. rst $38
  2229. rst $38
  2230. rst $38
  2231. rst $38
  2232. rst $38
  2233. rst $38
  2234. rst $38
  2235. rst $38
  2236. rst $38
  2237. rst $38
  2238. rst $38
  2239. rst $38
  2240. rst $38
  2241. rst $38
  2242. rst $38
  2243. rst $38
  2244. rst $38
  2245. rst $38
  2246. rst $38
  2247. rst $38
  2248. rst $38
  2249. rst $38
  2250. rst $38
  2251. rst $38
  2252. rst $38
  2253. rst $38
  2254. rst $38
  2255. rst $38
  2256. rst $38
  2257. rst $38
  2258. rst $38
  2259. rst $38
  2260. rst $38
  2261. rst $38
  2262. rst $38
  2263. rst $38
  2264. rst $38
  2265. rst $38
  2266. rst $38
  2267. rst $38
  2268. rst $38
  2269. rst $38
  2270. rst $38
  2271. rst $38
  2272. rst $38
  2273. rst $38
  2274. rst $38
  2275. rst $38
  2276. rst $38
  2277. rst $38
  2278. rst $38
  2279. rst $38
  2280. rst $38
  2281. rst $38
  2282. rst $38
  2283. rst $38
  2284. rst $38
  2285. rst $38
  2286. rst $38
  2287. rst $38
  2288. rst $38
  2289. rst $38
  2290. rst $38
  2291. rst $38
  2292. rst $38
  2293. rst $38
  2294. rst $38
  2295. rst $38
  2296. rst $38
  2297. rst $38
  2298. rst $38
  2299. rst $38
  2300. rst $38
  2301. rst $38
  2302. rst $38
  2303. rst $38
  2304. rst $38
  2305. rst $38
  2306. rst $38
  2307. rst $38
  2308. rst $38
  2309. rst $38
  2310. rst $38
  2311. rst $38
  2312. rst $38
  2313. rst $38
  2314. rst $38
  2315. rst $38
  2316. rst $38
  2317. rst $38
  2318. rst $38
  2319. rst $38
  2320. rst $38
  2321. rst $38
  2322. rst $38
  2323. rst $38
  2324. rst $38
  2325. rst $38
  2326. rst $38
  2327. rst $38
  2328. rst $38
  2329. rst $38
  2330. rst $38
  2331. rst $38
  2332. rst $38
  2333. rst $38
  2334. rst $38
  2335. rst $38
  2336. rst $38
  2337. rst $38
  2338. rst $38
  2339. rst $38
  2340. rst $38
  2341. rst $38
  2342. rst $38
  2343. rst $38
  2344. rst $38
  2345. rst $38
  2346. rst $38
  2347. rst $38
  2348. rst $38
  2349. rst $38
  2350. rst $38
  2351. rst $38
  2352. rst $38
  2353. rst $38
  2354. rst $38
  2355. rst $38
  2356. rst $38
  2357. rst $38
  2358. rst $38
  2359. rst $38
  2360. rst $38
  2361. rst $38
  2362. rst $38
  2363. rst $38
  2364. rst $38
  2365. rst $38
  2366. rst $38
  2367. rst $38
  2368. rst $38
  2369. rst $38
  2370. rst $38
  2371. rst $38
  2372. rst $38
  2373. rst $38
  2374. rst $38
  2375. rst $38
  2376. rst $38
  2377. rst $38
  2378. rst $38
  2379. rst $38
  2380. rst $38
  2381. rst $38
  2382. rst $38
  2383. rst $38
  2384. rst $38
  2385. rst $38
  2386. rst $38
  2387. rst $38
  2388. rst $38
  2389. rst $38
  2390. rst $38
  2391. rst $38
  2392. rst $38
  2393. rst $38
  2394. rst $38
  2395. rst $38
  2396. rst $38
  2397. rst $38
  2398. rst $38
  2399. push af
  2400. push hl
  2401. ld l,$ff
  2402. ld a,[$c203]
  2403. ld h,a
  2404. bit 0,h
  2405. jr z,$0e2b
  2406. push hl
  2407. ld a,[$c2ea]
  2408. bit 1,a
  2409. jr z,$0e27
  2410. ldh a,[$ff80]
  2411. push af
  2412. ld a,[$c2ed]
  2413. call $03f2
  2414. call $11ce
  2415. pop af
  2416. call $03f2
  2417. pop hl
  2418. jr $0e2b
  2419. call $11ce
  2420. pop hl
  2421. bit 6,h
  2422. jp z,$0f2d
  2423. res 6,l
  2424. push hl
  2425. ld a,[$c91c]
  2426. or a
  2427. jp z,$0ef1
  2428. push bc
  2429. push de
  2430. ld a,[$c91c]
  2431. and a,$01
  2432. jp z,$0e92
  2433. ld a,[$c923]
  2434. ld l,a
  2435. ld a,[$c924]
  2436. ld h,a
  2437. push hl
  2438. ld a,[$c91f]
  2439. ld e,a
  2440. ld a,[$c920]
  2441. ld d,a
  2442. ld a,[de]
  2443. ldi [hl],a
  2444. inc de
  2445. ld a,[de]
  2446. ldi [hl],a
  2447. inc de
  2448. ld bc,$001e
  2449. add hl,bc
  2450. ld a,[de]
  2451. ldi [hl],a
  2452. inc de
  2453. ld a,[de]
  2454. ldi [hl],a
  2455. inc de
  2456. pop hl
  2457. ld a,[$c2fb]
  2458. cp a,$11
  2459. jp nz,$0e92
  2460. ldh a,[$ff4f]
  2461. or a,$01
  2462. ldh [$ff4f],a
  2463. ld a,[$c921]
  2464. ld e,a
  2465. ld a,[$c922]
  2466. ld d,a
  2467. ld a,[de]
  2468. ldi [hl],a
  2469. inc de
  2470. ld a,[de]
  2471. ldi [hl],a
  2472. inc de
  2473. ld bc,$001e
  2474. add hl,bc
  2475. ld a,[de]
  2476. ldi [hl],a
  2477. inc de
  2478. ld a,[de]
  2479. ldi [hl],a
  2480. inc de
  2481. ldh a,[$ff4f]
  2482. and a,$fe
  2483. ldh [$ff4f],a
  2484. ld a,[$c91c]
  2485. and a,$02
  2486. jp z,$0ee8
  2487. ld a,[$c929]
  2488. ld l,a
  2489. ld a,[$c92a]
  2490. ld h,a
  2491. push hl
  2492. ld a,[$c925]
  2493. ld e,a
  2494. ld a,[$c926]
  2495. ld d,a
  2496. ld a,[de]
  2497. ldi [hl],a
  2498. inc de
  2499. ld a,[de]
  2500. ldi [hl],a
  2501. inc de
  2502. ld bc,$001e
  2503. add hl,bc
  2504. ld a,[de]
  2505. ldi [hl],a
  2506. inc de
  2507. ld a,[de]
  2508. ldi [hl],a
  2509. inc de
  2510. pop hl
  2511. ld a,[$c2fb]
  2512. cp a,$11
  2513. jp nz,$0ee8
  2514. ldh a,[$ff4f]
  2515. or a,$01
  2516. ldh [$ff4f],a
  2517. ld a,[$c927]
  2518. ld e,a
  2519. ld a,[$c928]
  2520. ld d,a
  2521. ld a,[de]
  2522. ldi [hl],a
  2523. inc de
  2524. ld a,[de]
  2525. ldi [hl],a
  2526. inc de
  2527. ld bc,$001e
  2528. add hl,bc
  2529. ld a,[de]
  2530. ldi [hl],a
  2531. inc de
  2532. ld a,[de]
  2533. ldi [hl],a
  2534. inc de
  2535. ldh a,[$ff4f]
  2536. and a,$fe
  2537. ldh [$ff4f],a
  2538. xor a
  2539. ld [$c91c],a
  2540. pop de
  2541. pop bc
  2542. jp $0f2c
  2543. push bc
  2544. ld hl,$c89c
  2545. ld a,$80
  2546. ld c,$68
  2547. ld [$ff00+c],a
  2548. ld c,$6a
  2549. ld [$ff00+c],a
  2550. ld b,$08
  2551. ld c,$69
  2552. ldi a,[hl]
  2553. ld [$ff00+c],a
  2554. ldi a,[hl]
  2555. ld [$ff00+c],a
  2556. ldi a,[hl]
  2557. ld [$ff00+c],a
  2558. ldi a,[hl]
  2559. ld [$ff00+c],a
  2560. ldi a,[hl]
  2561. ld [$ff00+c],a
  2562. ldi a,[hl]
  2563. ld [$ff00+c],a
  2564. ldi a,[hl]
  2565. ld [$ff00+c],a
  2566. ldi a,[hl]
  2567. ld [$ff00+c],a
  2568. dec b
  2569. jr nz,$0f01
  2570. ld b,$08
  2571. ld c,$6b
  2572. ldi a,[hl]
  2573. ld [$ff00+c],a
  2574. ldi a,[hl]
  2575. ld [$ff00+c],a
  2576. ldi a,[hl]
  2577. ld [$ff00+c],a
  2578. ldi a,[hl]
  2579. ld [$ff00+c],a
  2580. ldi a,[hl]
  2581. ld [$ff00+c],a
  2582. ldi a,[hl]
  2583. ld [$ff00+c],a
  2584. ldi a,[hl]
  2585. ld [$ff00+c],a
  2586. ldi a,[hl]
  2587. ld [$ff00+c],a
  2588. dec b
  2589. jr nz,$0f18
  2590. pop bc
  2591. pop hl
  2592. bit 1,h
  2593. jr z,$0f36
  2594. res 1,l
  2595. call $fff5
  2596. bit 2,h
  2597. jr z,$0f47
  2598. res 2,l
  2599. ldh a,[$ff44]
  2600. cp a,$90
  2601. jr z,$0f3c
  2602. ld a,[$c211]
  2603. ldh [$ff40],a
  2604. bit 3,h
  2605. jr z,$0f4e
  2606. call $120e
  2607. bit 4,h
  2608. jr z,$0f71
  2609. res 4,l
  2610. ld a,[$c211]
  2611. bit 3,a
  2612. jr nz,$0f67
  2613. ld a,[$c20c]
  2614. ldh [$ff43],a
  2615. ld a,[$c20e]
  2616. ldh [$ff42],a
  2617. jr $0f71
  2618. ld a,[$c20d]
  2619. ldh [$ff43],a
  2620. ld a,[$c20f]
  2621. ldh [$ff42],a
  2622. bit 5,h
  2623. jr z,$0f86
  2624. res 5,l
  2625. ld a,[$c21d]
  2626. ldh [$ff47],a
  2627. ld a,[$c21e]
  2628. ldh [$ff48],a
  2629. ld a,[$c21f]
  2630. ldh [$ff49],a
  2631. bit 7,h
  2632. jr z,$0fca
  2633. push hl
  2634. push bc
  2635. push de
  2636. ld hl,$c21a
  2637. ldi a,[hl]
  2638. push af
  2639. ldi a,[hl]
  2640. ld h,[hl]
  2641. ld l,a
  2642. push hl
  2643. ldh a,[$ff81]
  2644. push af
  2645. ldh a,[$ff80]
  2646. push af
  2647. ld a,[$c225]
  2648. call $03d5
  2649. ld a,[$c224]
  2650. call $03f2
  2651. ld hl,$0fb6
  2652. push hl
  2653. ld a,[$c226]
  2654. ld l,a
  2655. ld a,[$c227]
  2656. ld h,a
  2657. push hl
  2658. ret
  2659. pop af
  2660. call $03f2
  2661. pop af
  2662. call $03d5
  2663. pop de
  2664. pop af
  2665. ld hl,$c21a
  2666. ldi [hl],a
  2667. ld [hl],e
  2668. inc hl
  2669. ld [hl],d
  2670. pop de
  2671. pop bc
  2672. pop hl
  2673. ld a,[$c203]
  2674. and l
  2675. ld [$c203],a
  2676. ld [$c204],a
  2677. ld a,[$c209]
  2678. inc a
  2679. ld [$c209],a
  2680. pop hl
  2681. pop af
  2682. reti
  2683. push af
  2684. push hl
  2685. ld a,$00
  2686. ldh [$ff07],a
  2687. ld a,$bc
  2688. ldh [$ff06],a
  2689. ld a,$04
  2690. ldh [$ff07],a
  2691. ld hl,$ffff
  2692. res 2,[hl]
  2693. ei
  2694. push bc
  2695. push de
  2696. ld a,[$c20a]
  2697. inc a
  2698. ld [$c20a],a
  2699. jr nz,$1004
  2700. ld a,[$c20b]
  2701. inc a
  2702. ld [$c20b],a
  2703. call $1a64
  2704. call $2a49
  2705. ld a,[$c208]
  2706. or a
  2707. jr z,$101a
  2708. inc a
  2709. and a,$1f
  2710. jr nz,$101a
  2711. ld [$c206],a
  2712. ld a,$18
  2713. ld [$c208],a
  2714. ld a,[$c2e8]
  2715. or a
  2716. jr z,$103e
  2717. ldh a,[$ff81]
  2718. push af
  2719. ld a,$03
  2720. call $03d5
  2721. ldh a,[$ff80]
  2722. push af
  2723. ld a,$18
  2724. call $03f2
  2725. call $6db1
  2726. pop af
  2727. call $03f2
  2728. pop af
  2729. call $03d5
  2730. ld hl,[sp+$00]
  2731. ld bc,$27f0
  2732. add hl,bc
  2733. bit 7,h
  2734. jr z,$105f
  2735. ld hl,[sp+$00]
  2736. ld a,[$c21b]
  2737. ld e,a
  2738. ld a,[$c21c]
  2739. ld d,a
  2740. ld a,[$c21a]
  2741. ld c,a
  2742. ld b,$00
  2743. di
  2744. ld sp,$e000
  2745. jp $1d90
  2746. pop de
  2747. pop bc
  2748. ld hl,$ffff
  2749. set 2,[hl]
  2750. pop hl
  2751. pop af
  2752. reti
  2753. push af
  2754. push hl
  2755. ldh a,[$ff01]
  2756. ld [$c321],a
  2757. ld a,$01
  2758. ld [$c31f],a
  2759. ld a,[$c320]
  2760. ldh [$ff01],a
  2761. ld a,[$c322]
  2762. ldh [$ff02],a
  2763. ld hl,$1090
  2764. ld a,[$c323]
  2765. add a
  2766. add l
  2767. ld l,a
  2768. ld a,$00
  2769. adc h
  2770. ld h,a
  2771. ldi a,[hl]
  2772. ld h,[hl]
  2773. ld l,a
  2774. jp [hl]
  2775. and [hl]
  2776. <corrupted stop>
  2777. <corrupted stop>
  2778. <corrupted stop>
  2779. <corrupted stop>
  2780. ld de,$111d
  2781. jr nc,$10af
  2782. ld e,a
  2783. ld de,$116c
  2784. xor c
  2785. <corrupted stop>
  2786. <corrupted stop>
  2787. pop af
  2788. reti
  2789. ld a,$02
  2790. ld [$c323],a
  2791. pop hl
  2792. pop af
  2793. reti
  2794. ld a,$06
  2795. ld [$c323],a
  2796. pop hl
  2797. pop af
  2798. reti
  2799. ld a,[$c321]
  2800. cp a,$a0
  2801. jr nz,$10c9
  2802. ld a,$b0
  2803. ldh [$ff01],a
  2804. ld a,$09
  2805. ld [$c323],a
  2806. pop hl
  2807. pop af
  2808. reti
  2809. ld a,[$c327]
  2810. ld l,a
  2811. ld a,[$c328]
  2812. ld h,a
  2813. ld a,[$c321]
  2814. ldi [hl],a
  2815. ld a,l
  2816. ld [$c327],a
  2817. ld a,h
  2818. ld [$c328],a
  2819. ld a,[$c325]
  2820. ld l,a
  2821. ld a,[$c326]
  2822. ld h,a
  2823. dec hl
  2824. ld a,l
  2825. ld [$c325],a
  2826. ld a,h
  2827. ld [$c326],a
  2828. or l
  2829. jr nz,$10f9
  2830. ld a,$03
  2831. ld [$c323],a
  2832. pop hl
  2833. pop af
  2834. reti
  2835. ld a,[$c321]
  2836. ld [$c329],a
  2837. ld a,$04
  2838. ld [$c323],a
  2839. pop hl
  2840. pop af
  2841. reti
  2842. ld a,$01
  2843. ld [$c324],a
  2844. ld a,[$c321]
  2845. ld [$c32a],a
  2846. ld a,$00
  2847. ld [$c323],a
  2848. pop hl
  2849. pop af
  2850. reti
  2851. ld a,[$c321]
  2852. cp a,$a2
  2853. jr nz,$112d
  2854. ld a,$b2
  2855. ldh [$ff01],a
  2856. ld a,$06
  2857. ld [$c323],a
  2858. pop hl
  2859. pop af
  2860. reti
  2861. ld a,[$c327]
  2862. ld l,a
  2863. ld a,[$c328]
  2864. ld h,a
  2865. ldi a,[hl]
  2866. ldh [$ff01],a
  2867. ld a,l
  2868. ld [$c327],a
  2869. ld a,h
  2870. ld [$c328],a
  2871. ld a,[$c325]
  2872. ld l,a
  2873. ld a,[$c326]
  2874. ld h,a
  2875. dec hl
  2876. ld a,l
  2877. ld [$c325],a
  2878. ld a,h
  2879. ld [$c326],a
  2880. or l
  2881. jr nz,$115c
  2882. ld a,$07
  2883. ld [$c323],a
  2884. pop hl
  2885. pop af
  2886. reti
  2887. ld a,[$c329]
  2888. ldh [$ff01],a
  2889. ld a,$08
  2890. ld [$c323],a
  2891. pop hl
  2892. pop af
  2893. reti
  2894. ld a,$01
  2895. ld [$c324],a
  2896. ld a,[$c32a]
  2897. ldh [$ff01],a
  2898. ld a,$00
  2899. ld [$c323],a
  2900. pop hl
  2901. pop af
  2902. reti
  2903. push af
  2904. push bc
  2905. ld a,[$c2e1]
  2906. or a
  2907. jr nz,$11ab
  2908. ldh a,[$ff45]
  2909. ld c,a
  2910. ld a,[$c2e2]
  2911. cp c
  2912. jr nz,$119d
  2913. ldh a,[$ff40]
  2914. set 1,a
  2915. ldh [$ff40],a
  2916. ld a,[$c2e3]
  2917. ldh [$ff45],a
  2918. pop bc
  2919. pop af
  2920. reti
  2921. ldh a,[$ff40]
  2922. res 1,a
  2923. ldh [$ff40],a
  2924. ld a,[$c2e2]
  2925. ldh [$ff45],a
  2926. pop bc
  2927. pop af
  2928. reti
  2929. ldh a,[$ff45]
  2930. ld c,a
  2931. ld a,[$c2e2]
  2932. cp c
  2933. jr nz,$11c1
  2934. ld a,[$c2e4]
  2935. ldh [$ff43],a
  2936. ld a,[$c2e3]
  2937. ldh [$ff45],a
  2938. pop bc
  2939. pop af
  2940. reti
  2941. ld a,[$c2e5]
  2942. ldh [$ff43],a
  2943. ld a,[$c2e2]
  2944. ldh [$ff45],a
  2945. pop bc
  2946. pop af
  2947. reti
  2948. push bc
  2949. push de
  2950. xor a
  2951. ld [$c236],a
  2952. ld c,$04
  2953. ld hl,$c239
  2954. ld a,[hl]
  2955. ld b,a
  2956. or a
  2957. jr z,$1200
  2958. ld a,[$c236]
  2959. add b
  2960. cp a,$41
  2961. jr nc,$120b
  2962. ld [$c236],a
  2963. push bc
  2964. xor a
  2965. ldi [hl],a
  2966. ldi a,[hl]
  2967. ld e,a
  2968. ldi a,[hl]
  2969. ld d,a
  2970. ldi a,[hl]
  2971. ld c,a
  2972. push hl
  2973. ld h,[hl]
  2974. ld l,c
  2975. ld a,[de]
  2976. inc de
  2977. ldi [hl],a
  2978. dec b
  2979. jr nz,$11f5
  2980. pop hl
  2981. pop bc
  2982. inc hl
  2983. jr $1208
  2984. ld a,l
  2985. add a,$05
  2986. ld l,a
  2987. ld a,h
  2988. adc a,$00
  2989. ld h,a
  2990. dec c
  2991. jr nz,$11d9
  2992. pop de
  2993. pop bc
  2994. ret
  2995. push bc
  2996. call $1222
  2997. ld a,[$c206]
  2998. xor c
  2999. jr z,$121c
  3000. and c
  3001. ld [$c207],a
  3002. ld a,c
  3003. ld [$c206],a
  3004. pop bc
  3005. ret
  3006. ld c,$00
  3007. ld a,$20
  3008. ldh [$ff00],a
  3009. ldh a,[$ff00]
  3010. ldh a,[$ff00]
  3011. and a,$0f
  3012. ld c,a
  3013. ld a,$10
  3014. ldh [$ff00],a
  3015. ldh a,[$ff00]
  3016. ldh a,[$ff00]
  3017. ldh a,[$ff00]
  3018. ldh a,[$ff00]
  3019. ldh a,[$ff00]
  3020. ldh a,[$ff00]
  3021. and a,$0f
  3022. swap a
  3023. or c
  3024. cpl
  3025. ld [$c205],a
  3026. ld c,a
  3027. ld a,$30
  3028. ldh [$ff00],a
  3029. ret
  3030. push de
  3031. ld e,$00
  3032. ld a,[hl]
  3033. and b
  3034. jr z,$1256
  3035. scf
  3036. rl e
  3037. rrc b
  3038. jr nc,$125d
  3039. inc hl
  3040. dec c
  3041. jr nz,$1251
  3042. ld a,e
  3043. pop de
  3044. ret
  3045. ld a,c
  3046. add e
  3047. ld [$c229],a
  3048. ld a,b
  3049. adc d
  3050. ld [$c228],a
  3051. ld b,$80
  3052. ld c,$01
  3053. call $124e
  3054. or a
  3055. jr z,$128d
  3056. ld c,$08
  3057. call $124e
  3058. ld [de],a
  3059. inc de
  3060. ld a,[$c228]
  3061. cp d
  3062. jr nz,$126f
  3063. ld a,[$c229]
  3064. cp e
  3065. jr nz,$126f
  3066. jp $138c
  3067. ld c,$01
  3068. call $124e
  3069. or a
  3070. jr nz,$12b7
  3071. ld c,$05
  3072. call $124e
  3073. push hl
  3074. inc a
  3075. ld c,a
  3076. ld a,e
  3077. sub c
  3078. ld l,a
  3079. ld a,d
  3080. sbc a,$00
  3081. ld h,a
  3082. ld a,[hl]
  3083. ld [de],a
  3084. inc de
  3085. pop hl
  3086. ld a,[$c228]
  3087. cp d
  3088. jr nz,$126f
  3089. ld a,[$c229]
  3090. cp e
  3091. jr nz,$126f
  3092. jp $138c
  3093. ld a,$00
  3094. ld [$c22a],a
  3095. ld [$c22b],a
  3096. ld c,$02
  3097. call $124e
  3098. cp a,$03
  3099. jr z,$12de
  3100. add a,$02
  3101. ld [$c22b],a
  3102. ld c,$08
  3103. call $124e
  3104. push hl
  3105. ld c,a
  3106. ld a,e
  3107. sub c
  3108. ld l,a
  3109. ld a,d
  3110. sbc a,$00
  3111. ld h,a
  3112. jp $136a
  3113. ld c,$04
  3114. call $124e
  3115. cp a,$0f
  3116. jr z,$1308
  3117. add a,$05
  3118. ld [$c22b],a
  3119. ld c,$01
  3120. call $124e
  3121. ld [$c22c],a
  3122. ld c,$08
  3123. call $124e
  3124. push hl
  3125. ld c,a
  3126. ld a,e
  3127. sub c
  3128. ld l,a
  3129. ld a,[$c22c]
  3130. ld c,a
  3131. ld a,d
  3132. sbc c
  3133. ld h,a
  3134. jp $136a
  3135. ld c,$08
  3136. call $124e
  3137. cp a,$ff
  3138. jr z,$1339
  3139. add a,$14
  3140. ld [$c22b],a
  3141. ld a,$00
  3142. adc a,$00
  3143. ld [$c22a],a
  3144. ld c,$02
  3145. call $124e
  3146. ld [$c22c],a
  3147. ld c,$08
  3148. call $124e
  3149. push hl
  3150. ld c,a
  3151. ld a,e
  3152. sub c
  3153. ld l,a
  3154. ld a,[$c22c]
  3155. ld c,a
  3156. ld a,d
  3157. sbc c
  3158. ld h,a
  3159. jp $136a
  3160. ld c,$04
  3161. call $124e
  3162. ld c,a
  3163. push bc
  3164. ld c,$08
  3165. call $124e
  3166. add a,$13
  3167. ld [$c22b],a
  3168. pop bc
  3169. ld a,c
  3170. adc a,$01
  3171. ld [$c22a],a
  3172. ld c,$03
  3173. call $124e
  3174. ld [$c22c],a
  3175. ld c,$08
  3176. call $124e
  3177. push hl
  3178. ld c,a
  3179. ld a,e
  3180. sub c
  3181. ld l,a
  3182. ld a,[$c22c]
  3183. ld c,a
  3184. ld a,d
  3185. sbc c
  3186. ld h,a
  3187. push bc
  3188. ld a,[$c22b]
  3189. ld c,a
  3190. ld a,[$c22a]
  3191. ld b,a
  3192. dec hl
  3193. ldi a,[hl]
  3194. ld [de],a
  3195. inc de
  3196. dec bc
  3197. ld a,b
  3198. or c
  3199. jr nz,$1374
  3200. pop bc
  3201. pop hl
  3202. ld a,[$c228]
  3203. cp d
  3204. jp nz,$126f
  3205. ld a,[$c229]
  3206. cp e
  3207. jp nz,$126f
  3208. ret
  3209. push hl
  3210. ld l,a
  3211. ldh a,[$ff80]
  3212. push af
  3213. ld a,$3a
  3214. call $03f2
  3215. push bc
  3216. push de
  3217. ld h,$00
  3218. sla l
  3219. rl h
  3220. sla l
  3221. rl h
  3222. ld bc,$4000
  3223. add hl,bc
  3224. ldi a,[hl]
  3225. ld c,[hl]
  3226. inc hl
  3227. ld e,[hl]
  3228. inc hl
  3229. ld d,[hl]
  3230. call $03f2
  3231. ld b,$00
  3232. sla c
  3233. rl b
  3234. sla c
  3235. rl b
  3236. sla c
  3237. rl b
  3238. sla c
  3239. rl b
  3240. ld hl,$0040
  3241. add hl,bc
  3242. ld c,l
  3243. ld b,h
  3244. ld l,e
  3245. ld h,d
  3246. pop de
  3247. push bc
  3248. push de
  3249. call $1263
  3250. pop hl
  3251. ld bc,$0040
  3252. add hl,bc
  3253. ld e,l
  3254. ld d,h
  3255. pop hl
  3256. ld bc,$ffc0
  3257. add hl,bc
  3258. ld c,l
  3259. ld b,h
  3260. pop hl
  3261. ld a,$01
  3262. call $03f2
  3263. call $65eb
  3264. pop af
  3265. call $03f2
  3266. pop hl
  3267. ret
  3268. ld a,[$c24d]
  3269. ld c,a
  3270. ld hl,$c239
  3271. ld a,[hl]
  3272. or a
  3273. jr z,$1404
  3274. ld a,l
  3275. add a,$05
  3276. ld l,a
  3277. ld a,h
  3278. adc a,$00
  3279. ld h,a
  3280. dec c
  3281. jr nz,$13f4
  3282. scf
  3283. ret
  3284. ld a,[$c211]
  3285. bit 7,a
  3286. jr nz,$1412
  3287. ld c,b
  3288. ld b,$00
  3289. jp $047e
  3290. push hl
  3291. push bc
  3292. call $13ed
  3293. jr c,$1414
  3294. pop bc
  3295. di
  3296. ld a,b
  3297. ldi [hl],a
  3298. ld a,e
  3299. ldi [hl],a
  3300. ld a,d
  3301. ldi [hl],a
  3302. pop bc
  3303. ld a,c
  3304. ldi [hl],a
  3305. ld a,b
  3306. ldi [hl],a
  3307. ei
  3308. ret
  3309. ld a,[$c211]
  3310. bit 7,a
  3311. jp z,$047e
  3312. ld a,c
  3313. sub a,$40
  3314. ld c,a
  3315. ld a,b
  3316. sbc a,$00
  3317. ld b,a
  3318. jr nc,$1444
  3319. ld a,c
  3320. add a,$40
  3321. jr z,$1443
  3322. ld b,a
  3323. call $1405
  3324. ret
  3325. push bc
  3326. push hl
  3327. push de
  3328. ld b,$40
  3329. call $1405
  3330. pop hl
  3331. ld bc,$0040
  3332. add hl,bc
  3333. ld e,l
  3334. ld d,h
  3335. pop hl
  3336. add hl,bc
  3337. pop bc
  3338. jr $1430
  3339. ldh a,[$ff80]
  3340. push af
  3341. ld a,[$c21a]
  3342. call $03f2
  3343. call $047e
  3344. call $14d4
  3345. pop af
  3346. call $03f2
  3347. ret
  3348. ldh a,[$ff80]
  3349. push af
  3350. ld a,[$c21a]
  3351. call $03f2
  3352. call $1428
  3353. call $14d4
  3354. pop af
  3355. call $03f2
  3356. ret
  3357. ldh a,[$ff80]
  3358. push af
  3359. ld a,[$c21a]
  3360. call $03f2
  3361. call $1263
  3362. call $14d4
  3363. pop af
  3364. call $03f2
  3365. ret
  3366. ldh a,[$ff80]
  3367. push af
  3368. ld b,$00
  3369. ld a,[$c21a]
  3370. call $03f2
  3371. ld a,[de]
  3372. inc de
  3373. or a
  3374. jr z,$14b1
  3375. dec a
  3376. push af
  3377. ld a,$01
  3378. call $03f2
  3379. pop af
  3380. call $68e7
  3381. jr $1499
  3382. bit 0,b
  3383. jr z,$14b9
  3384. ld a,$29
  3385. ldi [hl],a
  3386. xor a
  3387. ldi [hl],a
  3388. pop af
  3389. call $03f2
  3390. ret
  3391. ld c,$04
  3392. ld hl,$c239
  3393. ld a,[hl]
  3394. or a
  3395. jr nz,$14d3
  3396. ld a,l
  3397. add a,$05
  3398. ld l,a
  3399. ld a,h
  3400. adc a,$00
  3401. ld h,a
  3402. dec c
  3403. jr nz,$14c4
  3404. ret
  3405. call $14bf
  3406. jr nz,$14d4
  3407. ret
  3408. ld a,l
  3409. inc a
  3410. ld c,h
  3411. ld b,$00
  3412. ld hl,$c48c
  3413. add hl,bc
  3414. ld bc,$0014
  3415. add hl,bc
  3416. dec a
  3417. jr nz,$14e6
  3418. ret
  3419. ld a,l
  3420. inc a
  3421. ld c,h
  3422. ld b,$00
  3423. ld hl,$c5f4
  3424. add hl,bc
  3425. ld bc,$0014
  3426. add hl,bc
  3427. dec a
  3428. jr nz,$14f7
  3429. ret
  3430. ld [$c2eb],a
  3431. jp $1a7f
  3432. ld [$c2ec],a
  3433. jp $1a84
  3434. xor a
  3435. jr $14fc
  3436. xor a
  3437. jr $1502
  3438. ld a,[$c252]
  3439. ld h,a
  3440. ld a,[$c253]
  3441. ld l,a
  3442. call $14da
  3443. push hl
  3444. ld hl,[sp+$04]
  3445. ld e,[hl]
  3446. inc hl
  3447. ld d,[hl]
  3448. inc hl
  3449. ld c,l
  3450. ld b,h
  3451. pop hl
  3452. ld a,[de]
  3453. inc de
  3454. or a
  3455. jr nz,$1529
  3456. ret
  3457. cp a,$25
  3458. jp z,$15a2
  3459. jr $1537
  3460. xor a
  3461. dec a
  3462. ld [$c255],a
  3463. jr $1523
  3464. push bc
  3465. ld bc,$3892
  3466. add c
  3467. ld c,a
  3468. ld a,$00
  3469. adc b
  3470. ld b,a
  3471. ld a,[bc]
  3472. jr $1544
  3473. ldi [hl],a
  3474. ld a,[$c252]
  3475. inc a
  3476. ld [$c252],a
  3477. pop bc
  3478. ld a,[$c253]
  3479. or a
  3480. jr z,$1523
  3481. push bc
  3482. ld bc,$ffeb
  3483. add hl,bc
  3484. ld a,[hl]
  3485. cp a,$88
  3486. jr z,$1571
  3487. cp a,$89
  3488. jr z,$1571
  3489. cp a,$81
  3490. jr z,$1569
  3491. jr nz,$1569
  3492. ld [hl],$8f
  3493. ld bc,$0015
  3494. add hl,bc
  3495. pop bc
  3496. jp $1523
  3497. ld [hl],$81
  3498. jr $1569
  3499. push af
  3500. ld a,[$c253]
  3501. or a
  3502. jr nz,$1581
  3503. pop af
  3504. pop bc
  3505. jp $1523
  3506. ld bc,$ffeb
  3507. add hl,bc
  3508. ld a,[hl]
  3509. cp a,$81
  3510. jr z,$159c
  3511. cp a,$88
  3512. jr z,$159c
  3513. cp a,$89
  3514. jr z,$159c
  3515. pop af
  3516. ld [hl],a
  3517. ld bc,$0015
  3518. add hl,bc
  3519. pop bc
  3520. jp $1523
  3521. pop af
  3522. add a,$46
  3523. ld [hl],a
  3524. jr $1594
  3525. ld a,[de]
  3526. inc de
  3527. cp a,$25
  3528. jp z,$1537
  3529. cp a,$64
  3530. jr z,$15bd
  3531. cp a,$63
  3532. jr z,$15e0
  3533. cp a,$73
  3534. jr z,$15e6
  3535. cp a,$6c
  3536. jr z,$1600
  3537. ldi [hl],a
  3538. jp $1523
  3539. push de
  3540. ld a,[bc]
  3541. inc bc
  3542. ld l,a
  3543. ld a,[bc]
  3544. inc bc
  3545. ld h,a
  3546. push bc
  3547. ld e,l
  3548. ld d,h
  3549. ld hl,[sp+$f4]
  3550. add sp,$f4
  3551. push hl
  3552. push de
  3553. push hl
  3554. pop de
  3555. pop hl
  3556. ld bc,$000a
  3557. call $3a20
  3558. call $150e
  3559. add sp,$0e
  3560. pop bc
  3561. pop de
  3562. jp $1523
  3563. ld a,[bc]
  3564. inc bc
  3565. inc bc
  3566. jp $1529
  3567. ld a,[$c255]
  3568. push af
  3569. push de
  3570. ld a,[bc]
  3571. ld l,a
  3572. inc bc
  3573. ld a,[bc]
  3574. ld h,a
  3575. inc bc
  3576. push bc
  3577. push hl
  3578. call $150e
  3579. pop bc
  3580. pop bc
  3581. pop de
  3582. pop af
  3583. ld [$c255],a
  3584. jp $1523
  3585. ld a,[de]
  3586. inc de
  3587. cp a,$64
  3588. jr z,$160a
  3589. ldi [hl],a
  3590. jp $1523
  3591. push de
  3592. ld a,[bc]
  3593. inc bc
  3594. ld e,a
  3595. ld a,[bc]
  3596. inc bc
  3597. ld d,a
  3598. ld a,[bc]
  3599. inc bc
  3600. ld l,a
  3601. ld a,[bc]
  3602. inc bc
  3603. ld h,a
  3604. push bc
  3605. push hl
  3606. pop bc
  3607. ld hl,[sp+$f4]
  3608. add sp,$f4
  3609. push hl
  3610. push bc
  3611. push de
  3612. call $3992
  3613. pop bc
  3614. pop bc
  3615. call $150e
  3616. add sp,$0e
  3617. pop bc
  3618. pop de
  3619. jp $1523
  3620. ldh a,[$ff80]
  3621. push af
  3622. ld a,$0e
  3623. call $03f2
  3624. push hl
  3625. ld c,[hl]
  3626. inc hl
  3627. ld b,[hl]
  3628. inc hl
  3629. ldi a,[hl]
  3630. ld h,[hl]
  3631. ld l,a
  3632. inc a
  3633. jr nz,$1664
  3634. xor h
  3635. inc a
  3636. jr nz,$1664
  3637. ld l,c
  3638. ld h,b
  3639. add hl,hl
  3640. ld bc,$4000
  3641. add hl,bc
  3642. ldi a,[hl]
  3643. ld h,[hl]
  3644. ld l,a
  3645. xor a
  3646. ld b,h
  3647. sla b
  3648. rla
  3649. sla b
  3650. rla
  3651. add a,$0e
  3652. ld b,a
  3653. call $03f2
  3654. res 7,h
  3655. set 6,h
  3656. ld c,[hl]
  3657. ld a,b
  3658. and a,$1f
  3659. call $03f2
  3660. ld a,b
  3661. srl a
  3662. srl a
  3663. srl a
  3664. srl a
  3665. srl a
  3666. ld b,$08
  3667. jr z,$167a
  3668. ld b,a
  3669. call $19cd
  3670. jp c,$1799
  3671. call $19cd
  3672. jp c,$1780
  3673. call $19cd
  3674. jr c,$16a4
  3675. call $19cd
  3676. jr c,$169f
  3677. call $19cd
  3678. jr c,$169a
  3679. ld a,$64
  3680. jp $1988
  3681. ld a,$79
  3682. jp $1988
  3683. ld a,$6e
  3684. jp $1988
  3685. call $19cd
  3686. jp c,$1767
  3687. call $19cd
  3688. jp c,$16e7
  3689. call $19cd
  3690. jr c,$16e2
  3691. call $19cd
  3692. jr c,$16dd
  3693. call $19cd
  3694. jr c,$16c4
  3695. ld a,$48
  3696. jp $1988
  3697. call $19cd
  3698. jr c,$16d8
  3699. call $19cd
  3700. jr c,$16d3
  3701. ld a,$78
  3702. jp $1988
  3703. ld a,$4e
  3704. jp $1988
  3705. ld a,$01
  3706. jp $1988
  3707. ld a,$54
  3708. jp $1988
  3709. ld a,$70
  3710. jp $1988
  3711. call $19cd
  3712. jr c,$16f1
  3713. ld a,$62
  3714. jp $1988
  3715. call $19cd
  3716. jr c,$1705
  3717. call $19cd
  3718. jr c,$1700
  3719. ld a,$44
  3720. jp $1988
  3721. ld a,$57
  3722. jp $1988
  3723. call $19cd
  3724. jp c,$1762
  3725. call $19cd
  3726. jp c,$175d
  3727. call $19cd
  3728. jp c,$1758
  3729. call $19cd
  3730. jr c,$1721
  3731. ld a,$38
  3732. jp $1988
  3733. call $19cd
  3734. jr c,$1753
  3735. call $19cd
  3736. jr c,$174e
  3737. call $19cd
  3738. jr c,$1735
  3739. ld a,$51
  3740. jp $1988
  3741. call $19cd
  3742. jr c,$173f
  3743. ld a,$58
  3744. jp $1988
  3745. call $19cd
  3746. jr c,$1749
  3747. ld a,$25
  3748. jp $1988
  3749. ld a,$3b
  3750. jp $1988
  3751. ld a,$3c
  3752. jp $1988
  3753. ld a,$36
  3754. jp $1988
  3755. ld a,$4b
  3756. jp $1988
  3757. ld a,$47
  3758. jp $1988
  3759. ld a,$52
  3760. jp $1988
  3761. call $19cd
  3762. jr c,$1771
  3763. ld a,$75
  3764. jp $1988
  3765. call $19cd
  3766. jr c,$177b
  3767. ld a,$00
  3768. jp $1988
  3769. ld a,$2e
  3770. jp $1988
  3771. call $19cd
  3772. jr c,$1794
  3773. call $19cd
  3774. jr c,$178f
  3775. ld a,$61
  3776. jp $1988
  3777. ld a,$0a
  3778. jp $1988
  3779. ld a,$20
  3780. jp $1988
  3781. call $19cd
  3782. jp c,$1883
  3783. call $19cd
  3784. jp c,$184c
  3785. call $19cd
  3786. jp c,$1847
  3787. call $19cd
  3788. jp c,$1810
  3789. call $19cd
  3790. jr c,$17bb
  3791. ld a,$77
  3792. jp $1988
  3793. call $19cd
  3794. jr c,$17c5
  3795. ld a,$76
  3796. jp $1988
  3797. call $19cd
  3798. jr c,$17ed
  3799. call $19cd
  3800. jr c,$17e8
  3801. call $19cd
  3802. jr c,$17e3
  3803. call $19cd
  3804. jr c,$17de
  3805. ld a,$33
  3806. jp $1988
  3807. ld a,$32
  3808. jp $1988
  3809. ld a,$6a
  3810. jp $1988
  3811. ld a,$46
  3812. jp $1988
  3813. call $19cd
  3814. jr c,$17f7
  3815. ld a,$4f
  3816. jp $1988
  3817. call $19cd
  3818. jr c,$1801
  3819. ld a,$45
  3820. jp $1988
  3821. call $19cd
  3822. jr c,$180b
  3823. ld a,$4a
  3824. jp $1988
  3825. ld a,$55
  3826. jp $1988
  3827. call $19cd
  3828. jr c,$181a
  3829. ld a,$67
  3830. jp $1988
  3831. call $19cd
  3832. jr c,$1842
  3833. call $19cd
  3834. jr c,$1833
  3835. call $19cd
  3836. jr c,$182e
  3837. ld a,$4c
  3838. jp $1988
  3839. ld a,$43
  3840. jp $1988
  3841. call $19cd
  3842. jr c,$183d
  3843. ld a,$4d
  3844. jp $1988
  3845. ld a,$41
  3846. jp $1988
  3847. ld a,$6b
  3848. jp $1988
  3849. ld a,$74
  3850. jp $1988
  3851. call $19cd
  3852. jr c,$1860
  3853. call $19cd
  3854. jr c,$185b
  3855. ld a,$6c
  3856. jp $1988
  3857. ld a,$68
  3858. jp $1988
  3859. call $19cd
  3860. jr c,$186a
  3861. ld a,$73
  3862. jp $1988
  3863. call $19cd
  3864. jr c,$1874
  3865. ld a,$6d
  3866. jp $1988
  3867. call $19cd
  3868. jr c,$187e
  3869. ld a,$49
  3870. jp $1988
  3871. ld a,$27
  3872. jp $1988
  3873. call $19cd
  3874. jp c,$196f
  3875. call $19cd
  3876. jr c,$1893
  3877. ld a,$6f
  3878. jp $1988
  3879. call $19cd
  3880. jr c,$18a7
  3881. call $19cd
  3882. jr c,$18a2
  3883. ld a,$63
  3884. jp $1988
  3885. ld a,$21
  3886. jp $1988
  3887. call $19cd
  3888. jp c,$1918
  3889. call $19cd
  3890. jr c,$18b7
  3891. ld a,$2c
  3892. jp $1988
  3893. call $19cd
  3894. jp c,$1913
  3895. call $19cd
  3896. jp c,$190e
  3897. call $19cd
  3898. jr c,$18f5
  3899. call $19cd
  3900. jr c,$18f0
  3901. call $19cd
  3902. jr c,$18eb
  3903. call $19cd
  3904. jr c,$18dc
  3905. ld a,$3e
  3906. jp $1988
  3907. call $19cd
  3908. jr c,$18e6
  3909. ld a,$39
  3910. jp $1988
  3911. ld a,$3a
  3912. jp $1988
  3913. ld a,$30
  3914. jp $1988
  3915. ld a,$7a
  3916. jp $1988
  3917. call $19cd
  3918. jr c,$18ff
  3919. ld a,$5a
  3920. jp $1988
  3921. call $19cd
  3922. jr c,$1909
  3923. ld a,$35
  3924. jp $1988
  3925. ld a,$37
  3926. jp $1988
  3927. ld a,$50
  3928. jp $1988
  3929. ld a,$3f
  3930. jp $1988
  3931. call $19cd
  3932. jp c,$196a
  3933. call $19cd
  3934. jp c,$195b
  3935. call $19cd
  3936. jr c,$192e
  3937. ld a,$59
  3938. jp $1988
  3939. call $19cd
  3940. jr c,$1942
  3941. call $19cd
  3942. jr c,$193d
  3943. ld a,$2d
  3944. jp $1988
  3945. ld a,$31
  3946. jp $1988
  3947. call $19cd
  3948. jr c,$194c
  3949. ld a,$56
  3950. jp $1988
  3951. call $19cd
  3952. jr c,$1956
  3953. ld a,$71
  3954. jp $1988
  3955. ld a,$34
  3956. jp $1988
  3957. call $19cd
  3958. jr c,$1965
  3959. ld a,$53
  3960. jp $1988
  3961. ld a,$42
  3962. jp $1988
  3963. ld a,$66
  3964. jp $1988
  3965. call $19cd
  3966. jr c,$1983
  3967. call $19cd
  3968. jr c,$197e
  3969. ld a,$69
  3970. jp $1988
  3971. ld a,$72
  3972. jp $1988
  3973. ld a,$65
  3974. jp $1988
  3975. ld [de],a
  3976. inc de
  3977. or a
  3978. jr z,$19af
  3979. cp a,$0a
  3980. jp z,$19aa
  3981. cp a,$01
  3982. jp nz,$167a
  3983. dec de
  3984. push hl
  3985. push bc
  3986. ld l,e
  3987. ld h,d
  3988. ld de,$c30d
  3989. call $1494
  3990. pop bc
  3991. dec hl
  3992. ld e,l
  3993. ld d,h
  3994. pop hl
  3995. jp $167a
  3996. xor a
  3997. dec de
  3998. ld [de],a
  3999. ld a,$0a
  4000. ld e,l
  4001. ld d,h
  4002. pop hl
  4003. push af
  4004. ld [hl],c
  4005. inc hl
  4006. sla b
  4007. sla b
  4008. sla b
  4009. sla b
  4010. sla b
  4011. ldh a,[$ff80]
  4012. or b
  4013. ldi [hl],a
  4014. ld [hl],e
  4015. inc hl
  4016. ld [hl],d
  4017. pop bc
  4018. pop af
  4019. call $03f2
  4020. ld a,b
  4021. ret
  4022. sla c
  4023. dec b
  4024. ret nz
  4025. inc hl
  4026. ld c,[hl]
  4027. ld b,$08
  4028. ret
  4029. inc e
  4030. ld b,h
  4031. ld c,l
  4032. jr $19e9
  4033. ld a,[hl]
  4034. srl a
  4035. ldi [hl],a
  4036. ld a,[hl]
  4037. rr a
  4038. ldi [hl],a
  4039. ld a,[hl]
  4040. rr a
  4041. ldi [hl],a
  4042. rr [hl]
  4043. ld l,c
  4044. ld h,b
  4045. dec e
  4046. jr nz,$19db
  4047. ret
  4048. push bc
  4049. ld c,l
  4050. ld b,h
  4051. add sp,$fc
  4052. ld hl,[sp+$00]
  4053. ld a,$04
  4054. push af
  4055. ld a,[bc]
  4056. ldi [hl],a
  4057. inc bc
  4058. pop af
  4059. dec a
  4060. jr nz,$19f8
  4061. dec hl
  4062. ld c,l
  4063. ld b,h
  4064. push de
  4065. call $3848
  4066. ld [$afd1],sp
  4067. ldi [hl],a
  4068. ldi [hl],a
  4069. ldi [hl],a
  4070. ld [hl],a
  4071. ld a,l
  4072. ld l,c
  4073. ld c,a
  4074. ld a,h
  4075. ld h,b
  4076. ld b,a
  4077. ld a,e
  4078. or d
  4079. jr z,$1a3d
  4080. srl d
  4081. rr e
  4082. push de
  4083. jr nc,$1a2e
  4084. ccf
  4085. push bc
  4086. push hl
  4087. ld e,$04
  4088. ld a,[bc]
  4089. adc [hl]
  4090. ld [bc],a
  4091. dec bc
  4092. dec hl
  4093. dec e
  4094. jr nz,$1a24
  4095. pop hl
  4096. pop bc
  4097. push hl
  4098. ld e,$04
  4099. scf
  4100. ccf
  4101. ld a,[hl]
  4102. rla
  4103. ldd [hl],a
  4104. dec e
  4105. jr nz,$1a33
  4106. pop hl
  4107. pop de
  4108. jr $1a14
  4109. add sp,$06
  4110. ret
  4111. ld h,a
  4112. ld a,[$c2ea]
  4113. bit 0,a
  4114. jr z,$1a4a
  4115. xor a
  4116. ret
  4117. ldh a,[$ff80]
  4118. push af
  4119. ld a,$1c
  4120. call $03f2
  4121. ld a,h
  4122. ld de,$1a5b
  4123. push de
  4124. ld h,$40
  4125. push hl
  4126. ret
  4127. ld h,a
  4128. pop af
  4129. jp $03f2
  4130. ld l,$00
  4131. jr $1a40
  4132. ldh a,[$ff80]
  4133. ld [$c2ed],a
  4134. ld a,[$c2ea]
  4135. set 1,a
  4136. ld [$c2ea],a
  4137. ld l,$03
  4138. call $1a40
  4139. ld a,[$c2ea]
  4140. res 1,a
  4141. ld [$c2ea],a
  4142. ret
  4143. ld l,$06
  4144. ld h,a
  4145. jr $1a40
  4146. ld l,$09
  4147. ld h,a
  4148. jr $1a40
  4149. ld l,$0c
  4150. ld h,a
  4151. jr $1a40
  4152. ld l,$0f
  4153. call $1a40
  4154. ld a,h
  4155. ret
  4156. ld l,$12
  4157. call $1a40
  4158. ld a,h
  4159. ret
  4160. ld l,$15
  4161. jr $1a40
  4162. ld l,$18
  4163. ld h,a
  4164. jr $1a40
  4165. ld l,$1b
  4166. jr $1a40
  4167. ld l,$1e
  4168. jr $1a40
  4169. di
  4170. xor a
  4171. ldh [$ff0f],a
  4172. ldh [$ffff],a
  4173. ld a,$00
  4174. call $03d5
  4175. ld a,$00
  4176. call $03f2
  4177. ld sp,$e000
  4178. ld a,$e4
  4179. ldh [$ff47],a
  4180. ldh [$ff48],a
  4181. ld a,$1b
  4182. ldh [$ff49],a
  4183. rst $08
  4184. nop
  4185. rst $08
  4186. ld h,c
  4187. jp $1ace
  4188. ld sp,$e000
  4189. ld a,$03
  4190. call $03d5
  4191. ld a,$3f
  4192. ld [$c21a],a
  4193. ld a,$96
  4194. ld [$c21b],a
  4195. ld a,$51
  4196. ld [$c21c],a
  4197. call $03f8
  4198. ld a,$03
  4199. call $03d5
  4200. ld a,$01
  4201. call $03f2
  4202. jp $4060
  4203. ld a,[$c3a3]
  4204. or a
  4205. ret z
  4206. push bc
  4207. push de
  4208. push hl
  4209. call $1bbb
  4210. push bc
  4211. ldh a,[$ff81]
  4212. push af
  4213. ld a,[$c01c]
  4214. cp a,$11
  4215. jr z,$1b22
  4216. di
  4217. rst $08
  4218. sbc [hl]
  4219. ei
  4220. ld a,[$c01c]
  4221. cp a,$10
  4222. jp nz,$1baf
  4223. ld a,$11
  4224. ld [$c01c],a
  4225. jp $1baf
  4226. di
  4227. rst $08
  4228. sbc [hl]
  4229. ei
  4230. ld a,$01
  4231. ld [$c01c],a
  4232. ld a,e
  4233. ld [$c930],a
  4234. ld a,d
  4235. ld [$c931],a
  4236. ld a,[$c92e]
  4237. ld e,a
  4238. ld a,c
  4239. ld [$c92c],a
  4240. ld a,b
  4241. ld [$c92d],a
  4242. ld a,l
  4243. ld [$c92e],a
  4244. ld a,h
  4245. ld [$c92f],a
  4246. ld a,e
  4247. cp l
  4248. jr z,$1baf
  4249. ld a,[$c933]
  4250. cp b
  4251. jr c,$1b6b
  4252. jr nz,$1baf
  4253. ld a,[$c932]
  4254. cp c
  4255. jr c,$1b6b
  4256. jr nz,$1baf
  4257. ld a,[$c935]
  4258. cp h
  4259. jr c,$1b6b
  4260. jr nz,$1baf
  4261. ld a,[$c934]
  4262. cp l
  4263. jr c,$1b6b
  4264. jr nz,$1baf
  4265. di
  4266. ldh a,[$ffff]
  4267. push af
  4268. and a,$fe
  4269. ldh [$ffff],a
  4270. ei
  4271. ld hl,$c936
  4272. ld c,$26
  4273. ld b,$02
  4274. rst $08
  4275. sub l
  4276. ld a,$6e
  4277. rst $08
  4278. sub c
  4279. ld a,$6e
  4280. rst $08
  4281. sub c
  4282. di
  4283. pop af
  4284. and a,$01
  4285. ld c,a
  4286. ldh a,[$ffff]
  4287. or c
  4288. ldh [$ffff],a
  4289. ld hl,$ff0f
  4290. res 0,[hl]
  4291. ei
  4292. ld a,[$c21a]
  4293. push af
  4294. ld a,$24
  4295. ld [$c21a],a
  4296. ld a,$a7
  4297. ld [$c21b],a
  4298. ld a,$7c
  4299. ld [$c21c],a
  4300. call $03f8
  4301. pop af
  4302. ld [$c21a],a
  4303. pop af
  4304. call $03d5
  4305. pop bc
  4306. call $1bcf
  4307. pop hl
  4308. pop de
  4309. pop bc
  4310. ret
  4311. di
  4312. ld a,[$c203]
  4313. ld c,a
  4314. res 7,a
  4315. ld [$c203],a
  4316. ld a,[$c2e8]
  4317. ld b,a
  4318. xor a
  4319. ld [$c2e8],a
  4320. ei
  4321. ret
  4322. ld a,c
  4323. and a,$80
  4324. ld c,a
  4325. di
  4326. ld a,[$c203]
  4327. or c
  4328. ld [$c203],a
  4329. ld a,b
  4330. ld [$c2e8],a
  4331. ei
  4332. ret
  4333. ldh a,[$ff81]
  4334. push af
  4335. call $1bbb
  4336. push bc
  4337. ld c,l
  4338. ld b,h
  4339. rst $08
  4340. xor a
  4341. pop bc
  4342. ld l,a
  4343. call $1bcf
  4344. pop af
  4345. call $03d5
  4346. ld a,l
  4347. ret
  4348. ldh a,[$ff81]
  4349. push af
  4350. call $1bbb
  4351. push bc
  4352. rst $08
  4353. xor [hl]
  4354. ld l,a
  4355. ld h,b
  4356. pop bc
  4357. call $1bcf
  4358. pop af
  4359. call $03d5
  4360. ret
  4361. ldh a,[$ff81]
  4362. push af
  4363. call $1bbb
  4364. push bc
  4365. rst $08
  4366. ld [hl],d
  4367. jr c,$1c23
  4368. xor a
  4369. ld [$c32b],a
  4370. pop bc
  4371. call $1bcf
  4372. pop af
  4373. call $03d5
  4374. ret
  4375. ld a,$80
  4376. ld [$c32b],a
  4377. jr $1c1a
  4378. ldh a,[$ff81]
  4379. push af
  4380. ld b,c
  4381. push bc
  4382. call $1bbb
  4383. pop af
  4384. push bc
  4385. ld c,a
  4386. rst $08
  4387. ld a,h
  4388. jr $1c5c
  4389. ldh a,[$ff81]
  4390. push af
  4391. ld b,c
  4392. push bc
  4393. call $1bbb
  4394. pop af
  4395. push bc
  4396. ld c,a
  4397. rst $08
  4398. ld a,a
  4399. jr $1c5c
  4400. ldh a,[$ff81]
  4401. push af
  4402. call $1bbb
  4403. push bc
  4404. rst $08
  4405. ld [hl],d
  4406. jr $1c5c
  4407. ldh a,[$ff81]
  4408. push af
  4409. call $1bbb
  4410. push bc
  4411. rst $08
  4412. ld [hl],e
  4413. jr nc,$1c69
  4414. pop bc
  4415. call $1bcf
  4416. pop af
  4417. call $03d5
  4418. ld a,$ff
  4419. ret
  4420. pop bc
  4421. call $1bcf
  4422. pop af
  4423. call $03d5
  4424. xor a
  4425. ret
  4426. ld hl,$ffff
  4427. set 0,[hl]
  4428. ret
  4429. ld hl,$ffff
  4430. res 0,[hl]
  4431. ret
  4432. ld hl,$ffff
  4433. set 1,[hl]
  4434. ret
  4435. ld hl,$ffff
  4436. res 1,[hl]
  4437. ret
  4438. ld hl,$ffff
  4439. set 2,[hl]
  4440. ret
  4441. ld hl,$ffff
  4442. res 2,[hl]
  4443. ret
  4444. ld hl,$ffff
  4445. set 3,[hl]
  4446. ret
  4447. ld hl,$ffff
  4448. res 3,[hl]
  4449. ret
  4450. rst $38
  4451. rst $38
  4452. rst $38
  4453. rst $38
  4454. rst $38
  4455. rst $38
  4456. rst $38
  4457. rst $38
  4458. rst $38
  4459. rst $38
  4460. rst $38
  4461. rst $38
  4462. rst $38
  4463. rst $38
  4464. rst $38
  4465. rst $38
  4466. rst $38
  4467. rst $38
  4468. rst $38
  4469. rst $38
  4470. rst $38
  4471. rst $38
  4472. rst $38
  4473. rst $38
  4474. rst $38
  4475. rst $38
  4476. rst $38
  4477. rst $38
  4478. rst $38
  4479. rst $38
  4480. rst $38
  4481. rst $38
  4482. rst $38
  4483. rst $38
  4484. rst $38
  4485. rst $38
  4486. rst $38
  4487. rst $38
  4488. rst $38
  4489. rst $38
  4490. rst $38
  4491. rst $38
  4492. rst $38
  4493. rst $38
  4494. rst $38
  4495. rst $38
  4496. rst $38
  4497. rst $38
  4498. rst $38
  4499. rst $38
  4500. rst $38
  4501. rst $38
  4502. rst $38
  4503. rst $38
  4504. rst $38
  4505. rst $38
  4506. rst $38
  4507. rst $38
  4508. rst $38
  4509. rst $38
  4510. rst $38
  4511. rst $38
  4512. rst $38
  4513. rst $38
  4514. rst $38
  4515. rst $38
  4516. rst $38
  4517. rst $38
  4518. rst $38
  4519. rst $38
  4520. rst $38
  4521. rst $38
  4522. rst $38
  4523. rst $38
  4524. rst $38
  4525. rst $38
  4526. rst $38
  4527. rst $38
  4528. rst $38
  4529. rst $38
  4530. rst $38
  4531. rst $38
  4532. rst $38
  4533. rst $38
  4534. rst $38
  4535. rst $38
  4536. rst $38
  4537. rst $38
  4538. rst $38
  4539. rst $38
  4540. rst $38
  4541. rst $38
  4542. rst $38
  4543. rst $38
  4544. rst $38
  4545. rst $38
  4546. rst $38
  4547. rst $38
  4548. rst $38
  4549. rst $38
  4550. rst $38
  4551. rst $38
  4552. rst $38
  4553. rst $38
  4554. rst $38
  4555. rst $38
  4556. rst $38
  4557. rst $38
  4558. rst $38
  4559. rst $38
  4560. rst $38
  4561. rst $38
  4562. rst $38
  4563. rst $38
  4564. rst $38
  4565. rst $38
  4566. rst $38
  4567. rst $38
  4568. rst $38
  4569. rst $38
  4570. rst $38
  4571. rst $38
  4572. rst $38
  4573. rst $38
  4574. rst $38
  4575. rst $38
  4576. rst $38
  4577. rst $38
  4578. rst $38
  4579. rst $38
  4580. rst $38
  4581. rst $38
  4582. rst $38
  4583. rst $38
  4584. rst $38
  4585. rst $38
  4586. rst $38
  4587. rst $38
  4588. rst $38
  4589. rst $38
  4590. rst $38
  4591. rst $38
  4592. rst $38
  4593. rst $38
  4594. rst $38
  4595. rst $38
  4596. rst $38
  4597. rst $38
  4598. rst $38
  4599. rst $38
  4600. rst $38
  4601. rst $38
  4602. rst $38
  4603. rst $38
  4604. rst $38
  4605. rst $38
  4606. rst $38
  4607. rst $38
  4608. rst $38
  4609. rst $38
  4610. rst $38
  4611. rst $38
  4612. rst $38
  4613. rst $38
  4614. rst $38
  4615. rst $38
  4616. rst $38
  4617. rst $38
  4618. rst $38
  4619. rst $38
  4620. rst $38
  4621. rst $38
  4622. rst $38
  4623. rst $38
  4624. rst $38
  4625. rst $38
  4626. rst $38
  4627. rst $38
  4628. rst $38
  4629. rst $38
  4630. rst $38
  4631. rst $38
  4632. rst $38
  4633. rst $38
  4634. rst $38
  4635. rst $38
  4636. rst $38
  4637. rst $38
  4638. rst $38
  4639. rst $38
  4640. rst $38
  4641. rst $38
  4642. rst $38
  4643. rst $38
  4644. rst $38
  4645. rst $38
  4646. rst $38
  4647. rst $38
  4648. rst $38
  4649. rst $38
  4650. rst $38
  4651. rst $38
  4652. rst $38
  4653. rst $38
  4654. rst $38
  4655. rst $38
  4656. rst $38
  4657. rst $38
  4658. rst $38
  4659. rst $38
  4660. rst $38
  4661. rst $38
  4662. rst $38
  4663. rst $38
  4664. rst $38
  4665. rst $38
  4666. rst $38
  4667. rst $38
  4668. rst $38
  4669. rst $38
  4670. rst $38
  4671. rst $38
  4672. rst $38
  4673. rst $38
  4674. rst $38
  4675. rst $38
  4676. rst $38
  4677. rst $38
  4678. rst $38
  4679. rst $38
  4680. rst $38
  4681. rst $38
  4682. rst $38
  4683. rst $38
  4684. rst $38
  4685. rst $38
  4686. rst $38
  4687. ret
  4688. ld d,a
  4689. ld l,b
  4690. ld h,c
  4691. ld [hl],h
  4692. ccf
  4693. nop
  4694. ld b,e
  4695. ld [hl],l
  4696. ld [hl],h
  4697. jr nz,$1e0b
  4698. ld h,[hl]
  4699. ld h,[hl]
  4700. jr nz,$1e14
  4701. ld l,b
  4702. ld h,l
  4703. jr nz,$1e14
  4704. ld l,a
  4705. ld [hl],a
  4706. ld h,l
  4707. ld [hl],d
  4708. ld hl,$5300
  4709. ld [hl],h
  4710. ld h,c
  4711. ld h,e
  4712. ld l,e
  4713. ldd a,[hl]
  4714. dec h
  4715. ld h,h
  4716. nop
  4717. ld d,d
  4718. ld l,a
  4719. ld l,l
  4720. ldd a,[hl]
  4721. dec h
  4722. ld h,h
  4723. nop
  4724. ld b,c
  4725. ld h,h
  4726. ld h,h
  4727. ld [hl],d
  4728. ld h,l
  4729. ld [hl],e
  4730. ld [hl],e
  4731. ldd a,[hl]
  4732. dec h
  4733. ld h,h
  4734. nop
  4735. ldh a,[$ff81]
  4736. push af
  4737. ld a,$03
  4738. call $03d5
  4739. ld bc,$0219
  4740. ld e,$00
  4741. ld hl,$c980
  4742. call $0487
  4743. ld a,$02
  4744. call $03d5
  4745. ld bc,$1342
  4746. ld e,$00
  4747. ld hl,$a007
  4748. call $0487
  4749. ld a,$03
  4750. call $03d5
  4751. ld bc,$00a0
  4752. ld e,$00
  4753. ld hl,$cb99
  4754. call $0487
  4755. ld a,$03
  4756. call $03d5
  4757. ld bc,$00dc
  4758. ld e,$00
  4759. ld hl,$cc39
  4760. call $0487
  4761. ld a,$03
  4762. call $03d5
  4763. ld bc,$00fa
  4764. ld e,$00
  4765. ld hl,$cd15
  4766. call $0487
  4767. pop af
  4768. call $03d5
  4769. ld bc,$0032
  4770. ld e,$00
  4771. ld hl,$c7ed
  4772. call $0487
  4773. ld bc,$0064
  4774. ld e,$00
  4775. ld hl,$c789
  4776. call $0487
  4777. ld bc,$003c
  4778. ld e,$00
  4779. ld hl,$c34c
  4780. call $0487
  4781. ld hl,$0000
  4782. call $3855
  4783. sub [hl]
  4784. jp $0021
  4785. nop
  4786. call $3855
  4787. sbc b
  4788. jp $0601
  4789. nop
  4790. ld e,$00
  4791. ld hl,$c30d
  4792. call $0487
  4793. ret
  4794. call $3aa8
  4795. ld hl,$c21a
  4796. ld [hl],$05
  4797. inc hl
  4798. ld [hl],$66
  4799. inc hl
  4800. ld [hl],$7a
  4801. ld de,$0900
  4802. ld hl,$ce10
  4803. call $03f8
  4804. call $1dc5
  4805. xor a
  4806. ld [$c39f],a
  4807. xor a
  4808. ld [$c91c],a
  4809. xor a
  4810. ld [$c92b],a
  4811. ld hl,$c21a
  4812. ld [hl],$18
  4813. inc hl
  4814. ld [hl],$3c
  4815. inc hl
  4816. ld [hl],$54
  4817. ld e,$00
  4818. xor a
  4819. call $03f8
  4820. ld hl,$c21a
  4821. ld [hl],$18
  4822. inc hl
  4823. ld [hl],$64
  4824. inc hl
  4825. ld [hl],$54
  4826. ld c,$01
  4827. ld e,$01
  4828. ld a,$01
  4829. call $03f8
  4830. ld bc,$0048
  4831. ld e,$00
  4832. ld hl,$c938
  4833. call $0487
  4834. ld a,$01
  4835. ld [$c3a3],a
  4836. ld a,[$c01c]
  4837. cp a,$11
  4838. jp z,$1ece
  4839. ld a,[$c01c]
  4840. or a
  4841. jp nz,$1ec8
  4842. ld a,$01
  4843. ld [$c01c],a
  4844. call $0465
  4845. jp $1eb4
  4846. call $0465
  4847. xor a
  4848. cp a,$06
  4849. jp nc,$1ee4
  4850. ld e,a
  4851. ld d,$00
  4852. ld hl,$c932
  4853. add hl,de
  4854. ld [hl],$ff
  4855. inc a
  4856. jp $1ed2
  4857. ld a,$05
  4858. call $03f2
  4859. ld e,$00
  4860. xor a
  4861. call $3a83
  4862. ld hl,$c21a
  4863. ld [hl],$01
  4864. inc hl
  4865. ld [hl],$fa
  4866. inc hl
  4867. ld [hl],$79
  4868. ld a,$01
  4869. call $03f8
  4870. push hl
  4871. ld hl,$c21a
  4872. ld [hl],$01
  4873. inc hl
  4874. ld [hl],$2b
  4875. inc hl
  4876. ld [hl],$7b
  4877. ld a,$01
  4878. call $03f8
  4879. push de
  4880. push hl
  4881. pop de
  4882. pop hl
  4883. push de
  4884. ld hl,$c21a
  4885. ld [hl],$01
  4886. inc hl
  4887. ld [hl],$72
  4888. inc hl
  4889. ld [hl],$7a
  4890. xor a
  4891. pop de
  4892. pop hl
  4893. call $3608
  4894. jp nz,$1f31
  4895. call $03f8
  4896. cp a,$ff
  4897. jp nz,$1f33
  4898. ld a,$01
  4899. ld a,$ff
  4900. ld [$c3a0],a
  4901. call $44e7
  4902. ret
  4903. call $3875
  4904. inc de
  4905. jp $b47d
  4906. jp nz,$1f86
  4907. ld hl,$c21a
  4908. ld [hl],$05
  4909. inc hl
  4910. ld [hl],$b9
  4911. inc hl
  4912. ld [hl],$7a
  4913. ld hl,$0100
  4914. call $03f8
  4915. call $3855
  4916. inc de
  4917. jp $d4cd
  4918. inc d
  4919. ld a,$01
  4920. ld [$c21a],a
  4921. ld bc,$00f0
  4922. ld de,$88f0
  4923. call $3875
  4924. inc de
  4925. jp $6ccd
  4926. inc d
  4927. ld a,$01
  4928. ld [$c21a],a
  4929. ld bc,$00f0
  4930. ld de,$4a12
  4931. ld hl,$88f0
  4932. call $146c
  4933. call $14d4
  4934. ret
  4935. call $3875
  4936. inc de
  4937. jp $b47d
  4938. jp z,$1fc9
  4939. call $14d4
  4940. ld a,$01
  4941. ld [$c21a],a
  4942. ld bc,$00f0
  4943. call $3875
  4944. inc de
  4945. jp $e5d5
  4946. pop de
  4947. pop hl
  4948. ld hl,$88f0
  4949. call $146c
  4950. call $14d4
  4951. ld hl,$c21a
  4952. ld [hl],$05
  4953. inc hl
  4954. ld [hl],$1b
  4955. inc hl
  4956. ld [hl],$7c
  4957. call $3875
  4958. inc de
  4959. jp $f8cd
  4960. inc bc
  4961. ld hl,$0000
  4962. call $3855
  4963. inc de
  4964. jp $cdc9
  4965. ld [hl],l
  4966. jr c,$1fc0
  4967. jp nz,$b47d
  4968. jp nz,$2014
  4969. ld hl,$c21a
  4970. ld [hl],$05
  4971. inc hl
  4972. ld [hl],$b9
  4973. inc hl
  4974. ld [hl],$7a
  4975. ld hl,$01ba
  4976. call $03f8
  4977. call $3855
  4978. ld a,[$ff00+c]
  4979. jp nz,$d4cd
  4980. inc d
  4981. ld a,$01
  4982. ld [$c21a],a
  4983. ld bc,$01ba
  4984. ld de,$8cc0
  4985. call $3875
  4986. ld a,[$ff00+c]
  4987. jp nz,$6ccd
  4988. inc d
  4989. ld a,$01
  4990. ld [$c21a],a
  4991. ld bc,$01ba
  4992. ld de,$4b22
  4993. ld hl,$8cc0
  4994. call $146c
  4995. call $14d4
  4996. ret
  4997. call $3875
  4998. ld a,[$ff00+c]
  4999. jp nz,$b47d
  5000. jp z,$2057
  5001. call $14d4
  5002. ld a,$01
  5003. ld [$c21a],a
  5004. ld bc,$01ba
  5005. call $3875
  5006. ld a,[$ff00+c]
  5007. jp nz,$e5d5
  5008. pop de
  5009. pop hl
  5010. ld hl,$8cc0
  5011. call $146c
  5012. call $14d4
  5013. ld hl,$c21a
  5014. ld [hl],$05
  5015. inc hl
  5016. ld [hl],$1b
  5017. inc hl
  5018. ld [hl],$7c
  5019. call $3875
  5020. ld a,[$ff00+c]
  5021. jp nz,$f8cd
  5022. inc bc
  5023. ld hl,$0000
  5024. call $3855
  5025. ld a,[$ff00+c]
  5026. jp nz,$cdc9
  5027. ld [hl],l
  5028. jr c,$204e
  5029. jp nz,$b47d
  5030. jp nz,$20a2
  5031. ld hl,$c21a
  5032. ld [hl],$05
  5033. inc hl
  5034. ld [hl],$b9
  5035. inc hl
  5036. ld [hl],$7a
  5037. ld hl,$0050
  5038. call $03f8
  5039. call $3855
  5040. ld a,[$ff00+c]
  5041. jp nz,$d4cd
  5042. inc d
  5043. ld a,$01
  5044. ld [$c21a],a
  5045. ld bc,$0050
  5046. ld de,$8fa0
  5047. call $3875
  5048. ld a,[$ff00+c]
  5049. jp nz,$6ccd
  5050. inc d
  5051. ld a,$01
  5052. ld [$c21a],a
  5053. ld bc,$0050
  5054. ld de,$4e02
  5055. ld hl,$8fa0
  5056. call $146c
  5057. call $14d4
  5058. ret
  5059. call $3875
  5060. ld a,[$ff00+c]
  5061. jp nz,$b47d
  5062. jp z,$20e5
  5063. call $14d4
  5064. ld a,$01
  5065. ld [$c21a],a
  5066. ld bc,$0050
  5067. call $3875
  5068. ld a,[$ff00+c]
  5069. jp nz,$e5d5
  5070. pop de
  5071. pop hl
  5072. ld hl,$8fa0
  5073. call $146c
  5074. call $14d4
  5075. ld hl,$c21a
  5076. ld [hl],$05
  5077. inc hl
  5078. ld [hl],$1b
  5079. inc hl
  5080. ld [hl],$7c
  5081. call $3875
  5082. ld a,[$ff00+c]
  5083. jp nz,$f8cd
  5084. inc bc
  5085. ld hl,$0000
  5086. call $3855
  5087. ld a,[$ff00+c]
  5088. jp nz,$c5c9
  5089. ld a,h
  5090. ld a,l
  5091. ld hl,[sp+$00]
  5092. ld [hl],d
  5093. ld l,e
  5094. xor a
  5095. cp l
  5096. jp nc,$212e
  5097. push hl
  5098. push af
  5099. xor a
  5100. ld hl,[sp+$04]
  5101. cp [hl]
  5102. jp nc,$210d
  5103. push af
  5104. call $3848
  5105. inc c
  5106. ld a,[hl]
  5107. inc hl
  5108. call $37d4
  5109. inc c
  5110. ld [bc],a
  5111. inc bc
  5112. pop af
  5113. inc a
  5114. jp $20f5
  5115. pop af
  5116. push bc
  5117. push af
  5118. ld hl,[sp+$06]
  5119. ld c,[hl]
  5120. ld b,$00
  5121. ld hl,$0014
  5122. ld a,l
  5123. sub c
  5124. ld c,a
  5125. ld a,h
  5126. sbc b
  5127. ld b,a
  5128. call $3848
  5129. inc c
  5130. add hl,bc
  5131. call $37d4
  5132. inc c
  5133. pop af
  5134. inc a
  5135. pop bc
  5136. pop hl
  5137. jp $20ee
  5138. pop bc
  5139. ret
  5140. push hl
  5141. push de
  5142. push bc
  5143. call $381d
  5144. ld c,h
  5145. call $381d
  5146. ld a,l
  5147. ld l,a
  5148. ld h,$00
  5149. add hl,hl
  5150. add hl,hl
  5151. ld e,l
  5152. ld d,h
  5153. add hl,hl
  5154. add hl,hl
  5155. add hl,de
  5156. ld de,$c4a0
  5157. add hl,de
  5158. ld e,c
  5159. ld d,$00
  5160. add hl,de
  5161. pop bc
  5162. push hl
  5163. call $3829
  5164. push hl
  5165. call $3811
  5166. pop de
  5167. call $20e6
  5168. pop bc
  5169. pop bc
  5170. pop bc
  5171. ret
  5172. push hl
  5173. push de
  5174. push bc
  5175. call $381d
  5176. ld c,h
  5177. call $381d
  5178. ld a,l
  5179. ld l,a
  5180. ld h,$00
  5181. add hl,hl
  5182. add hl,hl
  5183. ld e,l
  5184. ld d,h
  5185. add hl,hl
  5186. add hl,hl
  5187. add hl,de
  5188. ld de,$c608
  5189. add hl,de
  5190. ld e,c
  5191. ld d,$00
  5192. add hl,de
  5193. pop bc
  5194. push hl
  5195. call $3829
  5196. push hl
  5197. call $3811
  5198. pop de
  5199. call $20e6
  5200. pop bc
  5201. pop bc
  5202. pop bc
  5203. ret
  5204. push bc
  5205. ld a,h
  5206. ld a,l
  5207. ld hl,[sp+$00]
  5208. ld [hl],d
  5209. ld l,e
  5210. xor a
  5211. cp l
  5212. jp nc,$21d4
  5213. push hl
  5214. push af
  5215. xor a
  5216. ld hl,[sp+$04]
  5217. cp [hl]
  5218. jp nc,$21b3
  5219. push af
  5220. ld a,[bc]
  5221. inc bc
  5222. call $3848
  5223. inc c
  5224. ld [hl],a
  5225. inc hl
  5226. call $37d4
  5227. inc c
  5228. pop af
  5229. inc a
  5230. jp $219b
  5231. pop af
  5232. push bc
  5233. push af
  5234. ld hl,[sp+$06]
  5235. ld c,[hl]
  5236. ld b,$00
  5237. ld hl,$0014
  5238. ld a,l
  5239. sub c
  5240. ld c,a
  5241. ld a,h
  5242. sbc b
  5243. ld b,a
  5244. call $3848
  5245. inc c
  5246. add hl,bc
  5247. call $37d4
  5248. inc c
  5249. pop af
  5250. inc a
  5251. pop bc
  5252. pop hl
  5253. jp $2194
  5254. pop bc
  5255. ret
  5256. push hl
  5257. push de
  5258. push bc
  5259. call $381d
  5260. ld c,h
  5261. call $381d
  5262. ld a,l
  5263. ld l,a
  5264. ld h,$00
  5265. add hl,hl
  5266. add hl,hl
  5267. ld e,l
  5268. ld d,h
  5269. add hl,hl
  5270. add hl,hl
  5271. add hl,de
  5272. ld de,$c4a0
  5273. add hl,de
  5274. ld e,c
  5275. ld d,$00
  5276. add hl,de
  5277. pop bc
  5278. push hl
  5279. call $3829
  5280. push hl
  5281. call $3811
  5282. pop de
  5283. call $218c
  5284. pop bc
  5285. pop bc
  5286. pop bc
  5287. ret
  5288. push hl
  5289. push de
  5290. push bc
  5291. call $381d
  5292. ld c,h
  5293. call $381d
  5294. ld a,l
  5295. ld l,a
  5296. ld h,$00
  5297. add hl,hl
  5298. add hl,hl
  5299. ld e,l
  5300. ld d,h
  5301. add hl,hl
  5302. add hl,hl
  5303. add hl,de
  5304. ld de,$c608
  5305. add hl,de
  5306. ld e,c
  5307. ld d,$00
  5308. add hl,de
  5309. pop bc
  5310. push hl
  5311. call $3829
  5312. push hl
  5313. call $3811
  5314. pop de
  5315. call $218c
  5316. pop bc
  5317. pop bc
  5318. pop bc
  5319. ret
  5320. <corrupted stop>
  5321. add sp,$03
  5322. ld h,h
  5323. nop
  5324. ld a,[bc]
  5325. nop
  5326. ld bc,$e500
  5327. push bc
  5328. push bc
  5329. push bc
  5330. push bc
  5331. push de
  5332. call $3848
  5333. inc c
  5334. ld a,l
  5335. and h
  5336. inc a
  5337. jp nz,$225b
  5338. ld hl,[sp+$04]
  5339. ld a,[$c252]
  5340. ld [hl],a
  5341. ld hl,[sp+$03]
  5342. ld a,[$c253]
  5343. ld [hl],a
  5344. jp $226b
  5345. call $3848
  5346. inc c
  5347. ld e,h
  5348. ld hl,[sp+$04]
  5349. ld [hl],e
  5350. call $3848
  5351. inc c
  5352. ld e,l
  5353. ld hl,[sp+$03]
  5354. ld [hl],e
  5355. pop de
  5356. ld c,e
  5357. ld hl,[sp+$00]
  5358. ld [hl],d
  5359. ld hl,[sp+$00]
  5360. ld a,[hl]
  5361. and a,$01
  5362. jp z,$2291
  5363. ld hl,[sp+$01]
  5364. ld e,[hl]
  5365. ld hl,[sp+$02]
  5366. ld a,[hl]
  5367. call $3a83
  5368. call $3811
  5369. push hl
  5370. ld hl,$2310
  5371. push hl
  5372. call $150e
  5373. pop bc
  5374. pop bc
  5375. jp $230a
  5376. ld e,c
  5377. ld d,$00
  5378. ld hl,$0005
  5379. ld a,l
  5380. sub e
  5381. ld l,a
  5382. ld a,h
  5383. sbc d
  5384. ld h,a
  5385. add hl,hl
  5386. ld de,$2232
  5387. add hl,de
  5388. call $3791
  5389. call $3823
  5390. ld a,[hl]
  5391. dec a
  5392. inc hl
  5393. or [hl]
  5394. jp z,$22f4
  5395. call $3823
  5396. ld c,[hl]
  5397. inc hl
  5398. ld b,[hl]
  5399. call $3811
  5400. call $35f8
  5401. jp nc,$22f4
  5402. ld hl,[sp+$01]
  5403. ld e,[hl]
  5404. ld hl,[sp+$02]
  5405. ld a,[hl]
  5406. call $3a83
  5407. ld hl,[sp+$00]
  5408. ld a,[hl]
  5409. and a,$02
  5410. jp z,$22da
  5411. ld hl,$2313
  5412. push hl
  5413. call $150e
  5414. pop bc
  5415. jp $22e2
  5416. ld hl,$2315
  5417. push hl
  5418. call $150e
  5419. pop bc
  5420. call $3823
  5421. inc hl
  5422. inc hl
  5423. call $3791
  5424. ld hl,[sp+$02]
  5425. ld a,[hl]
  5426. inc a
  5427. ld hl,[sp+$02]
  5428. ld [hl],a
  5429. jp $22a5
  5430. ld hl,[sp+$01]
  5431. ld e,[hl]
  5432. ld hl,[sp+$02]
  5433. ld a,[hl]
  5434. call $3a83
  5435. call $3811
  5436. push hl
  5437. ld hl,$2317
  5438. push hl
  5439. call $150e
  5440. pop bc
  5441. pop bc
  5442. pop bc
  5443. pop bc
  5444. pop bc
  5445. pop bc
  5446. pop bc
  5447. ret
  5448. dec h
  5449. ld h,h
  5450. nop
  5451. jr nc,$2315
  5452. jr nz,$2317
  5453. dec h
  5454. ld h,h
  5455. nop
  5456. push de
  5457. ld a,l
  5458. and h
  5459. inc a
  5460. jp z,$2328
  5461. ld c,h
  5462. ld a,l
  5463. ld e,a
  5464. ld a,c
  5465. call $3a83
  5466. pop de
  5467. push de
  5468. call $150e
  5469. pop bc
  5470. ret
  5471. push hl
  5472. push bc
  5473. push bc
  5474. push bc
  5475. push de
  5476. call $3805
  5477. ld e,h
  5478. ld hl,[sp+$06]
  5479. ld [hl],e
  5480. call $3805
  5481. ld e,l
  5482. ld hl,[sp+$05]
  5483. ld [hl],e
  5484. pop de
  5485. ld hl,[sp+$02]
  5486. ld [hl],d
  5487. push de
  5488. ld l,e
  5489. push hl
  5490. ld hl,[sp+$06]
  5491. ld c,[hl]
  5492. ld hl,[sp+$07]
  5493. ld e,[hl]
  5494. ld hl,[sp+$08]
  5495. ld a,[hl]
  5496. call $3af0
  5497. pop bc
  5498. pop de
  5499. pop bc
  5500. push de
  5501. ld hl,[sp+$02]
  5502. ld a,[hl]
  5503. ld d,a
  5504. ld hl,[sp+$04]
  5505. ld a,[hl]
  5506. ld hl,[sp+$03]
  5507. ld l,[hl]
  5508. ld h,a
  5509. call $21d6
  5510. pop de
  5511. ld l,e
  5512. push hl
  5513. ld hl,[sp+$02]
  5514. ld c,[hl]
  5515. ld hl,[sp+$03]
  5516. ld e,[hl]
  5517. ld hl,[sp+$04]
  5518. ld a,[hl]
  5519. call $3c95
  5520. pop bc
  5521. pop bc
  5522. pop bc
  5523. pop bc
  5524. ret
  5525. push hl
  5526. ld hl,$ff0e
  5527. add hl,sp
  5528. ld sp,hl
  5529. ld a,e
  5530. cp a,$aa
  5531. jp c,$23c9
  5532. ld a,e
  5533. cp a,$ae
  5534. jp nc,$23c9
  5535. push de
  5536. ldh a,[$ff81]
  5537. push af
  5538. ld a,$01
  5539. call $03e4
  5540. pop af
  5541. pop de
  5542. push af
  5543. ld l,e
  5544. ld h,$00
  5545. add hl,hl
  5546. add hl,hl
  5547. add hl,hl
  5548. add hl,hl
  5549. ld e,l
  5550. ld d,h
  5551. add hl,hl
  5552. add hl,de
  5553. ld de,$9af3
  5554. add hl,de
  5555. push de
  5556. push hl
  5557. pop de
  5558. pop hl
  5559. ld hl,[sp+$02]
  5560. ld bc,$0030
  5561. call $047e
  5562. pop af
  5563. call $03d5
  5564. ld bc,$0030
  5565. ld hl,[sp+$00]
  5566. push hl
  5567. call $3848
  5568. or a,$d1
  5569. call $047e
  5570. jp $242d
  5571. push de
  5572. ldh a,[$ff80]
  5573. push af
  5574. ld a,$19
  5575. call $03f2
  5576. ld hl,$5dc2
  5577. call $37d4
  5578. or a,$f1
  5579. pop de
  5580. push af
  5581. push de
  5582. ld hl,[sp+$04]
  5583. push hl
  5584. ld l,e
  5585. ld h,$00
  5586. ld de,$0005
  5587. call $36c6
  5588. add hl,hl
  5589. ld c,l
  5590. ld b,h
  5591. call $3848
  5592. ld hl,[sp+$09]
  5593. ld c,[hl]
  5594. inc hl
  5595. ld b,[hl]
  5596. call $3848
  5597. ld hl,[sp+$09]
  5598. pop de
  5599. ld bc,$00f0
  5600. call $1263
  5601. pop de
  5602. ld l,e
  5603. ld h,$00
  5604. ld de,$0005
  5605. call $36c6
  5606. push de
  5607. push hl
  5608. pop de
  5609. pop hl
  5610. add hl,hl
  5611. add hl,hl
  5612. add hl,hl
  5613. add hl,hl
  5614. ld e,l
  5615. ld d,h
  5616. add hl,hl
  5617. add hl,de
  5618. push de
  5619. push hl
  5620. pop de
  5621. pop hl
  5622. ld hl,[sp+$02]
  5623. add hl,de
  5624. push hl
  5625. call $3848
  5626. ld hl,[sp+$d1]
  5627. ld bc,$0030
  5628. call $047e
  5629. pop af
  5630. call $03f2
  5631. ld hl,$00f4
  5632. add hl,sp
  5633. ld sp,hl
  5634. ret
  5635. push hl
  5636. ld hl,$ff2e
  5637. add hl,sp
  5638. ld sp,hl
  5639. dec e
  5640. push de
  5641. ldh a,[$ff80]
  5642. push af
  5643. ld a,$19
  5644. call $03f2
  5645. ld hl,$43bd
  5646. call $37d4
  5647. sub a,$f1
  5648. pop de
  5649. push af
  5650. push de
  5651. ld hl,[sp+$04]
  5652. push hl
  5653. ld l,e
  5654. ld h,$00
  5655. ld de,$0008
  5656. call $36c6
  5657. add hl,hl
  5658. ld c,l
  5659. ld b,h
  5660. call $3848
  5661. ret c
  5662. add hl,bc
  5663. ld c,[hl]
  5664. inc hl
  5665. ld b,[hl]
  5666. call $3848
  5667. ret c
  5668. add hl,bc
  5669. pop de
  5670. ld bc,$00d0
  5671. call $1263
  5672. pop de
  5673. ld l,e
  5674. ld h,$00
  5675. ld de,$0008
  5676. call $36c6
  5677. push de
  5678. push hl
  5679. pop de
  5680. pop hl
  5681. add hl,hl
  5682. ld e,l
  5683. ld d,h
  5684. add hl,hl
  5685. add hl,hl
  5686. ld c,l
  5687. ld b,h
  5688. add hl,hl
  5689. add hl,de
  5690. add hl,bc
  5691. push de
  5692. push hl
  5693. pop de
  5694. pop hl
  5695. ld hl,[sp+$02]
  5696. add hl,de
  5697. push hl
  5698. call $3848
  5699. ret c
  5700. pop de
  5701. ld bc,$001a
  5702. call $047e
  5703. pop af
  5704. call $03f2
  5705. ld hl,$00d4
  5706. add hl,sp
  5707. ld sp,hl
  5708. ret
  5709. push hl
  5710. push de
  5711. ldh a,[$ff80]
  5712. push af
  5713. ld a,$19
  5714. call $03f2
  5715. pop af
  5716. pop de
  5717. push af
  5718. ld l,e
  5719. ld h,$00
  5720. add hl,hl
  5721. ld e,l
  5722. ld d,h
  5723. add hl,hl
  5724. add hl,hl
  5725. add hl,hl
  5726. add hl,de
  5727. ld de,$4093
  5728. add hl,de
  5729. push hl
  5730. call $381d
  5731. pop de
  5732. ld bc,$0012
  5733. call $047e
  5734. pop af
  5735. call $03f2
  5736. pop bc
  5737. ret
  5738. push hl
  5739. push de
  5740. ldh a,[$ff80]
  5741. push af
  5742. ld a,$19
  5743. call $03f2
  5744. pop af
  5745. pop de
  5746. push af
  5747. ld l,e
  5748. ld h,$00
  5749. ld e,l
  5750. ld d,h
  5751. add hl,hl
  5752. add hl,hl
  5753. ld c,l
  5754. ld b,h
  5755. add hl,hl
  5756. add hl,de
  5757. add hl,bc
  5758. ld de,$59bf
  5759. add hl,de
  5760. push hl
  5761. call $381d
  5762. pop de
  5763. ld bc,$000d
  5764. call $047e
  5765. pop af
  5766. call $03f2
  5767. pop bc
  5768. ret
  5769. call $0465
  5770. ld l,a
  5771. inc l
  5772. dec l
  5773. jp z,$251b
  5774. ld a,l
  5775. and a,$f0
  5776. jp nz,$251b
  5777. ld a,[$c208]
  5778. or a
  5779. jp nz,$251b
  5780. ld a,$01
  5781. ld [$c208],a
  5782. ld a,[$c205]
  5783. or a
  5784. jp nz,$2526
  5785. xor a
  5786. ld [$c208],a
  5787. xor a
  5788. ld [$c207],a
  5789. ld a,l
  5790. ret
  5791. push de
  5792. push hl
  5793. push bc
  5794. push bc
  5795. push bc
  5796. push bc
  5797. push bc
  5798. push bc
  5799. ld hl,[sp+$0c]
  5800. ld a,[hl]
  5801. inc hl
  5802. ld h,[hl]
  5803. ld l,a
  5804. push bc
  5805. push hl
  5806. ld de,$0100
  5807. call $36c6
  5808. ld a,l
  5809. pop hl
  5810. push hl
  5811. ld de,$0100
  5812. call $36c6
  5813. ld a,e
  5814. pop hl
  5815. pop bc
  5816. push hl
  5817. push bc
  5818. ld l,c
  5819. ld h,b
  5820. ld de,$0100
  5821. call $36c6
  5822. ld a,l
  5823. ld hl,[sp+$0e]
  5824. ld [hl],a
  5825. pop hl
  5826. ld de,$0100
  5827. call $36c6
  5828. ld a,e
  5829. ld hl,[sp+$02]
  5830. ld [hl],$96
  5831. ld hl,[sp+$03]
  5832. ld [hl],$90
  5833. ld hl,[sp+$0a]
  5834. ld [hl],$91
  5835. ld hl,[sp+$04]
  5836. call $37d4
  5837. rrca
  5838. ld c,$00
  5839. ld a,[$c2cd]
  5840. or a
  5841. jp nz,$2584
  5842. ld e,$00
  5843. jp $2586
  5844. ld e,$69
  5845. ld hl,[sp+$0c]
  5846. ld a,[hl]
  5847. add a,$94
  5848. add e
  5849. ld hl,[sp+$0b]
  5850. ld [hl],a
  5851. call $3848
  5852. ld [de],a
  5853. ld de,$fff8
  5854. add hl,de
  5855. inc h
  5856. dec h
  5857. bit 7,h
  5858. jr nz,$25b8
  5859. call $3848
  5860. rrca
  5861. ld [hl],$92
  5862. inc hl
  5863. call $37d4
  5864. rrca
  5865. call $3848
  5866. ld [de],a
  5867. ld de,$fff8
  5868. add hl,de
  5869. call $37d4
  5870. ld [de],a
  5871. inc c
  5872. jp $25bb
  5873. jp $25be
  5874. jp $258f
  5875. call $3848
  5876. ld [de],a
  5877. ld a,l
  5878. or h
  5879. jp z,$2602
  5880. inc c
  5881. push bc
  5882. ld hl,[sp+$0d]
  5883. ld a,[hl]
  5884. call $3848
  5885. ld de,$2377
  5886. call $37d4
  5887. ld de,$013e
  5888. ld [$c21a],a
  5889. ld bc,$0010
  5890. call $3848
  5891. inc d
  5892. ld h,$00
  5893. add hl,hl
  5894. add hl,hl
  5895. add hl,hl
  5896. add hl,hl
  5897. ld de,$4c32
  5898. add hl,de
  5899. push hl
  5900. ld hl,[sp+$0f]
  5901. ld a,[hl]
  5902. and a,$7f
  5903. ld l,a
  5904. ld h,$00
  5905. add hl,hl
  5906. add hl,hl
  5907. add hl,hl
  5908. add hl,hl
  5909. ld de,$8800
  5910. add hl,de
  5911. pop de
  5912. call $146c
  5913. pop bc
  5914. ld a,c
  5915. cp a,$06
  5916. jp nc,$2617
  5917. call $3848
  5918. rrca
  5919. ld [hl],$93
  5920. inc hl
  5921. call $37d4
  5922. rrca
  5923. inc c
  5924. jp $2602
  5925. pop hl
  5926. call $14da
  5927. ld c,l
  5928. ld b,h
  5929. ld hl,[sp+$00]
  5930. push de
  5931. push hl
  5932. pop de
  5933. pop hl
  5934. ld l,c
  5935. ld h,b
  5936. ld bc,$0009
  5937. call $047e
  5938. add sp,$10
  5939. ret
  5940. push bc
  5941. push bc
  5942. push bc
  5943. ld a,l
  5944. or h
  5945. jp nz,$2659
  5946. call $381d
  5947. ld [hl],$00
  5948. inc hl
  5949. call $378b
  5950. call $381d
  5951. ld [hl],$00
  5952. inc hl
  5953. call $378b
  5954. call $381d
  5955. ld [hl],$00
  5956. inc hl
  5957. call $378b
  5958. call $381d
  5959. ld [hl],$00
  5960. jp $26ea
  5961. push de
  5962. ld c,$00
  5963. ld a,h
  5964. and a,$40
  5965. jp z,$2665
  5966. jp $266a
  5967. inc c
  5968. add hl,hl
  5969. jp $265c
  5970. push bc
  5971. ld bc,$0000
  5972. inc h
  5973. dec h
  5974. bit 7,h
  5975. jr z,$2675
  5976. dec bc
  5977. push bc
  5978. push hl
  5979. ld hl,$0001
  5980. push hl
  5981. ld hl,$0000
  5982. push hl
  5983. call $34c7
  5984. ld hl,[sp+$08]
  5985. call $32d1
  5986. pop bc
  5987. pop de
  5988. push bc
  5989. ld l,e
  5990. ld h,d
  5991. ld bc,$0000
  5992. inc h
  5993. dec h
  5994. bit 7,h
  5995. jr z,$2696
  5996. dec bc
  5997. push bc
  5998. push hl
  5999. ld hl,[sp+$06]
  6000. call $3428
  6001. call $3811
  6002. inc hl
  6003. inc hl
  6004. inc hl
  6005. call $377f
  6006. pop bc
  6007. ld a,c
  6008. cp a,$01
  6009. jp c,$26ba
  6010. push bc
  6011. ld hl,[sp+$02]
  6012. ld b,$01
  6013. call $33bd
  6014. pop bc
  6015. dec c
  6016. jp $26a7
  6017. xor a
  6018. cp a,$04
  6019. jp nc,$26ea
  6020. push af
  6021. ld hl,[sp+$02]
  6022. call $32e0
  6023. ld hl,$0000
  6024. push hl
  6025. ld hl,$00ff
  6026. push hl
  6027. call $3343
  6028. pop bc
  6029. pop af
  6030. call $3811
  6031. ld [hl],c
  6032. ld hl,[sp+$02]
  6033. ld b,$08
  6034. call $33bd
  6035. call $3811
  6036. dec hl
  6037. call $377f
  6038. pop af
  6039. inc a
  6040. jp $26bb
  6041. pop bc
  6042. pop bc
  6043. pop bc
  6044. ret
  6045. ld a,[de]
  6046. or a
  6047. jp z,$26fa
  6048. ld a,[de]
  6049. inc de
  6050. ld [hl],a
  6051. inc hl
  6052. jp $26ee
  6053. xor a
  6054. ld [hl],a
  6055. ret
  6056. push de
  6057. push hl
  6058. ldh a,[$ff80]
  6059. push af
  6060. ld a,c
  6061. call $03f2
  6062. pop af
  6063. pop hl
  6064. pop de
  6065. push af
  6066. ld a,[de]
  6067. or a
  6068. jp z,$2716
  6069. ld a,[de]
  6070. inc de
  6071. ld [hl],a
  6072. inc hl
  6073. jp $270a
  6074. pop af
  6075. push hl
  6076. push af
  6077. xor a
  6078. ld [hl],a
  6079. pop af
  6080. call $03f2
  6081. pop hl
  6082. ret
  6083. push bc
  6084. push bc
  6085. push bc
  6086. push de
  6087. push hl
  6088. ld hl,$0000
  6089. push hl
  6090. ld hl,$0000
  6091. push hl
  6092. ld hl,[sp+$0a]
  6093. call $32d1
  6094. ld hl,$0000
  6095. call $378b
  6096. pop hl
  6097. ld e,l
  6098. ld a,h
  6099. cp a,$08
  6100. jp nc,$2747
  6101. ld bc,$0009
  6102. jp $2755
  6103. cp a,$0b
  6104. jp nc,$2752
  6105. ld bc,$0008
  6106. jp $2755
  6107. ld bc,$0007
  6108. ld a,c
  6109. dec e
  6110. jp nz,$275d
  6111. jp $2778
  6112. push bc
  6113. push de
  6114. call $3811
  6115. add hl,bc
  6116. call $377f
  6117. call $3811
  6118. ld bc,$0000
  6119. push bc
  6120. push hl
  6121. ld hl,[sp+$0c]
  6122. call $3553
  6123. pop de
  6124. pop bc
  6125. jp $2756
  6126. pop de
  6127. push bc
  6128. ld a,e
  6129. or d
  6130. jp z,$2787
  6131. ld hl,[sp+$04]
  6132. ld bc,$0004
  6133. call $35e8
  6134. pop bc
  6135. pop hl
  6136. push hl
  6137. add hl,bc
  6138. pop de
  6139. push hl
  6140. pop hl
  6141. push hl
  6142. pop bc
  6143. pop bc
  6144. pop bc
  6145. ret
  6146. ldh a,[$ff81]
  6147. push af
  6148. ld a,$03
  6149. call $03e4
  6150. ld hl,[sp+$08]
  6151. push de
  6152. push hl
  6153. pop de
  6154. pop hl
  6155. ld hl,$c98a
  6156. ld bc,$0004
  6157. call $35e8
  6158. ld hl,[sp+$04]
  6159. call $32e0
  6160. ld hl,[sp+$0c]
  6161. call $3553
  6162. ld hl,$000f
  6163. push hl
  6164. ld hl,$423b
  6165. push hl
  6166. ld hl,[sp+$0c]
  6167. call $32e0
  6168. call $3579
  6169. jp nc,$27d7
  6170. ld hl,$000f
  6171. push hl
  6172. ld hl,$423b
  6173. push hl
  6174. ld hl,[sp+$0c]
  6175. call $32d1
  6176. jp $27f7
  6177. ld hl,[sp+$08]
  6178. call $32e0
  6179. ld hl,$0000
  6180. push hl
  6181. ld hl,$0000
  6182. push hl
  6183. call $3579
  6184. jp nc,$27f7
  6185. ld hl,$0000
  6186. push hl
  6187. ld hl,$0000
  6188. push hl
  6189. ld hl,[sp+$0c]
  6190. call $32d1
  6191. ld a,$03
  6192. call $03d5
  6193. ld de,$c98a
  6194. ld hl,[sp+$08]
  6195. ld bc,$0004
  6196. call $35e8
  6197. pop af
  6198. call $03d5
  6199. ret
  6200. ld bc,$00a0
  6201. ld e,$00
  6202. ld hl,$c400
  6203. call $0487
  6204. ret
  6205. push hl
  6206. push de
  6207. ldh a,[$ff81]
  6208. push af
  6209. call $3829
  6210. ld h,$00
  6211. push hl
  6212. call $381d
  6213. ld l,h
  6214. ld h,$00
  6215. pop de
  6216. call $3759
  6217. push de
  6218. push hl
  6219. pop de
  6220. pop hl
  6221. push de
  6222. ld a,$03
  6223. call $03d5
  6224. ld hl,$c21a
  6225. ld [hl],$05
  6226. inc hl
  6227. ld [hl],$b9
  6228. inc hl
  6229. ld [hl],$7a
  6230. pop de
  6231. push de
  6232. push de
  6233. push hl
  6234. pop de
  6235. pop hl
  6236. add hl,hl
  6237. inc hl
  6238. inc hl
  6239. inc hl
  6240. inc hl
  6241. call $03f8
  6242. ld c,l
  6243. ld b,h
  6244. push bc
  6245. inc bc
  6246. inc bc
  6247. inc bc
  6248. inc bc
  6249. call $3811
  6250. push hl
  6251. call $3848
  6252. inc c
  6253. pop de
  6254. call $2130
  6255. pop bc
  6256. pop de
  6257. push bc
  6258. ld l,c
  6259. ld h,b
  6260. add hl,de
  6261. inc hl
  6262. inc hl
  6263. inc hl
  6264. inc hl
  6265. ld c,l
  6266. ld b,h
  6267. call $381d
  6268. push hl
  6269. call $3805
  6270. pop de
  6271. call $215e
  6272. pop bc
  6273. pop af
  6274. push bc
  6275. call $381d
  6276. push de
  6277. push hl
  6278. pop de
  6279. pop hl
  6280. ld l,c
  6281. ld h,b
  6282. ld [hl],e
  6283. inc hl
  6284. ld [hl],d
  6285. call $3829
  6286. push de
  6287. push hl
  6288. pop de
  6289. pop hl
  6290. ld l,c
  6291. ld h,b
  6292. inc hl
  6293. inc hl
  6294. ld [hl],e
  6295. inc hl
  6296. ld [hl],d
  6297. call $03d5
  6298. pop hl
  6299. pop bc
  6300. pop bc
  6301. ret
  6302. push hl
  6303. push bc
  6304. push bc
  6305. call $381d
  6306. ldh a,[$ff81]
  6307. push af
  6308. push hl
  6309. ld a,$03
  6310. call $03d5
  6311. call $3805
  6312. ld a,[hl]
  6313. inc hl
  6314. call $3773
  6315. ld hl,[sp+$06]
  6316. ld [hl],a
  6317. call $3805
  6318. ld a,[hl]
  6319. inc hl
  6320. call $3773
  6321. ld hl,[sp+$07]
  6322. ld [hl],a
  6323. call $3805
  6324. ld a,[hl]
  6325. inc hl
  6326. call $3773
  6327. ld hl,[sp+$04]
  6328. ld [hl],a
  6329. call $3805
  6330. ld a,[hl]
  6331. inc hl
  6332. call $3773
  6333. ld hl,[sp+$05]
  6334. ld [hl],a
  6335. call $3805
  6336. ld c,l
  6337. ld b,h
  6338. ld hl,[sp+$04]
  6339. ld e,[hl]
  6340. ld hl,[sp+$05]
  6341. ld h,[hl]
  6342. ld d,h
  6343. ld hl,[sp+$07]
  6344. ld a,[hl]
  6345. ld hl,[sp+$06]
  6346. ld l,[hl]
  6347. ld h,a
  6348. call $21d6
  6349. ld hl,[sp+$04]
  6350. ld e,[hl]
  6351. ld d,$00
  6352. ld hl,[sp+$05]
  6353. ld l,[hl]
  6354. ld h,$00
  6355. call $3759
  6356. ld c,l
  6357. ld b,h
  6358. call $3805
  6359. add hl,bc
  6360. ld c,l
  6361. ld b,h
  6362. ld hl,[sp+$04]
  6363. ld e,[hl]
  6364. ld hl,[sp+$05]
  6365. ld h,[hl]
  6366. ld d,h
  6367. ld hl,[sp+$07]
  6368. ld a,[hl]
  6369. ld hl,[sp+$06]
  6370. ld l,[hl]
  6371. ld h,a
  6372. call $2204
  6373. ld a,$02
  6374. ld [$c39f],a
  6375. ld hl,[sp+$04]
  6376. ld l,[hl]
  6377. push hl
  6378. ld hl,[sp+$07]
  6379. ld c,[hl]
  6380. ld hl,[sp+$08]
  6381. ld e,[hl]
  6382. ld hl,[sp+$09]
  6383. ld a,[hl]
  6384. call $3c95
  6385. pop bc
  6386. ld hl,$c21a
  6387. ld [hl],$05
  6388. inc hl
  6389. ld [hl],$1b
  6390. inc hl
  6391. ld [hl],$7c
  6392. pop hl
  6393. call $03f8
  6394. pop af
  6395. call $03d5
  6396. pop bc
  6397. pop bc
  6398. pop bc
  6399. ret
  6400. ld e,$00
  6401. ld a,[hl]
  6402. or a
  6403. jp z,$294f
  6404. ld a,[hl]
  6405. inc hl
  6406. inc e
  6407. jp $2944
  6408. ld a,e
  6409. ret
  6410. push de
  6411. push bc
  6412. push hl
  6413. push bc
  6414. push hl
  6415. call $3805
  6416. call $2942
  6417. add a,$02
  6418. ld e,a
  6419. pop hl
  6420. push de
  6421. push hl
  6422. ld a,h
  6423. ld hl,[sp+$09]
  6424. ld [hl],a
  6425. cp a,$ff
  6426. jp nz,$2976
  6427. ld a,$14
  6428. sub e
  6429. ld b,$02
  6430. call $36af
  6431. ld hl,[sp+$09]
  6432. ld [hl],a
  6433. pop hl
  6434. ld a,l
  6435. ld hl,[sp+$06]
  6436. ld [hl],a
  6437. cp a,$ff
  6438. jp nz,$2984
  6439. ld hl,[sp+$06]
  6440. ld [hl],$07
  6441. pop de
  6442. pop bc
  6443. pop hl
  6444. push de
  6445. push bc
  6446. ld a,c
  6447. and a,$02
  6448. jp nz,$29a6
  6449. ld l,e
  6450. ld h,$00
  6451. ld h,l
  6452. ld l,$00
  6453. inc hl
  6454. inc hl
  6455. inc hl
  6456. push de
  6457. push hl
  6458. pop de
  6459. pop hl
  6460. ld hl,[sp+$05]
  6461. ld a,[hl]
  6462. ld hl,[sp+$04]
  6463. ld l,[hl]
  6464. ld h,a
  6465. call $2818
  6466. pop bc
  6467. pop de
  6468. push hl
  6469. push bc
  6470. ld a,c
  6471. and a,$08
  6472. jp nz,$29cb
  6473. push de
  6474. ld hl,$c21a
  6475. ld [hl],$05
  6476. inc hl
  6477. ld [hl],$5a
  6478. inc hl
  6479. ld [hl],$7e
  6480. pop de
  6481. push de
  6482. ld hl,[sp+$07]
  6483. ld a,[hl]
  6484. ld hl,[sp+$06]
  6485. ld l,[hl]
  6486. ld h,a
  6487. ld c,$03
  6488. call $03f8
  6489. pop de
  6490. push de
  6491. ld a,$02
  6492. ld [$c39f],a
  6493. ld hl,$c21a
  6494. ld [hl],$31
  6495. inc hl
  6496. ld [hl],$29
  6497. inc hl
  6498. ld [hl],$71
  6499. pop de
  6500. push de
  6501. ld l,e
  6502. ld h,$00
  6503. ld h,l
  6504. ld l,$00
  6505. inc hl
  6506. inc hl
  6507. inc hl
  6508. push de
  6509. push hl
  6510. pop de
  6511. pop hl
  6512. ld hl,[sp+$07]
  6513. ld a,[hl]
  6514. ld hl,[sp+$06]
  6515. ld l,[hl]
  6516. ld h,a
  6517. ld c,$00
  6518. call $03f8
  6519. call $3805
  6520. push hl
  6521. ld hl,[sp+$08]
  6522. ld e,[hl]
  6523. ld d,$00
  6524. ld hl,[sp+$09]
  6525. ld l,[hl]
  6526. ld h,$00
  6527. ld h,l
  6528. ld l,$00
  6529. inc h
  6530. add hl,de
  6531. inc hl
  6532. pop de
  6533. call $231a
  6534. pop de
  6535. ld l,$03
  6536. push hl
  6537. ld c,e
  6538. ld hl,[sp+$06]
  6539. ld e,[hl]
  6540. ld hl,[sp+$07]
  6541. ld a,[hl]
  6542. call $3c95
  6543. pop bc
  6544. pop bc
  6545. push bc
  6546. ld a,c
  6547. and a,$01
  6548. jp nz,$2a2e
  6549. call $2500
  6550. and a,$30
  6551. jp z,$2a26
  6552. pop bc
  6553. pop hl
  6554. push hl
  6555. ld a,c
  6556. and a,$04
  6557. jp nz,$2a3a
  6558. call $289e
  6559. pop hl
  6560. pop bc
  6561. pop bc
  6562. ret
  6563. ld c,e
  6564. push de
  6565. push hl
  6566. pop de
  6567. pop hl
  6568. ld hl,$ffff
  6569. jp $2951
  6570. ld hl,$0676
  6571. push hl
  6572. ld hl,$5ba0
  6573. push hl
  6574. ld hl,$0000
  6575. push hl
  6576. ld hl,$0001
  6577. push hl
  6578. ld hl,$c396
  6579. call $3553
  6580. call $32e0
  6581. call $3579
  6582. jp nc,$2a78
  6583. ld hl,$5ba0
  6584. call $3855
  6585. sub [hl]
  6586. jp $7621
  6587. ld b,$cd
  6588. ld d,l
  6589. jr c,$2a0f
  6590. jp $e5c9
  6591. push de
  6592. add sp,$ee
  6593. push bc
  6594. ld hl,[sp+$13]
  6595. ldh a,[$ff80]
  6596. ld [hl],a
  6597. ld a,[$c203]
  6598. push af
  6599. ldh a,[$ff40]
  6600. and a,$80
  6601. jp z,$2aab
  6602. call $14d4
  6603. ld a,[$c203]
  6604. and a,$08
  6605. jp z,$2aab
  6606. ld a,[$c203]
  6607. and a,$f7
  6608. ld [$c203],a
  6609. ld a,[$c203]
  6610. ld hl,$c204
  6611. cp [hl]
  6612. jp nz,$2aa1
  6613. ld a,$01
  6614. call $03f2
  6615. pop af
  6616. pop bc
  6617. push af
  6618. call $3848
  6619. ld d,$d5
  6620. push hl
  6621. pop de
  6622. pop hl
  6623. ld hl,$0000
  6624. call $3608
  6625. jp nc,$2b70
  6626. push bc
  6627. xor a
  6628. call $6b53
  6629. call $3848
  6630. jr $2adf
  6631. stop
  6632. call $3608
  6633. jp c,$2add
  6634. ld hl,[sp+$14]
  6635. ld [hl],$10
  6636. jp $2ae5
  6637. call $3848
  6638. jr $2b3f
  6639. ld hl,[sp+$14]
  6640. ld [hl],e
  6641. ld hl,[sp+$15]
  6642. ld a,[hl]
  6643. call $03f2
  6644. ld hl,[sp+$14]
  6645. ld c,[hl]
  6646. ld b,$00
  6647. call $3848
  6648. ld a,[de]
  6649. push de
  6650. push hl
  6651. pop de
  6652. pop hl
  6653. ld hl,[sp+$04]
  6654. call $047e
  6655. ld hl,[sp+$14]
  6656. ld a,[hl]
  6657. cp a,$10
  6658. jp nc,$2b20
  6659. ld hl,[sp+$14]
  6660. ld c,[hl]
  6661. ld b,$00
  6662. ld hl,$0010
  6663. ld a,l
  6664. sub c
  6665. ld c,a
  6666. ld a,h
  6667. sbc b
  6668. ld b,a
  6669. ld hl,[sp+$14]
  6670. ld e,[hl]
  6671. ld d,$00
  6672. ld hl,[sp+$04]
  6673. add hl,de
  6674. ld e,$00
  6675. call $0487
  6676. ld a,$01
  6677. call $03f2
  6678. ld a,$10
  6679. ld hl,[sp+$04]
  6680. cp a,$01
  6681. jp c,$2b3b
  6682. push hl
  6683. push af
  6684. ld a,[hl]
  6685. call $6b68
  6686. pop af
  6687. dec a
  6688. pop hl
  6689. inc hl
  6690. jp $2b29
  6691. ld a,$20
  6692. call $6b53
  6693. pop bc
  6694. inc c
  6695. dec c
  6696. jp z,$2b49
  6697. jp $2b70
  6698. push bc
  6699. call $6b7c
  6700. ld hl,[sp+$14]
  6701. ld c,[hl]
  6702. ld b,$00
  6703. call $3848
  6704. jr $2bd4
  6705. sub c
  6706. ld l,a
  6707. ld a,h
  6708. sbc b
  6709. ld h,a
  6710. call $37d4
  6711. jr $2b2e
  6712. ld c,b
  6713. jr c,$2b7e
  6714. ld de,$0010
  6715. add hl,de
  6716. call $37d4
  6717. ld a,[de]
  6718. pop bc
  6719. jp $2ab3
  6720. pop af
  6721. ld [$c203],a
  6722. ld hl,[sp+$11]
  6723. ld a,[hl]
  6724. call $03f2
  6725. add sp,$16
  6726. ret
  6727. ld c,$00
  6728. call $2a79
  6729. ret
  6730. ld a,[$c2fb]
  6731. cp a,$01
  6732. jp z,$2b93
  6733. ld a,[$c2fb]
  6734. cp a,$ff
  6735. jp nz,$2b96
  6736. call $2b7d
  6737. ret
  6738. push hl
  6739. ld hl,$000d
  6740. add hl,sp
  6741. ld a,[hl]
  6742. and a,$7f
  6743. ld b,a
  6744. dec hl
  6745. ld c,[hl]
  6746. ld a,$00
  6747. sub [hl]
  6748. ld e,a
  6749. ld a,$3c
  6750. sbc b
  6751. jp c,$2bd7
  6752. jp nz,$2bb5
  6753. ld a,e
  6754. cp a,$35
  6755. jp c,$2bc6
  6756. inc hl
  6757. ld a,[hl]
  6758. and a,$80
  6759. ld [hl],a
  6760. ld b,$07
  6761. xor a
  6762. dec hl
  6763. ld [hl],a
  6764. dec b
  6765. jp nz,$2bbd
  6766. jp $2c0b
  6767. inc e
  6768. ld hl,$0004
  6769. add hl,sp
  6770. ld c,$08
  6771. ld b,e
  6772. call $31ea
  6773. ld de,$0000
  6774. jp $2bea
  6775. ld hl,$c400
  6776. add hl,bc
  6777. push de
  6778. push hl
  6779. pop de
  6780. pop hl
  6781. inc de
  6782. ld a,d
  6783. dec de
  6784. cp a,$08
  6785. jp c,$2bea
  6786. ld de,$07ff
  6787. ld hl,$0004
  6788. add hl,sp
  6789. ld bc,$0509
  6790. call $31b4
  6791. ld hl,$000c
  6792. add hl,sp
  6793. push de
  6794. push hl
  6795. pop de
  6796. pop hl
  6797. add hl,hl
  6798. add hl,hl
  6799. add hl,hl
  6800. add hl,hl
  6801. ld a,[de]
  6802. and a,$0f
  6803. or l
  6804. ld [de],a
  6805. inc de
  6806. ld a,[de]
  6807. and a,$80
  6808. or h
  6809. ld [de],a
  6810. pop hl
  6811. pop bc
  6812. pop af
  6813. push bc
  6814. ret
  6815. pop bc
  6816. ld de,$0000
  6817. push de
  6818. push bc
  6819. push hl
  6820. ld hl,$000d
  6821. add hl,sp
  6822. ld d,[hl]
  6823. dec hl
  6824. ld e,[hl]
  6825. push de
  6826. push hl
  6827. pop de
  6828. pop hl
  6829. ld c,l
  6830. xor a
  6831. add hl,hl
  6832. rra
  6833. push af
  6834. add hl,hl
  6835. rla
  6836. add hl,hl
  6837. rla
  6838. add hl,hl
  6839. rla
  6840. ld l,h
  6841. ld h,a
  6842. and a,$7f
  6843. or l
  6844. ld a,c
  6845. jp z,$2c46
  6846. or a,$10
  6847. ld b,a
  6848. ld a,h
  6849. or a,$f8
  6850. and l
  6851. inc a
  6852. dec hl
  6853. jp nz,$2c45
  6854. ld hl,$43fe
  6855. ld a,b
  6856. ld bc,$3c01
  6857. add hl,bc
  6858. push de
  6859. push hl
  6860. pop de
  6861. pop hl
  6862. push de
  6863. ld b,$07
  6864. dec hl
  6865. ld d,a
  6866. ld e,[hl]
  6867. ld a,e
  6868. push de
  6869. push hl
  6870. pop de
  6871. pop hl
  6872. add hl,hl
  6873. add hl,hl
  6874. add hl,hl
  6875. push de
  6876. push hl
  6877. pop de
  6878. pop hl
  6879. ld [hl],d
  6880. dec b
  6881. jp nz,$2c51
  6882. pop de
  6883. pop af
  6884. ld hl,$0004
  6885. add hl,sp
  6886. ld c,$08
  6887. call $3106
  6888. pop hl
  6889. ret
  6890. push hl
  6891. ld hl,$000d
  6892. add hl,sp
  6893. ld a,[hl]
  6894. and a,$7f
  6895. ld b,a
  6896. dec hl
  6897. ld c,[hl]
  6898. ld a,$80
  6899. sub [hl]
  6900. ld e,a
  6901. ld a,$3f
  6902. sbc b
  6903. jp c,$2cb1
  6904. jp nz,$2c90
  6905. ld a,e
  6906. cp a,$18
  6907. jp c,$2c9f
  6908. inc hl
  6909. ld a,[hl]
  6910. and a,$80
  6911. ld [hl],a
  6912. xor a
  6913. dec hl
  6914. ld [hl],a
  6915. dec hl
  6916. ld [hl],a
  6917. dec hl
  6918. ld [hl],a
  6919. jp $2ce0
  6920. inc e
  6921. dec hl
  6922. dec hl
  6923. dec hl
  6924. ld c,$03
  6925. ld b,e
  6926. call $31ea
  6927. inc hl
  6928. inc hl
  6929. inc hl
  6930. ld e,$00
  6931. jp $2cc4
  6932. push de
  6933. push hl
  6934. pop de
  6935. pop hl
  6936. ld hl,$c080
  6937. add hl,bc
  6938. push de
  6939. push hl
  6940. pop de
  6941. pop hl
  6942. ld a,d
  6943. or a
  6944. jp z,$2cc4
  6945. ld e,$ff
  6946. ld b,h
  6947. ld c,l
  6948. ld d,$03
  6949. dec hl
  6950. ld a,[hl]
  6951. ld [bc],a
  6952. dec bc
  6953. dec d
  6954. jp nz,$2cc8
  6955. inc hl
  6956. inc hl
  6957. inc hl
  6958. ld a,[hl]
  6959. rla
  6960. ld b,a
  6961. inc hl
  6962. ld a,[hl]
  6963. rla
  6964. ld a,e
  6965. rra
  6966. ld [hl],a
  6967. ld a,b
  6968. rra
  6969. dec hl
  6970. ld [hl],a
  6971. pop hl
  6972. pop bc
  6973. pop af
  6974. pop af
  6975. pop af
  6976. push bc
  6977. ret
  6978. pop bc
  6979. ld de,$0000
  6980. push de
  6981. push de
  6982. push de
  6983. push bc
  6984. push hl
  6985. ld hl,$000d
  6986. add hl,sp
  6987. ld b,[hl]
  6988. dec hl
  6989. ld a,[hl]
  6990. add a
  6991. ld a,b
  6992. adc a
  6993. ld c,a
  6994. ld a,$00
  6995. ld b,a
  6996. rra
  6997. push af
  6998. jp z,$2d10
  6999. ld a,[hl]
  7000. or a,$80
  7001. ld [hl],a
  7002. ld a,c
  7003. dec c
  7004. inc a
  7005. jp nz,$2d10
  7006. ld bc,$407e
  7007. push de
  7008. push hl
  7009. pop de
  7010. pop hl
  7011. ld hl,$3f81
  7012. add hl,bc
  7013. push de
  7014. push hl
  7015. pop de
  7016. pop hl
  7017. ld a,[hl]
  7018. dec hl
  7019. ld b,[hl]
  7020. ld [hl],a
  7021. dec hl
  7022. ld a,[hl]
  7023. ld [hl],b
  7024. dec hl
  7025. ld [hl],a
  7026. pop af
  7027. ld hl,$0004
  7028. add hl,sp
  7029. ld c,$08
  7030. call $3106
  7031. pop hl
  7032. ret
  7033. pop bc
  7034. ld a,h
  7035. push hl
  7036. push hl
  7037. ld hl,$0000
  7038. ld de,$400e
  7039. jp $2d47
  7040. pop bc
  7041. pop hl
  7042. pop de
  7043. ld a,d
  7044. push de
  7045. push de
  7046. ld de,$401e
  7047. push hl
  7048. ld hl,$0000
  7049. add hl,sp
  7050. and a,$80
  7051. push af
  7052. call $35c1
  7053. pop af
  7054. ld hl,$0000
  7055. push hl
  7056. push hl
  7057. add hl,sp
  7058. push bc
  7059. ld c,$08
  7060. jp $3106
  7061. pop bc
  7062. ld de,$0000
  7063. jp $2d69
  7064. pop bc
  7065. pop hl
  7066. pop de
  7067. push de
  7068. push de
  7069. push hl
  7070. ld hl,$0000
  7071. push hl
  7072. push hl
  7073. add hl,sp
  7074. push bc
  7075. xor a
  7076. ld de,$401e
  7077. ld c,$08
  7078. jp $3106
  7079. ld bc,$0010
  7080. call $2dc3
  7081. pop bc
  7082. pop de
  7083. pop de
  7084. pop de
  7085. pop hl
  7086. pop de
  7087. push bc
  7088. jp nc,$2d90
  7089. ld hl,$0000
  7090. ret
  7091. and a,$80
  7092. ret z
  7093. jp $36fe
  7094. ld bc,$0020
  7095. call $2dc3
  7096. pop bc
  7097. pop de
  7098. pop de
  7099. pop de
  7100. pop hl
  7101. jp nc,$2dab
  7102. ld de,$0000
  7103. ld hl,$0000
  7104. xor a
  7105. push af
  7106. push de
  7107. push hl
  7108. ld hl,[sp+$06]
  7109. pop de
  7110. ld a,[hl]
  7111. ld [hl],e
  7112. ld e,a
  7113. inc hl
  7114. ld a,[hl]
  7115. ld [hl],d
  7116. ld h,a
  7117. ld l,e
  7118. pop de
  7119. pop af
  7120. push de
  7121. push bc
  7122. and a,$80
  7123. ret z
  7124. jp $35ce
  7125. ld hl,$0004
  7126. add hl,sp
  7127. call $31a4
  7128. push af
  7129. push hl
  7130. ld hl,$c001
  7131. add hl,de
  7132. pop de
  7133. bit 7,h
  7134. jp nz,$2dec
  7135. call $35f8
  7136. jp nc,$2dec
  7137. ld a,c
  7138. sub l
  7139. ld b,a
  7140. dec b
  7141. ld c,$08
  7142. push de
  7143. push hl
  7144. pop de
  7145. pop hl
  7146. call $31ea
  7147. pop af
  7148. and a
  7149. ret
  7150. pop af
  7151. scf
  7152. ret
  7153. ld hl,$000b
  7154. add hl,sp
  7155. ld a,[hl]
  7156. xor a,$80
  7157. jp nz,$2e09
  7158. push hl
  7159. ld c,$09
  7160. dec hl
  7161. or [hl]
  7162. dec c
  7163. jp nz,$2dfc
  7164. pop hl
  7165. or a
  7166. jp nz,$2e09
  7167. ld [hl],$00
  7168. push de
  7169. push hl
  7170. pop de
  7171. pop hl
  7172. ld hl,$0016
  7173. add hl,sp
  7174. push hl
  7175. dec hl
  7176. ld a,[hl]
  7177. xor a,$80
  7178. jp nz,$2e29
  7179. push hl
  7180. ld c,$09
  7181. dec hl
  7182. or [hl]
  7183. dec c
  7184. jp nz,$2e1c
  7185. pop hl
  7186. or a
  7187. jp nz,$2e29
  7188. ld [hl],$00
  7189. ld a,[de]
  7190. or [hl]
  7191. bit 7,a
  7192. jp nz,$2e34
  7193. push de
  7194. push hl
  7195. pop de
  7196. pop hl
  7197. ld c,$0a
  7198. ld a,[de]
  7199. cp [hl]
  7200. jp nz,$2e41
  7201. dec hl
  7202. dec de
  7203. dec c
  7204. jp nz,$2e36
  7205. pop hl
  7206. pop bc
  7207. ld sp,hl
  7208. push bc
  7209. ret
  7210. ld hl,$000b
  7211. add hl,sp
  7212. ld a,[hl]
  7213. or a
  7214. jp nz,$2e5c
  7215. push hl
  7216. ld c,$09
  7217. dec hl
  7218. or [hl]
  7219. dec c
  7220. jp nz,$2e52
  7221. pop hl
  7222. or a
  7223. ret z
  7224. ld a,[hl]
  7225. xor a,$80
  7226. ld [hl],a
  7227. ret
  7228. pop bc
  7229. ld de,$0000
  7230. ld a,$0c
  7231. push de
  7232. dec a
  7233. jp nz,$2e66
  7234. push bc
  7235. push hl
  7236. ld hl,$0026
  7237. add hl,sp
  7238. push hl
  7239. push de
  7240. push hl
  7241. pop de
  7242. pop hl
  7243. ld hl,$000e
  7244. add hl,sp
  7245. ld c,$08
  7246. ld a,[de]
  7247. inc de
  7248. ld [hl],a
  7249. inc hl
  7250. dec c
  7251. jp nz,$2e7c
  7252. pop hl
  7253. push hl
  7254. call $31a4
  7255. push de
  7256. ld c,a
  7257. ld hl,$0020
  7258. add hl,sp
  7259. call $31a4
  7260. pop hl
  7261. xor c
  7262. push af
  7263. push de
  7264. push hl
  7265. ld c,$ff
  7266. ld hl,$000c
  7267. add hl,sp
  7268. push de
  7269. push hl
  7270. pop de
  7271. pop hl
  7272. ld hl,$001c
  7273. add hl,sp
  7274. ld a,$48
  7275. push af
  7276. push bc
  7277. push hl
  7278. ld hl,$0033
  7279. add hl,sp
  7280. ld bc,$0109
  7281. call $31b4
  7282. pop hl
  7283. pop bc
  7284. ld a,c
  7285. ld c,$10
  7286. or a
  7287. jp z,$2ec4
  7288. call $3230
  7289. ccf
  7290. jp $2ec7
  7291. call $3245
  7292. sbc a
  7293. ld c,a
  7294. jp z,$2ed6
  7295. push hl
  7296. ld hl,$0031
  7297. add hl,sp
  7298. ld a,[hl]
  7299. or a,$01
  7300. ld [hl],a
  7301. pop hl
  7302. push bc
  7303. push de
  7304. push hl
  7305. pop de
  7306. pop hl
  7307. ld bc,$0110
  7308. call $31ea
  7309. push de
  7310. push hl
  7311. pop de
  7312. pop hl
  7313. pop bc
  7314. pop af
  7315. dec a
  7316. jp nz,$2ea7
  7317. pop hl
  7318. pop de
  7319. ld a,h
  7320. or l
  7321. jp z,$2f01
  7322. ld a,e
  7323. sub l
  7324. ld l,a
  7325. ld a,d
  7326. sbc h
  7327. ld h,a
  7328. ld de,$4001
  7329. call $3608
  7330. jp c,$2f07
  7331. ld hl,$4000
  7332. jp $2f14
  7333. ld de,$c001
  7334. call $3608
  7335. jp nc,$2f14
  7336. push de
  7337. push hl
  7338. pop de
  7339. pop hl
  7340. ld de,$3fff
  7341. add hl,de
  7342. push de
  7343. push hl
  7344. pop de
  7345. pop hl
  7346. pop af
  7347. pop hl
  7348. push hl
  7349. dec hl
  7350. ld c,$09
  7351. call $3106
  7352. pop hl
  7353. pop de
  7354. pop bc
  7355. ld sp,hl
  7356. push de
  7357. push hl
  7358. pop de
  7359. pop hl
  7360. push bc
  7361. ret
  7362. pop bc
  7363. ld de,$0000
  7364. ld a,$09
  7365. push de
  7366. dec a
  7367. jp nz,$2f35
  7368. push bc
  7369. push hl
  7370. ld hl,$0027
  7371. add hl,sp
  7372. push de
  7373. push hl
  7374. pop de
  7375. pop hl
  7376. ld hl,$0004
  7377. add hl,sp
  7378. ld b,$80
  7379. ld a,$40
  7380. push af
  7381. push bc
  7382. ld bc,$0110
  7383. call $31b4
  7384. pop bc
  7385. ld a,[de]
  7386. and b
  7387. jp z,$2f79
  7388. push bc
  7389. push de
  7390. push de
  7391. push hl
  7392. pop de
  7393. pop hl
  7394. ld hl,$001c
  7395. add hl,sp
  7396. push de
  7397. push hl
  7398. pop de
  7399. pop hl
  7400. ld bc,$0008
  7401. call $3245
  7402. pop de
  7403. jp nc,$2f78
  7404. push hl
  7405. add hl,bc
  7406. call $321e
  7407. pop hl
  7408. pop bc
  7409. ld a,b
  7410. rrca
  7411. ld b,a
  7412. jp nc,$2f80
  7413. dec de
  7414. pop af
  7415. dec a
  7416. jp nz,$2f4c
  7417. push de
  7418. push hl
  7419. pop de
  7420. pop hl
  7421. inc hl
  7422. push hl
  7423. ld bc,$0009
  7424. add hl,bc
  7425. push af
  7426. push de
  7427. push hl
  7428. ld hl,[sp+$06]
  7429. pop de
  7430. ld a,[hl]
  7431. ld [hl],e
  7432. ld e,a
  7433. inc hl
  7434. ld a,[hl]
  7435. ld [hl],d
  7436. ld h,a
  7437. ld l,e
  7438. pop de
  7439. pop af
  7440. push de
  7441. call $31a4
  7442. ld c,a
  7443. push de
  7444. ld hl,$001c
  7445. add hl,sp
  7446. call $31a4
  7447. pop hl
  7448. add hl,de
  7449. inc hl
  7450. xor c
  7451. push af
  7452. ld a,l
  7453. sub a,$ff
  7454. ld a,h
  7455. sbc a,$bf
  7456. jp c,$2fc0
  7457. ld hl,$bffe
  7458. jp $2fcc
  7459. ld a,l
  7460. sub a,$fe
  7461. ld a,h
  7462. sbc a,$bf
  7463. jp nc,$2fcc
  7464. ld hl,$3fff
  7465. ld de,$c001
  7466. add hl,de
  7467. push de
  7468. push hl
  7469. pop de
  7470. pop hl
  7471. pop af
  7472. pop hl
  7473. ld c,$10
  7474. call $3106
  7475. pop de
  7476. ld c,$0a
  7477. ld a,[hl]
  7478. dec hl
  7479. ld [de],a
  7480. dec de
  7481. dec c
  7482. jp nz,$2fde
  7483. inc de
  7484. push de
  7485. push hl
  7486. pop de
  7487. pop hl
  7488. pop de
  7489. pop bc
  7490. ld sp,hl
  7491. push de
  7492. push hl
  7493. pop de
  7494. pop hl
  7495. push bc
  7496. ret
  7497. ld hl,$0002
  7498. add hl,sp
  7499. push hl
  7500. ld bc,$0008
  7501. add hl,bc
  7502. ld c,[hl]
  7503. inc hl
  7504. ld a,[hl]
  7505. and a,$7f
  7506. ld b,a
  7507. or c
  7508. jp z,$302d
  7509. ld a,b
  7510. or a,$80
  7511. and c
  7512. inc a
  7513. jp z,$302d
  7514. push de
  7515. push hl
  7516. pop de
  7517. pop hl
  7518. add hl,bc
  7519. push de
  7520. push hl
  7521. pop de
  7522. pop hl
  7523. bit 7,d
  7524. jp z,$3026
  7525. ld de,$0000
  7526. jp c,$3026
  7527. ld de,$7fff
  7528. ld a,[hl]
  7529. and a,$80
  7530. or d
  7531. ld [hl],a
  7532. dec hl
  7533. ld [hl],e
  7534. pop hl
  7535. ret
  7536. push de
  7537. push hl
  7538. pop de
  7539. pop hl
  7540. ld hl,$0015
  7541. add hl,sp
  7542. ld a,[hl]
  7543. xor a,$80
  7544. ld [hl],a
  7545. push de
  7546. push hl
  7547. pop de
  7548. pop hl
  7549. pop bc
  7550. ld de,$0000
  7551. push de
  7552. push bc
  7553. push hl
  7554. ld hl,$0006
  7555. add hl,sp
  7556. call $31a4
  7557. ld c,a
  7558. push de
  7559. ld hl,$0012
  7560. add hl,sp
  7561. call $31a4
  7562. dec hl
  7563. ld [hl],$00
  7564. push de
  7565. push hl
  7566. pop de
  7567. pop hl
  7568. pop de
  7569. push af
  7570. xor c
  7571. push af
  7572. call $3608
  7573. jp z,$30a1
  7574. jp c,$3076
  7575. ld b,d
  7576. ld c,e
  7577. push de
  7578. push hl
  7579. pop de
  7580. pop hl
  7581. ld hl,$0009
  7582. jp $307b
  7583. ld b,h
  7584. ld c,l
  7585. ld hl,$0013
  7586. add hl,sp
  7587. push de
  7588. ld a,e
  7589. sub c
  7590. ld e,a
  7591. ld a,d
  7592. sbc b
  7593. ld d,a
  7594. push hl
  7595. ld hl,$0048
  7596. call $3608
  7597. pop hl
  7598. ld c,$09
  7599. jp c,$3097
  7600. ld b,e
  7601. call $31ea
  7602. jp $30a2
  7603. xor a
  7604. ld [hl],a
  7605. inc hl
  7606. dec c
  7607. jp nz,$3098
  7608. jp $30a2
  7609. push hl
  7610. ld hl,$000b
  7611. add hl,sp
  7612. push de
  7613. push hl
  7614. pop de
  7615. pop hl
  7616. ld hl,$0015
  7617. add hl,sp
  7618. pop bc
  7619. pop af
  7620. push bc
  7621. ld c,$09
  7622. bit 7,h
  7623. jp nz,$30c2
  7624. call $3245
  7625. pop de
  7626. call c,$30ec
  7627. jp $30db
  7628. call $3230
  7629. pop de
  7630. jp nc,$30db
  7631. push hl
  7632. ld b,c
  7633. and a
  7634. ld a,$00
  7635. sbc [hl]
  7636. ld [hl],a
  7637. inc hl
  7638. dec c
  7639. jp nz,$30cc
  7640. ld c,b
  7641. pop hl
  7642. pop af
  7643. xor a,$80
  7644. push af
  7645. pop af
  7646. call $3106
  7647. pop de
  7648. pop bc
  7649. ld hl,$000c
  7650. add hl,sp
  7651. ld sp,hl
  7652. push de
  7653. push hl
  7654. pop de
  7655. pop hl
  7656. push bc
  7657. ret
  7658. push hl
  7659. push de
  7660. ld b,$01
  7661. call $31ea
  7662. ld b,$00
  7663. add hl,bc
  7664. dec hl
  7665. ld a,[hl]
  7666. or a,$80
  7667. ld [hl],a
  7668. pop de
  7669. pop hl
  7670. inc de
  7671. ld a,d
  7672. and a,$80
  7673. ret z
  7674. ld de,$7fff
  7675. ret
  7676. push af
  7677. ld a,d
  7678. xor a,$80
  7679. and e
  7680. inc a
  7681. jp z,$318d
  7682. ld a,d
  7683. or e
  7684. jp z,$3198
  7685. push de
  7686. push hl
  7687. ld b,$00
  7688. add hl,bc
  7689. ld d,c
  7690. dec hl
  7691. ld a,[hl]
  7692. or a
  7693. jp nz,$312b
  7694. ld a,b
  7695. add a,$08
  7696. ld b,a
  7697. dec d
  7698. jp nz,$311a
  7699. jp $3196
  7700. dec b
  7701. inc b
  7702. add a
  7703. jp nc,$312c
  7704. pop hl
  7705. call $31b4
  7706. push af
  7707. push de
  7708. push hl
  7709. ld hl,[sp+$06]
  7710. pop de
  7711. ld a,[hl]
  7712. ld [hl],e
  7713. ld e,a
  7714. inc hl
  7715. ld a,[hl]
  7716. ld [hl],d
  7717. ld h,a
  7718. ld l,e
  7719. pop de
  7720. pop af
  7721. ld a,l
  7722. sub b
  7723. ld e,a
  7724. ld a,h
  7725. sbc a,$00
  7726. ld d,a
  7727. pop hl
  7728. bit 7,a
  7729. jp nz,$3198
  7730. ld a,c
  7731. sub a,$09
  7732. jp c,$318d
  7733. ld b,a
  7734. inc b
  7735. xor a
  7736. jp $3160
  7737. or [hl]
  7738. inc hl
  7739. dec b
  7740. jp nz,$315e
  7741. or a
  7742. jp z,$316a
  7743. ld a,$01
  7744. or [hl]
  7745. inc hl
  7746. ld bc,$0008
  7747. cp a,$81
  7748. jp nc,$317e
  7749. cp a,$80
  7750. jp nz,$318d
  7751. ld a,[hl]
  7752. rra
  7753. jp nc,$318d
  7754. call $321e
  7755. jp nz,$318d
  7756. add hl,bc
  7757. dec hl
  7758. ld [hl],$80
  7759. inc de
  7760. inc hl
  7761. jp $3190
  7762. ld b,$00
  7763. add hl,bc
  7764. ld [hl],e
  7765. inc hl
  7766. pop af
  7767. or d
  7768. ld [hl],a
  7769. ret
  7770. pop hl
  7771. pop de
  7772. pop af
  7773. xor a
  7774. ld [hl],a
  7775. inc hl
  7776. dec c
  7777. jp nz,$319a
  7778. ld [hl],a
  7779. inc hl
  7780. ld [hl],a
  7781. ret
  7782. push hl
  7783. ld de,$0008
  7784. add hl,de
  7785. ld e,[hl]
  7786. inc hl
  7787. ld a,[hl]
  7788. and a,$7f
  7789. ld d,a
  7790. ld a,[hl]
  7791. and a,$80
  7792. pop hl
  7793. ret
  7794. push hl
  7795. push de
  7796. push bc
  7797. ld e,b
  7798. ld b,$00
  7799. ld a,e
  7800. sub a,$08
  7801. jp c,$31d2
  7802. ld e,a
  7803. ld d,c
  7804. dec d
  7805. add hl,bc
  7806. dec hl
  7807. dec hl
  7808. ld a,[hl]
  7809. inc hl
  7810. ld [hl],a
  7811. dec hl
  7812. dec d
  7813. jp nz,$31c5
  7814. ld [hl],b
  7815. jp $31ba
  7816. inc e
  7817. jp $31e2
  7818. push hl
  7819. ld d,c
  7820. and a
  7821. ld a,[hl]
  7822. rla
  7823. ld [hl],a
  7824. inc hl
  7825. dec d
  7826. jp nz,$31d9
  7827. pop hl
  7828. dec e
  7829. jp nz,$31d6
  7830. pop bc
  7831. pop de
  7832. pop hl
  7833. ret
  7834. push hl
  7835. push de
  7836. push bc
  7837. ld e,b
  7838. ld b,$00
  7839. ld a,e
  7840. sub a,$08
  7841. jp c,$3208
  7842. ld e,a
  7843. push hl
  7844. ld d,c
  7845. dec d
  7846. inc hl
  7847. ld a,[hl]
  7848. dec hl
  7849. ld [hl],a
  7850. inc hl
  7851. dec d
  7852. jp nz,$31fa
  7853. ld [hl],b
  7854. pop hl
  7855. jp $31f0
  7856. inc e
  7857. jp $3216
  7858. ld d,c
  7859. add hl,bc
  7860. dec hl
  7861. ld a,[hl]
  7862. rra
  7863. ld [hl],a
  7864. dec d
  7865. jp nz,$320e
  7866. dec e
  7867. jp nz,$320c
  7868. pop bc
  7869. pop de
  7870. pop hl
  7871. ret
  7872. push hl
  7873. push bc
  7874. inc c
  7875. jp $3229
  7876. inc [hl]
  7877. jp nz,$322d
  7878. inc hl
  7879. dec c
  7880. jp nz,$3224
  7881. pop bc
  7882. pop hl
  7883. ret
  7884. push hl
  7885. push de
  7886. push bc
  7887. push de
  7888. push hl
  7889. pop de
  7890. pop hl
  7891. and a
  7892. ld a,[de]
  7893. sbc [hl]
  7894. ld [de],a
  7895. inc de
  7896. inc hl
  7897. dec c
  7898. jp nz,$3238
  7899. pop bc
  7900. pop de
  7901. pop hl
  7902. ret
  7903. push hl
  7904. push de
  7905. push bc
  7906. push de
  7907. push hl
  7908. pop de
  7909. pop hl
  7910. and a
  7911. ld a,[de]
  7912. adc [hl]
  7913. ld [de],a
  7914. inc de
  7915. inc hl
  7916. dec c
  7917. jp nz,$324d
  7918. pop bc
  7919. pop de
  7920. pop hl
  7921. ret
  7922. pop hl
  7923. push de
  7924. push hl
  7925. pop de
  7926. pop hl
  7927. ld hl,$fff6
  7928. add hl,sp
  7929. ld sp,hl
  7930. ld c,$0a
  7931. ld a,[de]
  7932. inc de
  7933. ld [hl],a
  7934. inc hl
  7935. dec c
  7936. jp nz,$3266
  7937. push de
  7938. push hl
  7939. pop de
  7940. pop hl
  7941. jp [hl]
  7942. pop bc
  7943. ld a,$05
  7944. pop de
  7945. ld [hl],e
  7946. inc hl
  7947. ld [hl],d
  7948. inc hl
  7949. dec a
  7950. jp nz,$3276
  7951. push bc
  7952. ld bc,$fff6
  7953. add hl,bc
  7954. ret
  7955. pop bc
  7956. ld a,$04
  7957. pop de
  7958. ld [hl],e
  7959. inc hl
  7960. ld [hl],d
  7961. inc hl
  7962. dec a
  7963. jp nz,$3288
  7964. push bc
  7965. ld bc,$fff8
  7966. add hl,bc
  7967. ret
  7968. ld bc,$0008
  7969. ld a,$04
  7970. jp $32a4
  7971. ld bc,$000a
  7972. ld a,$05
  7973. add hl,bc
  7974. pop bc
  7975. dec hl
  7976. ld d,[hl]
  7977. dec hl
  7978. ld e,[hl]
  7979. push de
  7980. dec a
  7981. jp nz,$32a6
  7982. push bc
  7983. ret
  7984. rst $38
  7985. rst $38
  7986. ld a,a
  7987. ld a,a
  7988. rst $38
  7989. rst $38
  7990. rst $38
  7991. rst $38
  7992. rst $38
  7993. rst $38
  7994. rst $28
  7995. ld a,a
  7996. rst $38
  7997. rst $38
  7998. rst $38
  7999. rst $38
  8000. rst $38
  8001. rst $38
  8002. rst $38
  8003. rst $38
  8004. cp a,$7f
  8005. nop
  8006. nop
  8007. nop
  8008. nop
  8009. nop
  8010. nop
  8011. nop
  8012. add b
  8013. ld bc,$c100
  8014. pop de
  8015. ld [hl],e
  8016. inc hl
  8017. ld [hl],d
  8018. inc hl
  8019. pop de
  8020. ld [hl],e
  8021. inc hl
  8022. ld [hl],d
  8023. dec hl
  8024. dec hl
  8025. dec hl
  8026. push bc
  8027. ret
  8028. pop bc
  8029. inc hl
  8030. inc hl
  8031. inc hl
  8032. ld d,[hl]
  8033. dec hl
  8034. ld e,[hl]
  8035. push de
  8036. dec hl
  8037. ld d,[hl]
  8038. dec hl
  8039. ld e,[hl]
  8040. push de
  8041. push bc
  8042. ret
  8043. ld hl,$0006
  8044. add hl,sp
  8045. push de
  8046. push hl
  8047. pop de
  8048. pop hl
  8049. ld hl,$0002
  8050. add hl,sp
  8051. ld a,[de]
  8052. xor [hl]
  8053. ld [de],a
  8054. inc de
  8055. inc hl
  8056. ld a,[de]
  8057. xor [hl]
  8058. ld [de],a
  8059. inc de
  8060. inc hl
  8061. ld a,[de]
  8062. xor [hl]
  8063. ld [de],a
  8064. inc de
  8065. inc hl
  8066. ld a,[de]
  8067. xor [hl]
  8068. ld [de],a
  8069. dec de
  8070. dec de
  8071. dec de
  8072. push de
  8073. push hl
  8074. pop de
  8075. pop hl
  8076. pop bc
  8077. pop af
  8078. pop af
  8079. push bc
  8080. ret
  8081. ld hl,$0006
  8082. add hl,sp
  8083. push de
  8084. push hl
  8085. pop de
  8086. pop hl
  8087. ld hl,$0002
  8088. add hl,sp
  8089. ld a,[de]
  8090. or [hl]
  8091. ld [de],a
  8092. inc de
  8093. inc hl
  8094. ld a,[de]
  8095. or [hl]
  8096. ld [de],a
  8097. inc de
  8098. inc hl
  8099. ld a,[de]
  8100. or [hl]
  8101. ld [de],a
  8102. inc de
  8103. inc hl
  8104. ld a,[de]
  8105. or [hl]
  8106. ld [de],a
  8107. dec de
  8108. dec de
  8109. dec de
  8110. push de
  8111. push hl
  8112. pop de
  8113. pop hl
  8114. pop bc
  8115. pop af
  8116. pop af
  8117. push bc
  8118. ret
  8119. ld hl,$0006
  8120. add hl,sp
  8121. push de
  8122. push hl
  8123. pop de
  8124. pop hl
  8125. ld hl,$0002
  8126. add hl,sp
  8127. ld a,[de]
  8128. and [hl]
  8129. ld [de],a
  8130. inc de
  8131. inc hl
  8132. ld a,[de]
  8133. and [hl]
  8134. ld [de],a
  8135. inc de
  8136. inc hl
  8137. ld a,[de]
  8138. and [hl]
  8139. ld [de],a
  8140. inc de
  8141. inc hl
  8142. ld a,[de]
  8143. and [hl]
  8144. ld [de],a
  8145. dec de
  8146. dec de
  8147. dec de
  8148. push de
  8149. push hl
  8150. pop de
  8151. pop hl
  8152. pop bc
  8153. pop af
  8154. pop af
  8155. push bc
  8156. ret
  8157. ld hl,$0002
  8158. add hl,sp
  8159. ld a,[hl]
  8160. cpl
  8161. ld [hl],a
  8162. inc hl
  8163. ld a,[hl]
  8164. cpl
  8165. ld [hl],a
  8166. inc hl
  8167. ld a,[hl]
  8168. cpl
  8169. ld [hl],a
  8170. inc hl
  8171. ld a,[hl]
  8172. cpl
  8173. ld [hl],a
  8174. ret
  8175. ld hl,$0002
  8176. add hl,sp
  8177. ld a,b
  8178. ld c,[hl]
  8179. inc hl
  8180. ld b,[hl]
  8181. inc hl
  8182. ld e,[hl]
  8183. inc hl
  8184. ld d,[hl]
  8185. push hl
  8186. jp $3396
  8187. ld d,e
  8188. ld e,b
  8189. ld b,c
  8190. ld c,$00
  8191. ld l,a
  8192. sub a,$08
  8193. jp nc,$3391
  8194. inc l
  8195. jp $33ac
  8196. ld a,c
  8197. add a
  8198. ld c,a
  8199. ld a,b
  8200. rla
  8201. ld b,a
  8202. ld a,e
  8203. rla
  8204. ld e,a
  8205. ld a,d
  8206. rla
  8207. ld d,a
  8208. dec l
  8209. jp nz,$33a0
  8210. pop hl
  8211. ld [hl],d
  8212. dec hl
  8213. ld [hl],e
  8214. dec hl
  8215. ld [hl],b
  8216. dec hl
  8217. ld [hl],c
  8218. ret
  8219. ld hl,$0002
  8220. add hl,sp
  8221. ld a,b
  8222. ld c,[hl]
  8223. inc hl
  8224. ld b,[hl]
  8225. inc hl
  8226. ld e,[hl]
  8227. inc hl
  8228. ld d,[hl]
  8229. push hl
  8230. jp $33ce
  8231. ld c,b
  8232. ld b,e
  8233. ld e,d
  8234. ld d,$00
  8235. ld l,a
  8236. sub a,$08
  8237. jp nc,$33c9
  8238. inc l
  8239. jp $33e5
  8240. and a
  8241. ld a,d
  8242. rra
  8243. ld d,a
  8244. ld a,e
  8245. rra
  8246. ld e,a
  8247. ld a,b
  8248. rra
  8249. ld b,a
  8250. ld a,c
  8251. rra
  8252. ld c,a
  8253. dec l
  8254. jp nz,$33d8
  8255. pop hl
  8256. ld [hl],d
  8257. dec hl
  8258. ld [hl],e
  8259. dec hl
  8260. ld [hl],b
  8261. dec hl
  8262. ld [hl],c
  8263. ret
  8264. ld hl,$0006
  8265. add hl,sp
  8266. push hl
  8267. inc hl
  8268. inc hl
  8269. inc hl
  8270. ld a,[hl]
  8271. pop hl
  8272. or a
  8273. push af
  8274. push hl
  8275. call $35c1
  8276. ld hl,$0009
  8277. add hl,sp
  8278. ld a,[hl]
  8279. dec hl
  8280. dec hl
  8281. dec hl
  8282. or a
  8283. call $35c1
  8284. pop hl
  8285. call $346d
  8286. push hl
  8287. ld [hl],e
  8288. inc hl
  8289. ld [hl],d
  8290. inc hl
  8291. ld [hl],c
  8292. inc hl
  8293. ld [hl],b
  8294. pop hl
  8295. pop af
  8296. call $35c1
  8297. pop bc
  8298. pop af
  8299. pop af
  8300. push bc
  8301. ret
  8302. ld hl,$0006
  8303. add hl,sp
  8304. push hl
  8305. inc hl
  8306. inc hl
  8307. inc hl
  8308. ld a,[hl]
  8309. pop hl
  8310. or a
  8311. push af
  8312. call $35c1
  8313. pop af
  8314. push de
  8315. push hl
  8316. pop de
  8317. pop hl
  8318. ld hl,$0005
  8319. add hl,sp
  8320. xor [hl]
  8321. push af
  8322. ld a,[hl]
  8323. dec hl
  8324. dec hl
  8325. dec hl
  8326. or a
  8327. call $35c1
  8328. push de
  8329. push hl
  8330. pop de
  8331. pop hl
  8332. call $346d
  8333. pop af
  8334. call $35c1
  8335. pop bc
  8336. pop af
  8337. pop af
  8338. push bc
  8339. ret
  8340. ld hl,$0006
  8341. add hl,sp
  8342. push af
  8343. call $346d
  8344. pop af
  8345. push hl
  8346. ld [hl],e
  8347. inc hl
  8348. ld [hl],d
  8349. inc hl
  8350. ld [hl],c
  8351. inc hl
  8352. ld [hl],b
  8353. pop hl
  8354. pop bc
  8355. pop af
  8356. pop af
  8357. push bc
  8358. ret
  8359. ld bc,$0000
  8360. ld d,b
  8361. ld e,b
  8362. ld a,$20
  8363. push af
  8364. push hl
  8365. ld a,[hl]
  8366. add a
  8367. ld [hl],a
  8368. inc hl
  8369. ld a,[hl]
  8370. rla
  8371. ld [hl],a
  8372. inc hl
  8373. ld a,[hl]
  8374. rla
  8375. ld [hl],a
  8376. inc hl
  8377. ld a,[hl]
  8378. rla
  8379. ld [hl],a
  8380. ld a,e
  8381. rla
  8382. ld e,a
  8383. ld a,d
  8384. rla
  8385. ld d,a
  8386. ld a,c
  8387. rla
  8388. ld c,a
  8389. ld a,b
  8390. rla
  8391. ld b,a
  8392. push de
  8393. push bc
  8394. ld hl,$000e
  8395. add hl,sp
  8396. ld a,e
  8397. sub [hl]
  8398. ld e,a
  8399. inc hl
  8400. ld a,d
  8401. sbc [hl]
  8402. ld d,a
  8403. inc hl
  8404. ld a,c
  8405. sbc [hl]
  8406. ld c,a
  8407. inc hl
  8408. ld a,b
  8409. sbc [hl]
  8410. ld b,a
  8411. jp nc,$34af
  8412. pop bc
  8413. pop de
  8414. pop hl
  8415. jp $34b3
  8416. pop af
  8417. pop af
  8418. pop hl
  8419. inc [hl]
  8420. pop af
  8421. dec a
  8422. jp nz,$3474
  8423. ret
  8424. ld hl,$0006
  8425. add hl,sp
  8426. push af
  8427. call $346d
  8428. pop af
  8429. pop bc
  8430. pop af
  8431. pop af
  8432. push bc
  8433. ret
  8434. ld hl,$0006
  8435. add hl,sp
  8436. ld bc,$0000
  8437. ld d,b
  8438. ld e,b
  8439. push hl
  8440. jp $3508
  8441. ld a,[hl]
  8442. rra
  8443. ld [hl],a
  8444. dec hl
  8445. ld a,[hl]
  8446. rra
  8447. ld [hl],a
  8448. dec hl
  8449. ld a,[hl]
  8450. rra
  8451. ld [hl],a
  8452. dec hl
  8453. ld a,[hl]
  8454. rra
  8455. ld [hl],a
  8456. jp nc,$34f7
  8457. pop hl
  8458. push hl
  8459. ld a,e
  8460. add [hl]
  8461. ld e,a
  8462. inc hl
  8463. ld a,d
  8464. adc [hl]
  8465. ld d,a
  8466. inc hl
  8467. ld a,c
  8468. adc [hl]
  8469. ld c,a
  8470. inc hl
  8471. ld a,b
  8472. adc [hl]
  8473. ld b,a
  8474. pop hl
  8475. push hl
  8476. ld a,[hl]
  8477. add a
  8478. ld [hl],a
  8479. inc hl
  8480. ld a,[hl]
  8481. rla
  8482. ld [hl],a
  8483. inc hl
  8484. ld a,[hl]
  8485. rla
  8486. ld [hl],a
  8487. inc hl
  8488. ld a,[hl]
  8489. rla
  8490. ld [hl],a
  8491. ld hl,$0004
  8492. add hl,sp
  8493. ld a,[hl]
  8494. inc hl
  8495. or [hl]
  8496. inc hl
  8497. or [hl]
  8498. inc hl
  8499. or [hl]
  8500. jp nz,$34d4
  8501. pop hl
  8502. push hl
  8503. ld [hl],e
  8504. inc hl
  8505. ld [hl],d
  8506. inc hl
  8507. ld [hl],c
  8508. inc hl
  8509. ld [hl],b
  8510. pop hl
  8511. pop bc
  8512. pop af
  8513. pop af
  8514. push bc
  8515. ret
  8516. ld hl,$0006
  8517. add hl,sp
  8518. push de
  8519. push hl
  8520. pop de
  8521. pop hl
  8522. ld hl,$0002
  8523. add hl,sp
  8524. ld a,[de]
  8525. sub [hl]
  8526. ld [de],a
  8527. inc de
  8528. inc hl
  8529. ld a,[de]
  8530. sbc [hl]
  8531. ld [de],a
  8532. inc de
  8533. inc hl
  8534. ld a,[de]
  8535. sbc [hl]
  8536. ld [de],a
  8537. inc de
  8538. inc hl
  8539. ld a,[de]
  8540. sbc [hl]
  8541. ld [de],a
  8542. dec de
  8543. dec de
  8544. dec de
  8545. push de
  8546. push hl
  8547. pop de
  8548. pop hl
  8549. pop bc
  8550. pop af
  8551. pop af
  8552. push bc
  8553. ret
  8554. ld hl,$0006
  8555. add hl,sp
  8556. push de
  8557. push hl
  8558. pop de
  8559. pop hl
  8560. ld hl,$0002
  8561. add hl,sp
  8562. ld a,[de]
  8563. add [hl]
  8564. ld [de],a
  8565. inc de
  8566. inc hl
  8567. ld a,[de]
  8568. adc [hl]
  8569. ld [de],a
  8570. inc de
  8571. inc hl
  8572. ld a,[de]
  8573. adc [hl]
  8574. ld [de],a
  8575. inc de
  8576. inc hl
  8577. ld a,[de]
  8578. adc [hl]
  8579. ld [de],a
  8580. dec de
  8581. dec de
  8582. dec de
  8583. push de
  8584. push hl
  8585. pop de
  8586. pop hl
  8587. pop bc
  8588. pop af
  8589. pop af
  8590. push bc
  8591. ret
  8592. ld hl,$0009
  8593. add hl,sp
  8594. push de
  8595. push hl
  8596. pop de
  8597. pop hl
  8598. ld hl,$0005
  8599. add hl,sp
  8600. ld a,[de]
  8601. xor [hl]
  8602. bit 7,a
  8603. jp z,$359f
  8604. push de
  8605. push hl
  8606. pop de
  8607. pop hl
  8608. jp $359f
  8609. ld hl,$0009
  8610. add hl,sp
  8611. push de
  8612. push hl
  8613. pop de
  8614. pop hl
  8615. ld hl,$0005
  8616. add hl,sp
  8617. call $35af
  8618. pop de
  8619. push af
  8620. ld hl,$000a
  8621. add hl,sp
  8622. pop af
  8623. ld sp,hl
  8624. push de
  8625. push hl
  8626. pop de
  8627. pop hl
  8628. jp [hl]
  8629. ld a,[de]
  8630. cp [hl]
  8631. ret nz
  8632. dec de
  8633. dec hl
  8634. ld a,[de]
  8635. cp [hl]
  8636. ret nz
  8637. dec de
  8638. dec hl
  8639. ld a,[de]
  8640. cp [hl]
  8641. ret nz
  8642. dec de
  8643. dec hl
  8644. ld a,[de]
  8645. cp [hl]
  8646. ret
  8647. push af
  8648. and a,$80
  8649. jp nz,$35c9
  8650. pop af
  8651. ret
  8652. pop af
  8653. call $35d2
  8654. ret
  8655. ld hl,$0002
  8656. add hl,sp
  8657. xor a
  8658. sub [hl]
  8659. ld [hl],a
  8660. inc hl
  8661. ld a,$00
  8662. sbc [hl]
  8663. ld [hl],a
  8664. inc hl
  8665. ld a,$00
  8666. sbc [hl]
  8667. ld [hl],a
  8668. inc hl
  8669. ld a,$00
  8670. sbc [hl]
  8671. ld [hl],a
  8672. dec hl
  8673. dec hl
  8674. dec hl
  8675. ret
  8676. push hl
  8677. jp $35f1
  8678. ld a,[hl]
  8679. inc hl
  8680. ld [de],a
  8681. inc de
  8682. dec bc
  8683. ld a,b
  8684. or c
  8685. jp nz,$35ec
  8686. pop hl
  8687. ret
  8688. ld a,h
  8689. xor b
  8690. bit 7,a
  8691. jp z,$3602
  8692. ld a,b
  8693. cp h
  8694. ret
  8695. ld a,h
  8696. cp b
  8697. ret nz
  8698. ld a,l
  8699. cp c
  8700. ret
  8701. ld a,h
  8702. xor d
  8703. bit 7,a
  8704. jp z,$3612
  8705. ld a,d
  8706. cp h
  8707. ret
  8708. ld a,h
  8709. cp d
  8710. ret nz
  8711. ld a,l
  8712. cp e
  8713. ret
  8714. inc b
  8715. dec b
  8716. ret z
  8717. and a
  8718. rra
  8719. jp $3619
  8720. push de
  8721. ld e,[hl]
  8722. inc hl
  8723. ld d,[hl]
  8724. push de
  8725. push hl
  8726. pop de
  8727. pop hl
  8728. call $3638
  8729. push de
  8730. push hl
  8731. pop de
  8732. pop hl
  8733. ld [hl],d
  8734. dec hl
  8735. ld [hl],e
  8736. push de
  8737. push hl
  8738. pop de
  8739. pop hl
  8740. pop de
  8741. ret
  8742. inc b
  8743. dec b
  8744. ret z
  8745. and a
  8746. ld a,h
  8747. rra
  8748. ld h,a
  8749. ld a,l
  8750. rra
  8751. ld l,a
  8752. jp $3639
  8753. inc b
  8754. dec b
  8755. ret z
  8756. add a
  8757. jp $3646
  8758. push de
  8759. ld e,[hl]
  8760. inc hl
  8761. ld d,[hl]
  8762. push de
  8763. push hl
  8764. pop de
  8765. pop hl
  8766. call $3664
  8767. push de
  8768. push hl
  8769. pop de
  8770. pop hl
  8771. ld [hl],d
  8772. dec hl
  8773. ld [hl],e
  8774. push de
  8775. push hl
  8776. pop de
  8777. pop hl
  8778. pop de
  8779. ret
  8780. inc b
  8781. dec b
  8782. ret z
  8783. add hl,hl
  8784. jp $3665
  8785. push hl
  8786. ld a,[hl]
  8787. inc hl
  8788. ld h,[hl]
  8789. ld l,a
  8790. call $36c6
  8791. pop hl
  8792. ld [hl],e
  8793. inc hl
  8794. ld [hl],d
  8795. ret
  8796. push hl
  8797. ld a,[hl]
  8798. inc hl
  8799. ld h,[hl]
  8800. ld l,a
  8801. call $3706
  8802. pop hl
  8803. ld [hl],e
  8804. inc hl
  8805. ld [hl],d
  8806. ret
  8807. push hl
  8808. ld a,[hl]
  8809. inc hl
  8810. ld h,[hl]
  8811. ld l,a
  8812. call $36c6
  8813. push de
  8814. push hl
  8815. pop de
  8816. pop hl
  8817. pop hl
  8818. ld [hl],e
  8819. inc hl
  8820. ld [hl],d
  8821. push de
  8822. push hl
  8823. pop de
  8824. pop hl
  8825. ret
  8826. push hl
  8827. ld a,[hl]
  8828. inc hl
  8829. ld h,[hl]
  8830. ld l,a
  8831. call $3706
  8832. push de
  8833. push hl
  8834. pop de
  8835. pop hl
  8836. pop hl
  8837. ld [hl],e
  8838. inc hl
  8839. ld [hl],d
  8840. push de
  8841. push hl
  8842. pop de
  8843. pop hl
  8844. ret
  8845. push hl
  8846. ld l,a
  8847. ld h,$00
  8848. ld c,$08
  8849. add hl,hl
  8850. ld a,h
  8851. cp b
  8852. jp c,$36be
  8853. sub b
  8854. inc l
  8855. ld h,a
  8856. dec c
  8857. jp nz,$36b5
  8858. ld a,l
  8859. ld b,h
  8860. pop hl
  8861. ret
  8862. ld a,h
  8863. or a
  8864. push af
  8865. xor d
  8866. push af
  8867. call $36fa
  8868. push de
  8869. push hl
  8870. pop de
  8871. pop hl
  8872. call $36fa
  8873. push de
  8874. push hl
  8875. pop de
  8876. pop hl
  8877. call $3706
  8878. pop af
  8879. call $36ed
  8880. pop af
  8881. push de
  8882. push hl
  8883. pop de
  8884. pop hl
  8885. call $36ed
  8886. push de
  8887. push hl
  8888. pop de
  8889. pop hl
  8890. ret
  8891. push af
  8892. and a,$80
  8893. jp nz,$36f5
  8894. pop af
  8895. ret
  8896. pop af
  8897. call $36fe
  8898. ret
  8899. ld a,h
  8900. and a,$80
  8901. ret z
  8902. dec hl
  8903. ld a,l
  8904. cpl
  8905. ld l,a
  8906. ld a,h
  8907. cpl
  8908. ld h,a
  8909. ret
  8910. ld b,d
  8911. ld c,e
  8912. push de
  8913. push hl
  8914. pop de
  8915. pop hl
  8916. ld hl,$0000
  8917. ld a,$10
  8918. push af
  8919. add hl,hl
  8920. xor a
  8921. push de
  8922. push hl
  8923. pop de
  8924. pop hl
  8925. add hl,hl
  8926. push de
  8927. push hl
  8928. pop de
  8929. pop hl
  8930. adc l
  8931. sub c
  8932. ld l,a
  8933. ld a,h
  8934. sbc b
  8935. ld h,a
  8936. inc e
  8937. jp nc,$3729
  8938. add hl,bc
  8939. dec e
  8940. pop af
  8941. dec a
  8942. jp nz,$3711
  8943. push de
  8944. push hl
  8945. pop de
  8946. pop hl
  8947. ret
  8948. push hl
  8949. ld h,a
  8950. xor a
  8951. ld c,$08
  8952. add a
  8953. add hl,hl
  8954. jp nc,$373e
  8955. add b
  8956. dec c
  8957. jp nz,$3738
  8958. pop hl
  8959. ret
  8960. push hl
  8961. ld a,[hl]
  8962. inc hl
  8963. ld h,[hl]
  8964. ld l,a
  8965. call $3759
  8966. pop de
  8967. push de
  8968. push hl
  8969. pop de
  8970. pop hl
  8971. ld [hl],e
  8972. inc hl
  8973. ld [hl],d
  8974. push de
  8975. push hl
  8976. pop de
  8977. pop hl
  8978. ret
  8979. ld b,h
  8980. ld c,l
  8981. ld hl,$0000
  8982. ld a,$10
  8983. add hl,hl
  8984. push de
  8985. push hl
  8986. pop de
  8987. pop hl
  8988. add hl,hl
  8989. push de
  8990. push hl
  8991. pop de
  8992. pop hl
  8993. jp nc,$376e
  8994. add hl,bc
  8995. dec a
  8996. jp nz,$3760
  8997. ret
  8998. ld de,$000a
  8999. jp $37c7
  9000. ld de,$0009
  9001. jp $37c7
  9002. ld de,$0008
  9003. jp $37c7
  9004. ld de,$0007
  9005. jp $37c7
  9006. ld de,$0006
  9007. jp $37c7
  9008. ld de,$0005
  9009. jp $37c7
  9010. ld de,$0004
  9011. jp $37c7
  9012. ld de,$0003
  9013. jp $37c7
  9014. push af
  9015. push de
  9016. push hl
  9017. ld hl,[sp+$06]
  9018. pop de
  9019. ld a,[hl]
  9020. ld [hl],e
  9021. ld e,a
  9022. inc hl
  9023. ld a,[hl]
  9024. ld [hl],d
  9025. ld h,a
  9026. ld l,e
  9027. pop de
  9028. pop af
  9029. ld e,[hl]
  9030. inc hl
  9031. ld d,[hl]
  9032. inc hl
  9033. push af
  9034. push de
  9035. push hl
  9036. ld hl,[sp+$06]
  9037. pop de
  9038. ld a,[hl]
  9039. ld [hl],e
  9040. ld e,a
  9041. inc hl
  9042. ld a,[hl]
  9043. ld [hl],d
  9044. ld h,a
  9045. ld l,e
  9046. pop de
  9047. pop af
  9048. push de
  9049. push hl
  9050. pop de
  9051. pop hl
  9052. add hl,sp
  9053. ld [hl],e
  9054. inc hl
  9055. ld [hl],d
  9056. push de
  9057. push hl
  9058. pop de
  9059. pop hl
  9060. ret
  9061. push af
  9062. push de
  9063. push hl
  9064. ld hl,[sp+$06]
  9065. pop de
  9066. ld a,[hl]
  9067. ld [hl],e
  9068. ld e,a
  9069. inc hl
  9070. ld a,[hl]
  9071. ld [hl],d
  9072. ld h,a
  9073. ld l,e
  9074. pop de
  9075. pop af
  9076. ld e,[hl]
  9077. inc hl
  9078. ld d,$00
  9079. push af
  9080. push de
  9081. push hl
  9082. ld hl,[sp+$06]
  9083. pop de
  9084. ld a,[hl]
  9085. ld [hl],e
  9086. ld e,a
  9087. inc hl
  9088. ld a,[hl]
  9089. ld [hl],d
  9090. ld h,a
  9091. ld l,e
  9092. pop de
  9093. pop af
  9094. push de
  9095. push hl
  9096. pop de
  9097. pop hl
  9098. add hl,sp
  9099. ld [hl],e
  9100. inc hl
  9101. ld [hl],d
  9102. push de
  9103. push hl
  9104. pop de
  9105. pop hl
  9106. ret
  9107. ld hl,$000a
  9108. jp $383f
  9109. ld hl,$0009
  9110. jp $383f
  9111. ld hl,$0008
  9112. jp $383f
  9113. ld hl,$0007
  9114. jp $383f
  9115. ld hl,$0006
  9116. jp $383f
  9117. ld hl,$0005
  9118. jp $383f
  9119. ld hl,$0004
  9120. jp $383f
  9121. ld hl,$0003
  9122. jp $383f
  9123. pop hl
  9124. ld e,[hl]
  9125. inc hl
  9126. ld d,[hl]
  9127. inc hl
  9128. push hl
  9129. push de
  9130. push hl
  9131. pop de
  9132. pop hl
  9133. add hl,sp
  9134. ld e,[hl]
  9135. inc hl
  9136. ld d,[hl]
  9137. push de
  9138. push hl
  9139. pop de
  9140. pop hl
  9141. ret
  9142. pop hl
  9143. ld e,[hl]
  9144. inc hl
  9145. push hl
  9146. ld l,e
  9147. ld h,$00
  9148. add hl,sp
  9149. ld e,[hl]
  9150. inc hl
  9151. ld h,[hl]
  9152. ld l,e
  9153. ret
  9154. push af
  9155. push bc
  9156. push de
  9157. push hl
  9158. ld hl,[sp+$08]
  9159. ldi a,[hl]
  9160. ld h,[hl]
  9161. ld l,a
  9162. ld e,[hl]
  9163. inc hl
  9164. ld d,[hl]
  9165. inc hl
  9166. ld c,l
  9167. ld b,h
  9168. ld hl,[sp+$08]
  9169. ld [hl],c
  9170. inc hl
  9171. ld [hl],b
  9172. ld l,e
  9173. ld h,d
  9174. pop de
  9175. ld [hl],e
  9176. inc hl
  9177. ld [hl],d
  9178. ld l,e
  9179. ld h,d
  9180. pop de
  9181. pop bc
  9182. pop af
  9183. ret
  9184. push af
  9185. push bc
  9186. push de
  9187. ld hl,[sp+$06]
  9188. ldi a,[hl]
  9189. ld h,[hl]
  9190. ld l,a
  9191. ld e,[hl]
  9192. inc hl
  9193. ld d,[hl]
  9194. inc hl
  9195. ld c,l
  9196. ld b,h
  9197. ld hl,[sp+$06]
  9198. ld [hl],c
  9199. inc hl
  9200. ld [hl],b
  9201. ld l,e
  9202. ld h,d
  9203. ldi a,[hl]
  9204. ld h,[hl]
  9205. ld l,a
  9206. pop de
  9207. pop bc
  9208. pop af
  9209. ret
  9210. ret
  9211. nop
  9212. ld bc,$0302
  9213. inc b
  9214. dec b
  9215. ld b,$07
  9216. ld [$0a09],sp
  9217. dec bc
  9218. inc c
  9219. dec c
  9220. ld c,$0f
  9221. <corrupted stop>
  9222. ld [de],a
  9223. inc de
  9224. inc d
  9225. dec d
  9226. ld d,$17
  9227. jr $38c5
  9228. ld a,[de]
  9229. dec de
  9230. inc e
  9231. dec e
  9232. ld e,$1f
  9233. jr nz,$38d5
  9234. ldi [hl],a
  9235. inc hl
  9236. inc h
  9237. dec h
  9238. ld h,$27
  9239. jr z,$38e5
  9240. ldi a,[hl]
  9241. dec hl
  9242. inc l
  9243. dec l
  9244. ld l,$2f
  9245. nop
  9246. ld bc,$0302
  9247. inc b
  9248. dec b
  9249. ld b,$07
  9250. ld [$3a09],sp
  9251. dec sp
  9252. inc a
  9253. dec a
  9254. ld a,$3f
  9255. ld b,b
  9256. ld b,c
  9257. ld b,d
  9258. ld b,e
  9259. ld b,h
  9260. ld b,l
  9261. ld b,[hl]
  9262. ld b,a
  9263. ld c,b
  9264. ld c,c
  9265. ld c,d
  9266. ld c,e
  9267. ld c,h
  9268. ld c,l
  9269. ld c,[hl]
  9270. ld c,a
  9271. ld d,b
  9272. ld d,c
  9273. ld d,d
  9274. ld d,e
  9275. ld d,h
  9276. ld d,l
  9277. ld d,[hl]
  9278. ld d,a
  9279. ld e,b
  9280. ld e,c
  9281. ld e,d
  9282. ld e,e
  9283. ld e,h
  9284. ld e,l
  9285. ld e,[hl]
  9286. ld e,a
  9287. ld h,b
  9288. ld h,c
  9289. ld h,d
  9290. ld h,e
  9291. ld h,h
  9292. ld h,l
  9293. ld h,[hl]
  9294. ld h,a
  9295. ld l,b
  9296. ld l,c
  9297. ld l,d
  9298. ld l,e
  9299. ld l,h
  9300. ld l,l
  9301. ld l,[hl]
  9302. ld l,a
  9303. ld [hl],b
  9304. ld [hl],c
  9305. ld [hl],d
  9306. ld [hl],e
  9307. ld [hl],h
  9308. ld [hl],l
  9309. halt
  9310. ld [hl],a
  9311. ld a,b
  9312. ld a,c
  9313. ld a,d
  9314. ld a,e
  9315. ld a,h
  9316. ld a,l
  9317. ld a,[hl]
  9318. ld a,a
  9319. add b
  9320. add c
  9321. add d
  9322. add e
  9323. add h
  9324. add l
  9325. add [hl]
  9326. add a
  9327. adc b
  9328. adc c
  9329. adc d
  9330. adc e
  9331. adc h
  9332. adc l
  9333. adc [hl]
  9334. adc a
  9335. sub b
  9336. sub c
  9337. sub d
  9338. sub e
  9339. sub h
  9340. sub l
  9341. sub [hl]
  9342. sub a
  9343. sbc b
  9344. sbc c
  9345. sbc d
  9346. sbc e
  9347. sbc h
  9348. sbc l
  9349. sbc [hl]
  9350. sbc a
  9351. and b
  9352. and c
  9353. and d
  9354. and e
  9355. and h
  9356. and l
  9357. and [hl]
  9358. and a
  9359. xor b
  9360. xor c
  9361. xor d
  9362. xor e
  9363. xor h
  9364. xor l
  9365. xor [hl]
  9366. xor a
  9367. or b
  9368. or c
  9369. or d
  9370. or e
  9371. or h
  9372. or l
  9373. or [hl]
  9374. or a
  9375. cp b
  9376. cp c
  9377. cp d
  9378. cp e
  9379. cp h
  9380. cp l
  9381. cp [hl]
  9382. cp a
  9383. ret nz
  9384. pop bc
  9385. jp nz,$c4c3
  9386. push bc
  9387. add a,$c7
  9388. ret z
  9389. ret
  9390. jp z,$cccb
  9391. call $cfce
  9392. ret nc
  9393. pop de
  9394. jp nc,$d4d3
  9395. push de
  9396. sub a,$d7
  9397. ret c
  9398. reti
  9399. jp c,$dcdb
  9400. db $dd
  9401. sbc a,$df
  9402. ldh [$ffe1],a
  9403. ld [$ff00+c],a
  9404. db $e3
  9405. db $e4
  9406. push hl
  9407. and a,$e7
  9408. add sp,$e9
  9409. ld [$eceb],a
  9410. db $ed
  9411. xor a,$ef
  9412. ldh a,[$fff1]
  9413. ld a,[$ff00+c]
  9414. di
  9415. db $f4
  9416. push af
  9417. or a,$f7
  9418. ld hl,[sp+$f9]
  9419. ld a,[$fcfb]
  9420. db $fd
  9421. cp a,$ff
  9422. push hl
  9423. pop hl
  9424. push hl
  9425. push hl
  9426. ld hl,[sp+$06]
  9427. call $32e0
  9428. ld hl,$0000
  9429. push hl
  9430. ld hl,$0000
  9431. push hl
  9432. call $3579
  9433. jp nc,$39bd
  9434. ld a,$01
  9435. push af
  9436. ld hl,[sp+$08]
  9437. call $32e0
  9438. call $35ce
  9439. ld hl,[sp+$0c]
  9440. call $32d1
  9441. pop af
  9442. jp $39be
  9443. xor a
  9444. push af
  9445. xor a
  9446. ld hl,[sp+$08]
  9447. call $32e0
  9448. ld hl,$0000
  9449. push hl
  9450. ld hl,$000a
  9451. push hl
  9452. call $33f2
  9453. pop hl
  9454. pop af
  9455. ld a,l
  9456. add a,$30
  9457. call $381d
  9458. ld [hl],a
  9459. inc hl
  9460. call $378b
  9461. ld hl,[sp+$08]
  9462. call $32e0
  9463. ld hl,$0000
  9464. push hl
  9465. ld hl,$000a
  9466. push hl
  9467. call $3424
  9468. ld hl,[sp+$0c]
  9469. call $32d1
  9470. ld hl,[sp+$08]
  9471. call $32e0
  9472. ld hl,$0000
  9473. push hl
  9474. ld hl,$0000
  9475. push hl
  9476. call $3593
  9477. jp nz,$39c0
  9478. pop af
  9479. or a
  9480. jp z,$3a13
  9481. call $3829
  9482. ld [hl],$2d
  9483. inc hl
  9484. call $3797
  9485. call $3829
  9486. ld [hl],$00
  9487. pop hl
  9488. push hl
  9489. call $3a36
  9490. pop hl
  9491. pop bc
  9492. ret
  9493. ld bc,$0000
  9494. inc h
  9495. dec h
  9496. bit 7,h
  9497. jr z,$3a2a
  9498. dec bc
  9499. push bc
  9500. push hl
  9501. push de
  9502. push hl
  9503. pop de
  9504. pop hl
  9505. call $3992
  9506. pop bc
  9507. pop bc
  9508. ret
  9509. push hl
  9510. push bc
  9511. push bc
  9512. ld hl,$0000
  9513. pop de
  9514. push hl
  9515. call $381d
  9516. call $3cf2
  9517. dec hl
  9518. ld c,l
  9519. ld b,h
  9520. pop hl
  9521. push hl
  9522. ld e,c
  9523. ld d,b
  9524. call $3608
  9525. jp nc,$3a7f
  9526. pop hl
  9527. push hl
  9528. push hl
  9529. call $3811
  9530. pop de
  9531. add hl,de
  9532. ld l,[hl]
  9533. ld h,$00
  9534. call $3797
  9535. call $381d
  9536. add hl,bc
  9537. ld a,[hl]
  9538. pop hl
  9539. push hl
  9540. push hl
  9541. call $3811
  9542. pop de
  9543. add hl,de
  9544. ld [hl],a
  9545. call $3829
  9546. ld a,l
  9547. call $381d
  9548. add hl,bc
  9549. ld [hl],a
  9550. pop hl
  9551. push hl
  9552. inc hl
  9553. pop de
  9554. push hl
  9555. dec bc
  9556. jp $3a47
  9557. pop bc
  9558. pop bc
  9559. pop bc
  9560. ret
  9561. ld [$c252],a
  9562. ld a,e
  9563. ld [$c253],a
  9564. ld hl,$c253
  9565. ld l,[hl]
  9566. ld h,$00
  9567. add hl,hl
  9568. add hl,hl
  9569. ld e,l
  9570. ld d,h
  9571. add hl,hl
  9572. add hl,hl
  9573. add hl,de
  9574. ld de,$c4a0
  9575. add hl,de
  9576. ld a,[$c252]
  9577. ld e,a
  9578. ld d,$00
  9579. add hl,de
  9580. call $3855
  9581. ld h,c
  9582. jp nz,$3ec9
  9583. adc a
  9584. call $3aae
  9585. ret
  9586. push af
  9587. call $280c
  9588. pop af
  9589. ld e,a
  9590. ld hl,$c4a0
  9591. ld bc,$0168
  9592. call $0487
  9593. ld a,[$c2fb]
  9594. cp a,$11
  9595. jp nz,$3ad5
  9596. ld bc,$0168
  9597. ld e,$00
  9598. ld hl,$c608
  9599. call $0487
  9600. ld a,$02
  9601. ld [$c39f],a
  9602. ld l,$12
  9603. push hl
  9604. ld c,$14
  9605. ld e,$00
  9606. xor a
  9607. call $3c95
  9608. pop bc
  9609. xor a
  9610. ld [$c252],a
  9611. xor a
  9612. ld [$c253],a
  9613. ret
  9614. ld a,$8e
  9615. call $3aae
  9616. ret
  9617. push af
  9618. push de
  9619. push bc
  9620. push bc
  9621. ld hl,[sp+$01]
  9622. ld a,[$c2cd]
  9623. or a
  9624. jp nz,$3b01
  9625. xor a
  9626. jp $3b03
  9627. ld a,$01
  9628. ld [hl],a
  9629. ld hl,[sp+$00]
  9630. ld [hl],$02
  9631. ld hl,$c21a
  9632. ld [hl],$01
  9633. inc hl
  9634. ld [hl],$a3
  9635. inc hl
  9636. ld [hl],$62
  9637. ld hl,[sp+$04]
  9638. ld c,[hl]
  9639. ld hl,[sp+$07]
  9640. ld h,[hl]
  9641. ld b,h
  9642. ld hl,[sp+$0a]
  9643. ld e,[hl]
  9644. ld d,$00
  9645. ld hl,[sp+$04]
  9646. ld l,[hl]
  9647. ld h,$00
  9648. add hl,de
  9649. dec hl
  9650. push hl
  9651. ld hl,[sp+$04]
  9652. ld e,[hl]
  9653. ld d,$00
  9654. dec de
  9655. ld hl,[sp+$09]
  9656. ld l,[hl]
  9657. ld h,$00
  9658. add hl,de
  9659. ld h,l
  9660. ld l,$00
  9661. pop de
  9662. add hl,de
  9663. push de
  9664. push hl
  9665. pop de
  9666. pop hl
  9667. ld hl,[sp+$01]
  9668. ld a,[hl]
  9669. ld hl,[sp+$00]
  9670. ld l,[hl]
  9671. ld h,a
  9672. call $03f8
  9673. call $14d4
  9674. ld a,[$c2fb]
  9675. cp a,$11
  9676. jp nz,$3bb4
  9677. ld a,[$c39f]
  9678. or a
  9679. jp z,$3bb4
  9680. ldh a,[$ff4f]
  9681. or a,$01
  9682. ldh [$ff4f],a
  9683. ld hl,[sp+$04]
  9684. ld a,[hl]
  9685. add a,$12
  9686. ld hl,[sp+$04]
  9687. ld [hl],a
  9688. ld hl,$c21a
  9689. ld [hl],$01
  9690. inc hl
  9691. ld [hl],$a3
  9692. inc hl
  9693. ld [hl],$62
  9694. ld hl,[sp+$04]
  9695. ld c,[hl]
  9696. ld hl,[sp+$07]
  9697. ld h,[hl]
  9698. ld b,h
  9699. ld hl,[sp+$0a]
  9700. ld e,[hl]
  9701. ld d,$00
  9702. ld hl,[sp+$04]
  9703. ld l,[hl]
  9704. ld h,$00
  9705. add hl,de
  9706. dec hl
  9707. push hl
  9708. ld hl,[sp+$04]
  9709. ld e,[hl]
  9710. ld d,$00
  9711. dec de
  9712. ld hl,[sp+$09]
  9713. ld l,[hl]
  9714. ld h,$00
  9715. add hl,de
  9716. ld h,l
  9717. ld l,$00
  9718. pop de
  9719. add hl,de
  9720. push de
  9721. push hl
  9722. pop de
  9723. pop hl
  9724. ld hl,[sp+$01]
  9725. ld a,[hl]
  9726. ld hl,[sp+$00]
  9727. ld l,[hl]
  9728. ld h,a
  9729. call $03f8
  9730. call $14d4
  9731. ldh a,[$ff4f]
  9732. and a,$fe
  9733. ldh [$ff4f],a
  9734. ld a,[$c39f]
  9735. dec a
  9736. ld [$c39f],a
  9737. pop bc
  9738. pop bc
  9739. pop bc
  9740. pop bc
  9741. ret
  9742. push af
  9743. push de
  9744. push bc
  9745. push bc
  9746. ld hl,[sp+$01]
  9747. ld [hl],$02
  9748. ld hl,[sp+$00]
  9749. ld a,[$c2cd]
  9750. or a
  9751. jp nz,$3bcf
  9752. ld a,$01
  9753. jp $3bd0
  9754. xor a
  9755. ld [hl],a
  9756. call $14d4
  9757. ld hl,$c21a
  9758. ld [hl],$01
  9759. inc hl
  9760. ld [hl],$a3
  9761. inc hl
  9762. ld [hl],$62
  9763. ld hl,[sp+$04]
  9764. ld c,[hl]
  9765. ld hl,[sp+$07]
  9766. ld h,[hl]
  9767. ld b,h
  9768. ld hl,[sp+$0a]
  9769. ld e,[hl]
  9770. ld d,$00
  9771. ld hl,[sp+$04]
  9772. ld l,[hl]
  9773. ld h,$00
  9774. add hl,de
  9775. dec hl
  9776. push hl
  9777. ld hl,[sp+$04]
  9778. ld e,[hl]
  9779. ld d,$00
  9780. dec de
  9781. ld hl,[sp+$09]
  9782. ld l,[hl]
  9783. ld h,$00
  9784. add hl,de
  9785. ld h,l
  9786. ld l,$00
  9787. pop de
  9788. add hl,de
  9789. push de
  9790. push hl
  9791. pop de
  9792. pop hl
  9793. ld hl,[sp+$01]
  9794. ld a,[hl]
  9795. ld hl,[sp+$00]
  9796. ld l,[hl]
  9797. ld h,a
  9798. call $03f8
  9799. call $14d4
  9800. ld a,[$c2fb]
  9801. cp a,$11
  9802. jp nz,$3c80
  9803. ld a,[$c39f]
  9804. or a
  9805. jp z,$3c80
  9806. ldh a,[$ff4f]
  9807. or a,$01
  9808. ldh [$ff4f],a
  9809. ld hl,[sp+$04]
  9810. ld a,[hl]
  9811. add a,$12
  9812. ld hl,[sp+$04]
  9813. ld [hl],a
  9814. ld hl,$c21a
  9815. ld [hl],$01
  9816. inc hl
  9817. ld [hl],$a3
  9818. inc hl
  9819. ld [hl],$62
  9820. ld hl,[sp+$04]
  9821. ld c,[hl]
  9822. ld hl,[sp+$07]
  9823. ld h,[hl]
  9824. ld b,h
  9825. ld hl,[sp+$0a]
  9826. ld e,[hl]
  9827. ld d,$00
  9828. ld hl,[sp+$04]
  9829. ld l,[hl]
  9830. ld h,$00
  9831. add hl,de
  9832. dec hl
  9833. push hl
  9834. ld hl,[sp+$04]
  9835. ld e,[hl]
  9836. ld d,$00
  9837. dec de
  9838. ld hl,[sp+$09]
  9839. ld l,[hl]
  9840. ld h,$00
  9841. add hl,de
  9842. ld h,l
  9843. ld l,$00
  9844. pop de
  9845. add hl,de
  9846. push de
  9847. push hl
  9848. pop de
  9849. pop hl
  9850. ld hl,[sp+$01]
  9851. ld a,[hl]
  9852. ld hl,[sp+$00]
  9853. ld l,[hl]
  9854. ld h,a
  9855. call $03f8
  9856. call $14d4
  9857. ldh a,[$ff4f]
  9858. and a,$fe
  9859. ldh [$ff4f],a
  9860. ld a,[$c39f]
  9861. dec a
  9862. ld [$c39f],a
  9863. ld a,[$c2cd]
  9864. or a
  9865. jp nz,$3c8c
  9866. ld a,$01
  9867. jp $3c8d
  9868. xor a
  9869. call $3cac
  9870. pop bc
  9871. pop bc
  9872. pop bc
  9873. pop bc
  9874. ret
  9875. push bc
  9876. push de
  9877. push af
  9878. ld hl,[sp+$08]
  9879. ld l,[hl]
  9880. push hl
  9881. call $3bb9
  9882. pop bc
  9883. pop af
  9884. pop de
  9885. pop bc
  9886. ld hl,[sp+$02]
  9887. ld l,[hl]
  9888. push hl
  9889. call $3bb9
  9890. pop bc
  9891. ret
  9892. push af
  9893. ld a,[$c203]
  9894. ld hl,$c204
  9895. cp [hl]
  9896. jp nz,$3cad
  9897. pop af
  9898. push af
  9899. or a
  9900. jp nz,$3cc8
  9901. ld a,[$c211]
  9902. and a,$f7
  9903. ld [$c211],a
  9904. jp $3cd0
  9905. ld a,[$c211]
  9906. or a,$08
  9907. ld [$c211],a
  9908. ld a,[$c211]
  9909. or a,$03
  9910. ld [$c211],a
  9911. ld a,[$c203]
  9912. or a,$06
  9913. ld [$c203],a
  9914. ld a,[$c203]
  9915. ld hl,$c204
  9916. cp [hl]
  9917. jp z,$3ced
  9918. jp $3ce0
  9919. pop af
  9920. ld [$c2cd],a
  9921. ret
  9922. push hl
  9923. ld bc,$0000
  9924. pop hl
  9925. push hl
  9926. add hl,bc
  9927. ld a,[hl]
  9928. or a
  9929. jp z,$3d02
  9930. inc bc
  9931. jp $3cf6
  9932. ld l,c
  9933. ld h,b
  9934. pop bc
  9935. ret
  9936. cp a,$30
  9937. jp c,$3d13
  9938. cp a,$3a
  9939. jp nc,$3d13
  9940. ld a,$01
  9941. ret
  9942. xor a
  9943. ret
  9944. ld a,[$c205]
  9945. ret
  9946. ld a,[$c207]
  9947. ld l,a
  9948. xor a
  9949. ld [$c207],a
  9950. ld a,l
  9951. ret
  9952. rst $38
  9953. rst $38
  9954. rst $38
  9955. rst $38
  9956. rst $38
  9957. rst $38
  9958. rst $38
  9959. rst $38
  9960. rst $38
  9961. rst $38
  9962. rst $38
  9963. rst $38
  9964. rst $38
  9965. rst $38
  9966. rst $38
  9967. rst $38
  9968. rst $38
  9969. rst $38
  9970. rst $38
  9971. rst $38
  9972. rst $38
  9973. rst $38
  9974. rst $38
  9975. rst $38
  9976. rst $38
  9977. rst $38
  9978. rst $38
  9979. rst $38
  9980. rst $38
  9981. rst $38
  9982. rst $38
  9983. rst $38
  9984. rst $38
  9985. rst $38
  9986. rst $38
  9987. rst $38
  9988. rst $38
  9989. rst $38
  9990. rst $38
  9991. rst $38
  9992. rst $38
  9993. rst $38
  9994. rst $38
  9995. rst $38
  9996. rst $38
  9997. rst $38
  9998. rst $38
  9999. rst $38
  10000. rst $38
  10001. rst $38
  10002. rst $38
  10003. rst $38
  10004. rst $38
  10005. rst $38
  10006. rst $38
  10007. rst $38
  10008. rst $38
  10009. rst $38
  10010. rst $38
  10011. rst $38
  10012. rst $38
  10013. rst $38
  10014. rst $38
  10015. rst $38
  10016. rst $38
  10017. rst $38
  10018. rst $38
  10019. rst $38
  10020. rst $38
  10021. rst $38
  10022. rst $38
  10023. rst $38
  10024. rst $38
  10025. rst $38
  10026. rst $38
  10027. rst $38
  10028. rst $38
  10029. rst $38
  10030. rst $38
  10031. rst $38
  10032. rst $38
  10033. rst $38
  10034. rst $38
  10035. rst $38
  10036. rst $38
  10037. rst $38
  10038. rst $38
  10039. rst $38
  10040. rst $38
  10041. rst $38
  10042. rst $38
  10043. rst $38
  10044. rst $38
  10045. rst $38
  10046. rst $38
  10047. rst $38
  10048. rst $38
  10049. rst $38
  10050. rst $38
  10051. rst $38
  10052. rst $38
  10053. rst $38
  10054. rst $38
  10055. rst $38
  10056. rst $38
  10057. rst $38
  10058. rst $38
  10059. rst $38
  10060. rst $38
  10061. rst $38
  10062. rst $38
  10063. rst $38
  10064. rst $38
  10065. rst $38
  10066. rst $38
  10067. rst $38
  10068. rst $38
  10069. rst $38
  10070. rst $38
  10071. rst $38
  10072. rst $38
  10073. rst $38
  10074. rst $38
  10075. rst $38
  10076. rst $38
  10077. rst $38
  10078. rst $38
  10079. rst $38
  10080. rst $38
  10081. rst $38
  10082. rst $38
  10083. rst $38
  10084. rst $38
  10085. rst $38
  10086. rst $38
  10087. rst $38
  10088. rst $38
  10089. rst $38
  10090. rst $38
  10091. rst $38
  10092. rst $38
  10093. rst $38
  10094. rst $38
  10095. rst $38
  10096. rst $38
  10097. rst $38
  10098. rst $38
  10099. rst $38
  10100. rst $38
  10101. rst $38
  10102. rst $38
  10103. rst $38
  10104. rst $38
  10105. rst $38
  10106. rst $38
  10107. rst $38
  10108. rst $38
  10109. rst $38
  10110. rst $38
  10111. rst $38
  10112. rst $38
  10113. rst $38
  10114. rst $38
  10115. rst $38
  10116. rst $38
  10117. rst $38
  10118. rst $38
  10119. rst $38
  10120. rst $38
  10121. rst $38
  10122. rst $38
  10123. rst $38
  10124. rst $38
  10125. rst $38
  10126. rst $38
  10127. rst $38
  10128. rst $38
  10129. rst $38
  10130. rst $38
  10131. rst $38
  10132. rst $38
  10133. rst $38
  10134. rst $38
  10135. rst $38
  10136. rst $38
  10137. rst $38
  10138. rst $38
  10139. rst $38
  10140. rst $38
  10141. rst $38
  10142. rst $38
  10143. rst $38
  10144. rst $38
  10145. rst $38
  10146. rst $38
  10147. rst $38
  10148. rst $38
  10149. rst $38
  10150. rst $38
  10151. rst $38
  10152. rst $38
  10153. rst $38
  10154. rst $38
  10155. rst $38
  10156. rst $38
  10157. rst $38
  10158. rst $38
  10159. rst $38
  10160. rst $38
  10161. rst $38
  10162. rst $38
  10163. rst $38
  10164. rst $38
  10165. rst $38
  10166. rst $38
  10167. rst $38
  10168. rst $38
  10169. rst $38
  10170. rst $38
  10171. rst $38
  10172. rst $38
  10173. rst $38
  10174. rst $38
  10175. rst $38
  10176. rst $38
  10177. rst $38
  10178. rst $38
  10179. rst $38
  10180. rst $38
  10181. rst $38
  10182. rst $38
  10183. rst $38
  10184. rst $38
  10185. rst $38
  10186. rst $38
  10187. rst $38
  10188. rst $38
  10189. rst $38
  10190. rst $38
  10191. rst $38
  10192. rst $38
  10193. rst $38
  10194. rst $38
  10195. rst $38
  10196. rst $38
  10197. rst $38
  10198. rst $38
  10199. rst $38
  10200. rst $38
  10201. rst $38
  10202. rst $38
  10203. rst $38
  10204. rst $38
  10205. rst $38
  10206. rst $38
  10207. rst $38
  10208. rst $38
  10209. rst $38
  10210. rst $38
  10211. rst $38
  10212. rst $38
  10213. rst $38
  10214. rst $38
  10215. rst $38
  10216. rst $38
  10217. rst $38
  10218. rst $38
  10219. rst $38
  10220. rst $38
  10221. rst $38
  10222. rst $38
  10223. rst $38
  10224. rst $38
  10225. rst $38
  10226. rst $38
  10227. rst $38
  10228. rst $38
  10229. rst $38
  10230. rst $38
  10231. rst $38
  10232. rst $38
  10233. rst $38
  10234. rst $38
  10235. rst $38
  10236. rst $38
  10237. rst $38
  10238. rst $38
  10239. rst $38
  10240. rst $38
  10241. rst $38
  10242. rst $38
  10243. rst $38
  10244. rst $38
  10245. rst $38
  10246. rst $38
  10247. rst $38
  10248. rst $38
  10249. rst $38
  10250. rst $38
  10251. rst $38
  10252. rst $38
  10253. rst $38
  10254. rst $38
  10255. rst $38
  10256. rst $38
  10257. rst $38
  10258. rst $38
  10259. rst $38
  10260. rst $38
  10261. rst $38
  10262. rst $38
  10263. rst $38
  10264. rst $38
  10265. rst $38
  10266. rst $38
  10267. rst $38
  10268. rst $38
  10269. rst $38
  10270. rst $38
  10271. rst $38
  10272. rst $38
  10273. rst $38
  10274. rst $38
  10275. rst $38
  10276. rst $38
  10277. rst $38
  10278. rst $38
  10279. rst $38
  10280. rst $38
  10281. rst $38
  10282. rst $38
  10283. rst $38
  10284. rst $38
  10285. rst $38
  10286. rst $38
  10287. rst $38
  10288. rst $38
  10289. rst $38
  10290. rst $38
  10291. rst $38
  10292. rst $38
  10293. rst $38
  10294. rst $38
  10295. rst $38
  10296. rst $38
  10297. rst $38
  10298. rst $38
  10299. rst $38
  10300. rst $38
  10301. rst $38
  10302. rst $38
  10303. rst $38
  10304. rst $38
  10305. rst $38
  10306. rst $38
  10307. rst $38
  10308. rst $38
  10309. rst $38
  10310. rst $38
  10311. rst $38
  10312. rst $38
  10313. rst $38
  10314. rst $38
  10315. rst $38
  10316. rst $38
  10317. rst $38
  10318. rst $38
  10319. rst $38
  10320. rst $38
  10321. rst $38
  10322. rst $38
  10323. rst $38
  10324. rst $38
  10325. rst $38
  10326. rst $38
  10327. rst $38
  10328. rst $38
  10329. rst $38
  10330. rst $38
  10331. rst $38
  10332. rst $38
  10333. rst $38
  10334. rst $38
  10335. rst $38
  10336. rst $38
  10337. rst $38
  10338. rst $38
  10339. rst $38
  10340. rst $38
  10341. rst $38
  10342. rst $38
  10343. rst $38
  10344. rst $38
  10345. rst $38
  10346. rst $38
  10347. rst $38
  10348. rst $38
  10349. rst $38
  10350. rst $38
  10351. rst $38
  10352. rst $38
  10353. rst $38
  10354. rst $38
  10355. rst $38
  10356. rst $38
  10357. rst $38
  10358. rst $38
  10359. rst $38
  10360. rst $38
  10361. rst $38
  10362. rst $38
  10363. rst $38
  10364. rst $38
  10365. rst $38
  10366. rst $38
  10367. rst $38
  10368. rst $38
  10369. rst $38
  10370. rst $38
  10371. rst $38
  10372. rst $38
  10373. rst $38
  10374. rst $38
  10375. rst $38
  10376. rst $38
  10377. rst $38
  10378. rst $38
  10379. rst $38
  10380. rst $38
  10381. rst $38
  10382. rst $38
  10383. rst $38
  10384. rst $38
  10385. rst $38
  10386. rst $38
  10387. rst $38
  10388. rst $38
  10389. rst $38
  10390. rst $38
  10391. rst $38
  10392. rst $38
  10393. rst $38
  10394. rst $38
  10395. rst $38
  10396. rst $38
  10397. rst $38
  10398. rst $38
  10399. rst $38
  10400. rst $38
  10401. rst $38
  10402. rst $38
  10403. rst $38
  10404. rst $38
  10405. rst $38
  10406. rst $38
  10407. rst $38
  10408. rst $38
  10409. rst $38
  10410. rst $38
  10411. rst $38
  10412. rst $38
  10413. rst $38
  10414. rst $38
  10415. rst $38
  10416. rst $38
  10417. rst $38
  10418. rst $38
  10419. rst $38
  10420. rst $38
  10421. rst $38
  10422. rst $38
  10423. rst $38
  10424. rst $38
  10425. rst $38
  10426. rst $38
  10427. rst $38
  10428. rst $38
  10429. rst $38
  10430. rst $38
  10431. rst $38
  10432. rst $38
  10433. rst $38
  10434. rst $38
  10435. rst $38
  10436. rst $38
  10437. rst $38
  10438. rst $38
  10439. rst $38
  10440. rst $38
  10441. rst $38
  10442. rst $38
  10443. rst $38
  10444. rst $38
  10445. rst $38
  10446. rst $38
  10447. rst $38
  10448. rst $38
  10449. rst $38
  10450. rst $38
  10451. rst $38
  10452. rst $38
  10453. rst $38
  10454. rst $38
  10455. rst $38
  10456. rst $38
  10457. rst $38
  10458. rst $38
  10459. rst $38
  10460. rst $38
  10461. rst $38
  10462. rst $38
  10463. rst $38
  10464. rst $38
  10465. rst $38
  10466. rst $38
  10467. rst $38
  10468. rst $38
  10469. rst $38
  10470. rst $38
  10471. rst $38
  10472. rst $38
  10473. rst $38
  10474. rst $38
  10475. rst $38
  10476. rst $38
  10477. rst $38
  10478. rst $38
  10479. rst $38
  10480. rst $38
  10481. rst $38
  10482. rst $38
  10483. rst $38
  10484. rst $38
  10485. rst $38
  10486. rst $38
  10487. rst $38
  10488. rst $38
  10489. rst $38
  10490. rst $38
  10491. rst $38
  10492. rst $38
  10493. rst $38
  10494. rst $38
  10495. rst $38
  10496. rst $38
  10497. rst $38
  10498. rst $38
  10499. rst $38
  10500. rst $38
  10501. rst $38
  10502. rst $38
  10503. rst $38
  10504. rst $38
  10505. rst $38
  10506. rst $38
  10507. rst $38
  10508. rst $38
  10509. rst $38
  10510. rst $38
  10511. rst $38
  10512. rst $38
  10513. rst $38
  10514. rst $38
  10515. rst $38
  10516. rst $38
  10517. rst $38
  10518. rst $38
  10519. rst $38
  10520. rst $38
  10521. rst $38
  10522. rst $38
  10523. rst $38
  10524. rst $38
  10525. rst $38
  10526. rst $38
  10527. rst $38
  10528. rst $38
  10529. rst $38
  10530. rst $38
  10531. rst $38
  10532. rst $38
  10533. rst $38
  10534. rst $38
  10535. rst $38
  10536. rst $38
  10537. rst $38
  10538. rst $38
  10539. rst $38
  10540. rst $38
  10541. rst $38
  10542. rst $38
  10543. rst $38
  10544. rst $38
  10545. rst $38
  10546. rst $38
  10547. rst $38
  10548. rst $38
  10549. rst $38
  10550. rst $38
  10551. rst $38
  10552. rst $38
  10553. rst $38
  10554. rst $38
  10555. rst $38
  10556. rst $38
  10557. push af
  10558. ld a,$1d
  10559. ldh [$ff80],a
  10560. ld [$2000],a
  10561. pop af
  10562. ld bc,$3f8e
  10563. push bc
  10564. jp [hl]
  10565. ld a,$1c
  10566. ldh [$ff80],a
  10567. ld [$2000],a
  10568. ret
  10569. nop
  10570. nop
  10571. nop
  10572. nop
  10573. nop
  10574. nop
  10575. nop
  10576. nop
  10577. nop
  10578. nop
  10579. nop
  10580. nop
  10581. nop
  10582. nop
  10583. nop
  10584. nop
  10585. nop
  10586. nop
  10587. nop
  10588. nop
  10589. nop
  10590. nop
  10591. nop
  10592. nop
  10593. nop
  10594. nop
  10595. nop
  10596. nop
  10597. nop
  10598. nop
  10599. nop
  10600. nop
  10601. nop
  10602. nop
  10603. nop
  10604. nop
  10605. nop
  10606. nop
  10607. nop
  10608. nop
  10609. nop
  10610. nop
  10611. nop
  10612. nop
  10613. nop
  10614. nop
  10615. nop
  10616. nop
  10617. nop
  10618. nop
  10619. nop
  10620. nop
  10621. nop
  10622. nop
  10623. nop
  10624. nop
  10625. nop
  10626. nop
  10627. nop
  10628. nop
  10629. nop
  10630. nop
  10631. nop
  10632. nop
  10633. nop
  10634. nop
  10635. nop
  10636. nop
  10637. nop
  10638. nop
  10639. nop
  10640. nop
  10641. nop
  10642. nop
  10643. push af
  10644. ld a,$14
  10645. rst $20
  10646. pop af
  10647. ld bc,$3fea
  10648. push bc
  10649. jp [hl]
  10650. ld a,$1c
  10651. rst $20
  10652. ret
  10653. nop
  10654. nop
  10655. nop
  10656. nop
  10657. nop
  10658. nop
  10659. nop
  10660. nop
  10661. nop
  10662. nop
  10663. nop
  10664. nop
  10665. nop
  10666. nop
  10667. nop
  10668. nop
  10669. nop
  10670. nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement