Prev: 965D Up: Map Next: AEFF
974A: Routine at 974A
Used by the routine at Sounds_PlayQueue.
974A XOR A
974B LD ($5CDD),A
974E LD BC,$0608
9751 LD A,($B7E5)
9754 CP $02
9756 JR NZ,$9767
9758 LD HL,$1510
975B CALL $9CF4
975E LD BC,$0608
9761 LD HL,$15C0
9764 JP $9CF4
9767 LD HL,$1510
976A LD A,($B7E6)
976D AND A
976E JP Z,$9CF4
9771 LD L,$C0
9773 JP $9CF4
This entry point is used by the routines at StartGame and BDCF.
9776 LD A,($B7EA)
This entry point is used by the routine at BDCF.
9779 LD HL,$6CBD
977C ADD A,A
977D LD E,A
977E LD D,$00
9780 ADD HL,DE
9781 LD E,(HL)
9782 INC HL
9783 LD D,(HL)
9784 EX DE,HL
9785 LD ($9789),HL
9788 RET
9789 NOP
978A NOP
This entry point is used by the routine at StartGame.
978B CALL $979F
978E RET Z
978F CALL $979F
9792 JR NZ,$978F
9794 CALL $979F
9797 JR Z,$9794
9799 CALL $979F
979C JR NZ,$9799
979E RET
979F LD A,$F7
97A1 CALL $97A7
97A4 AND $0F
97A6 RET
This entry point is used by the routines at 926B and 93F8.
97A7 IN A,($FE)
97A9 CPL
97AA AND $1F
97AC RET
This entry point is used by the routines at 910C, DrawFrame, B765, B8E6 and StartGame.
97AD LD ($97D0),SP
97B1 LD SP,$5B00
97B4 LD BC,$8002
97B7 LD DE,$0000
97BA JR $97C9
This entry point is used by the routines at 910C, DrawFrame and StartGame.
97BC LD ($97D0),SP
97C0 LD SP,$5800
97C3 LD BC,$000C
97C6 LD DE,$0000
97C9 PUSH DE
97CA DJNZ $97C9
97CC DEC C
97CD JR NZ,$97C9
97CF LD SP,$0000
97D2 RET
This entry point is used by the routines at 910C, B765 and B8E6.
97D3 LD E,$FF
97D5 DEC E
97D6 JR NZ,$97D5
97D8 DEC D
97D9 JR NZ,$97D3
97DB RET
97DC NOP
97DD NOP
This entry point is used by the routine at StartGame.
97DE LD IX,$9AD0
97E2 LD B,$0B
97E4 XOR A
97E5 LD ($D000),A
97E8 LD HL,$D001
97EB PUSH BC
97EC LD A,(IX+$00)
97EF AND A
97F0 CALL NZ,$9801
97F3 POP BC
97F4 LD DE,$0016
97F7 ADD IX,DE
97F9 DJNZ $97EB
97FB LD ($97FF),HL
97FE RET
97FF NOP
9800 NOP
9801 LD A,(IX+$04)
9804 CP $C0
9806 JR C,$980C
9808 SET 7,(IX+$00)
980C BIT 7,(IX+$00)
9810 RET NZ
9811 LD A,($D000)
9814 INC A
9815 LD ($D000),A
9818 LD C,(IX+$08)
981B LD A,(IX+$02)
981E AND $07
9820 JR Z,$9823
9822 INC C
9823 LD A,C
9824 ADD A,A
9825 ADD A,A
9826 ADD A,A
9827 ADD A,(IX+$02)
982A JR NC,$9839
982C LD A,$FF
982E SUB (IX+$02)
9831 SRL A
9833 SRL A
9835 SRL A
9837 INC A
9838 LD C,A
9839 LD D,(IX+$0A)
983C LD E,(IX+$0B)
983F LD (HL),E
9840 INC HL
9841 LD (HL),D
9842 INC HL
9843 SLA C
9845 LD A,$F6
9847 SUB C
9848 LD (HL),A
9849 INC HL
984A LD ($9877),A
984D LD B,(IX+$09)
9850 INC B
9851 LD (HL),B
9852 INC HL
9853 EX DE,HL
9854 LD A,L
9855 LD C,$FF
9857 JP $9876
985A LDI
985C LDI
985E LDI
9860 LDI
9862 LDI
9864 LDI
9866 LDI
9868 LDI
986A LDI
986C LDI
986E DEC HL
986F ADD A,$20
9871 LD L,A
9872 JP NC,$9876
9875 INC H
9876 DJNZ $9876
9878 EX DE,HL
9879 RET
This entry point is used by the routine at StartGame.
987A LD A,($8E71)
987D AND A
987E JR Z,$989A
9880 LD IX,($8E70)
9884 LD A,(IX+$02)
9887 SUB $05
9889 LD L,A
988A LD A,(IX+$04)
988D SUB $05
988F LD H,A
9890 LD BC,$0417
9893 CALL $9CF4
9896 XOR A
9897 LD ($8E71),A
This entry point is used by the routine at StartGame.
989A LD A,($D000)
989D AND A
989E RET Z
989F LD HL,$D001
98A2 EX AF,AF'
98A3 LD E,(HL)
98A4 INC HL
98A5 LD D,(HL)
98A6 INC HL
98A7 LD A,(HL)
98A8 LD ($98D6),A
98AB INC HL
98AC LD B,(HL)
98AD INC HL
98AE LD C,$FF
98B0 LD A,E
98B1 JP $98D5
98B4 EX AF,AF'
98B5 DEC A
98B6 JR NZ,$98A2
98B8 RET
98B9 LDI
98BB LDI
98BD LDI
98BF LDI
98C1 LDI
98C3 LDI
98C5 LDI
98C7 LDI
98C9 LDI
98CB LDI
98CD DEC DE
98CE ADD A,$20
98D0 LD E,A
98D1 JP NC,$98D5
98D4 INC D
98D5 DJNZ $98D5
98D7 JP $98B4
98DA DEC D
98DB SBC A,D
98DC RRCA
98DD SBC A,D
98DE ADD HL,BC
98DF SBC A,D
98E0 INC BC
98E1 SBC A,D
98E2 DEFB $FD
98E3 SBC A,C
98E4 RST $30
98E5 SBC A,C
98E6 POP AF
98E7 SBC A,C
98E8 EX DE,HL
98E9 SBC A,C
98EA SBC A,D
98EB SBC A,D
98EC ADC A,H
98ED SBC A,D
98EE LD A,(HL)
98EF SBC A,D
98F0 LD (HL),B
98F1 SBC A,D
98F2 LD H,D
98F3 SBC A,D
98F4 LD D,H
98F5 SBC A,D
98F6 LD B,(HL)
98F7 SBC A,D
98F8 JR C,$9894
98FA EX AF,AF'
98FB LD A,(BC)
98FC INC B
98FD LD B,$00
98FF NOP
9900 LD B,$00
9902 LD (BC),A
9903 LD (BC),A
9904 INC B
9905 INC B
9906 NOP
9907 NOP
9908 ADD HL,BC
9909 DJNZ $9911
990B INC C
990C INC B
990D ADD HL,BC
990E DEC B
990F RLCA
This entry point is used by the routines at 8D4C, 8E72, 965D and BDCF.
9910 LD A,(IX+$00)
9913 BIT 7,A
9915 RET NZ
9916 CP $02
9918 JR NZ,$995C
991A LD A,($9B68)
991D CP $07
991F JR Z,$9928
9921 LD A,($9B52)
9924 CP $07
9926 JR NZ,$9959
9928 LD (IX+$01),$08
992C RES 7,(IX+$15)
9930 LD A,($8D46)
9933 RRA
9934 JR C,$9959
9936 LD A,($A65A)
9939 INC A
993A LD ($A65A),A
993D CP $F8
993F JR C,$9959
9941 LD A,($9B68)
9944 CP $07
9946 JR NZ,$994D
9948 LD A,$FF
994A LD ($9B68),A
994D LD A,($9B52)
9950 CP $07
9952 JR NZ,$9959
9954 LD A,$FF
9956 LD ($9B52),A
9959 LD A,(IX+$00)
995C LD HL,$98F8
995F ADD A,A
9960 CALL PrintLine_9
9963 LD A,(IX+$02)
9966 AND $07
9968 JR Z,$996B
996A INC HL
996B LD A,($5CD8)
996E ADD A,(HL)
996F LD ($5CD8),A
9972 CALL $7767
9975 LD HL,$98D8
9978 LD A,(IX+$04)
997B CP $C0
997D RET NC
997E ADD A,(IX+$09)
9981 CP $20
9983 LD ($97DC),SP
9987 BIT 7,(IX+$15)
998B LD A,$00
998D JR NZ,$9992
998F LD A,(IX+$02)
9992 AND $07
9994 LD C,A
9995 LD A,(DE)
9996 LD B,A
9997 JR Z,$999C
9999 ADD A,$08
999B INC B
999C ADD A,A
999D CALL PrintLine_9
99A0 LD A,(HL)
99A1 INC HL
99A2 LD H,(HL)
99A3 LD L,A
99A4 LD ($9A20),HL
99A7 LD ($9AB4),HL
99AA LD ($9AB9),HL
99AD LD ($99E3),HL
99B0 INC DE
99B1 LD A,$21
99B3 SUB B
99B4 LD ($9AB0),A
99B7 LD ($9A1B),A
99BA LD H,(IX+$0A)
99BD LD L,(IX+$0B)
99C0 EX DE,HL
99C1 LD A,(HL)
99C2 LD B,A
99C3 EX AF,AF'
99C4 INC HL
99C5 LD SP,HL
99C6 LD A,(IX+$04)
99C9 ADD A,B
99CA CP $C1
99CC JR C,$99D5
99CE LD A,$C0
99D0 SUB (IX+$04)
99D3 LD B,A
99D4 EX AF,AF'
99D5 LD A,C
99D6 AND A
99D7 JR Z,$99E5
99D9 ADD A,A
99DA ADD A,$F0
99DC LD H,A
99DD LD ($9AC2),DE
99E1 LD A,(DE)
99E2 JP $99E2
99E5 EX DE,HL
99E6 LD ($9A28),HL
99E9 JR $99E2
99EB POP DE
99EC LD A,E
99ED OR (HL)
99EE XOR D
99EF LD (HL),A
99F0 INC L
99F1 POP DE
99F2 LD A,E
99F3 OR (HL)
99F4 XOR D
99F5 LD (HL),A
99F6 INC L
99F7 POP DE
99F8 LD A,E
99F9 OR (HL)
99FA XOR D
99FB LD (HL),A
99FC INC L
99FD POP DE
99FE LD A,E
99FF OR (HL)
9A00 XOR D
9A01 LD (HL),A
9A02 INC L
9A03 POP DE
9A04 LD A,E
9A05 OR (HL)
9A06 XOR D
9A07 LD (HL),A
9A08 INC L
9A09 POP DE
9A0A LD A,E
9A0B OR (HL)
9A0C XOR D
9A0D LD (HL),A
9A0E INC L
9A0F POP DE
9A10 LD A,E
9A11 OR (HL)
9A12 XOR D
9A13 LD (HL),A
9A14 INC L
9A15 POP DE
9A16 LD A,E
9A17 OR (HL)
9A18 XOR D
9A19 LD (HL),A
9A1A LD DE,$0000
9A1D ADD HL,DE
9A1E DEC B
9A1F JP NZ,$9A1F
9A22 LD SP,($97DC)
9A26 RET
9A27 LD HL,$0000
9A2A LD DE,$0020
9A2D ADD HL,DE
9A2E LD ($9A28),HL
9A31 DEC B
9A32 JP NZ,$9AB8
9A35 JP $9A22
9A38 POP BC
9A39 LD L,C
9A3A OR (HL)
9A3B LD L,B
9A3C XOR (HL)
9A3D LD (DE),A
9A3E INC E
9A3F INC H
9A40 LD L,C
9A41 LD A,(DE)
9A42 OR (HL)
9A43 LD L,B
9A44 XOR (HL)
9A45 DEC H
9A46 POP BC
9A47 LD L,C
9A48 OR (HL)
9A49 LD L,B
9A4A XOR (HL)
9A4B LD (DE),A
9A4C INC E
9A4D INC H
9A4E LD L,C
9A4F LD A,(DE)
9A50 OR (HL)
9A51 LD L,B
9A52 XOR (HL)
9A53 DEC H
9A54 POP BC
9A55 LD L,C
9A56 OR (HL)
9A57 LD L,B
9A58 XOR (HL)
9A59 LD (DE),A
9A5A INC E
9A5B INC H
9A5C LD L,C
9A5D LD A,(DE)
9A5E OR (HL)
9A5F LD L,B
9A60 XOR (HL)
9A61 DEC H
9A62 POP BC
9A63 LD L,C
9A64 OR (HL)
9A65 LD L,B
9A66 XOR (HL)
9A67 LD (DE),A
9A68 INC E
9A69 INC H
9A6A LD L,C
9A6B LD A,(DE)
9A6C OR (HL)
9A6D LD L,B
9A6E XOR (HL)
9A6F DEC H
9A70 POP BC
9A71 LD L,C
9A72 OR (HL)
9A73 LD L,B
9A74 XOR (HL)
9A75 LD (DE),A
9A76 INC E
9A77 INC H
9A78 LD L,C
9A79 LD A,(DE)
9A7A OR (HL)
9A7B LD L,B
9A7C XOR (HL)
9A7D DEC H
9A7E POP BC
9A7F LD L,C
9A80 OR (HL)
9A81 LD L,B
9A82 XOR (HL)
9A83 LD (DE),A
9A84 INC E
9A85 INC H
9A86 LD L,C
9A87 LD A,(DE)
9A88 OR (HL)
9A89 LD L,B
9A8A XOR (HL)
9A8B DEC H
9A8C POP BC
9A8D LD L,C
9A8E OR (HL)
9A8F LD L,B
9A90 XOR (HL)
9A91 LD (DE),A
9A92 INC E
9A93 INC H
9A94 LD L,C
9A95 LD A,(DE)
9A96 OR (HL)
9A97 LD L,B
9A98 XOR (HL)
9A99 DEC H
9A9A POP BC
9A9B LD L,C
9A9C OR (HL)
9A9D LD L,B
9A9E XOR (HL)
9A9F LD (DE),A
9AA0 INC E
9AA1 INC H
9AA2 LD L,C
9AA3 LD A,(DE)
9AA4 OR (HL)
9AA5 LD L,B
9AA6 XOR (HL)
9AA7 DEC H
9AA8 LD (DE),A
9AA9 EX AF,AF'
9AAA DEC A
9AAB JR Z,$9ABB
9AAD EX AF,AF'
9AAE LD A,E
9AAF ADD A,$00
9AB1 LD E,A
9AB2 LD A,(DE)
9AB3 JP NC,$9AB3
9AB6 INC D
9AB7 LD A,(DE)
9AB8 JP $9AB8
9ABB LD SP,($97DC)
9ABF RET
9AC0 LD A,H
9AC1 LD HL,$0000
9AC4 LD DE,$0020
9AC7 ADD HL,DE
9AC8 LD ($9AC2),HL
9ACB EX DE,HL
9ACC LD H,A
9ACD JP $9AB7
9AD0 LD (BC),A
9AD1 NOP
9AD2 ADD A,H
9AD3 NOP
9AD4 AND B
9AD5 NOP
9AD6 JR C,$9ADA
9AD8 LD (BC),A
9AD9 INC C
9ADA NOP
9ADB NOP
9ADC EX AF,AF'
9ADD RLCA
9ADE NOP
9ADF NOP
9AE0 NOP
9AE1 NOP
9AE2 NOP
9AE3 NOP
9AE4 NOP
9AE5 ADD A,B
9AE6 NOP
9AE7 NOP
9AE8 ADD A,H
9AE9 NOP
9AEA AND B
9AEB NOP
9AEC JR C,$9AF0
9AEE LD (BC),A
9AEF INC C
9AF0 NOP
9AF1 NOP
9AF2 EX AF,AF'
9AF3 RLCA
9AF4 NOP
9AF5 NOP
9AF6 NOP
9AF7 NOP
9AF8 NOP
9AF9 NOP
9AFA NOP
9AFB ADD A,B
9AFC NOP
9AFD NOP
9AFE ADD A,H
9AFF NOP
9B00 AND B
9B01 NOP
9B02 JR C,$9B06
9B04 LD (BC),A
9B05 INC C
9B06 NOP
9B07 NOP
9B08 EX AF,AF'
9B09 RLCA
9B0A NOP
9B0B NOP
9B0C NOP
9B0D NOP
9B0E NOP
9B0F NOP
9B10 NOP
9B11 ADD A,B
9B12 NOP
9B13 NOP
9B14 ADD A,H
9B15 NOP
9B16 AND B
9B17 NOP
9B18 JR NC,$9B1B
9B1A LD BC,$0008
9B1D NOP
9B1E INC B
9B1F EX AF,AF'
9B20 NOP
9B21 NOP
9B22 NOP
9B23 NOP
9B24 NOP
9B25 NOP
9B26 NOP
9B27 ADD A,B
9B28 NOP
9B29 NOP
9B2A ADD A,H
9B2B NOP
9B2C AND B
9B2D NOP
9B2E JR NC,$9B31
9B30 LD BC,$0008
9B33 NOP
9B34 INC B
9B35 EX AF,AF'
9B36 NOP
9B37 NOP
9B38 NOP
9B39 NOP
9B3A NOP
9B3B NOP
9B3C NOP
9B3D ADD A,B
9B3E NOP
9B3F NOP
9B40 LD (HL),H
9B41 NOP
9B42 XOR L
9B43 NOP
9B44 NOP
9B45 NOP
9B46 INC B
9B47 DEC C
9B48 NOP
9B49 NOP
9B4A INC E
9B4B LD A,(BC)
9B4C NOP
9B4D NOP
9B4E NOP
9B4F NOP
9B50 RET P
9B51 NOP
9B52 RST $38
9B53 ADD A,B
9B54 LD BC,$7400
9B57 NOP
9B58 XOR L
9B59 NOP
9B5A NOP
9B5B NOP
9B5C INC B
9B5D DEC C
9B5E NOP
9B5F NOP
9B60 INC E
9B61 LD A,(BC)
9B62 NOP
9B63 NOP
9B64 NOP
9B65 NOP
9B66 RET P
9B67 NOP
9B68 NOP
9B69 ADD A,B
9B6A NOP
9B6B INC BC
9B6C ADD A,H
9B6D NOP
9B6E XOR L
9B6F NOP
9B70 NOP
9B71 NOP
9B72 INC BC
9B73 DEC C
9B74 NOP
9B75 NOP
9B76 DEC DE
9B77 LD A,(BC)
9B78 NOP
9B79 NOP
9B7A NOP
9B7B NOP
9B7C NOP
9B7D NOP
9B7E NOP
9B7F NOP
9B80 NOP
9B81 NOP
9B82 JR Z,$9B84
9B84 SBC A,A
9B85 NOP
9B86 NOP
9B87 NOP
9B88 NOP
9B89 NOP
9B8A NOP
9B8B NOP
9B8C NOP
9B8D NOP
9B8E NOP
9B8F NOP
9B90 NOP
9B91 NOP
9B92 RET P
9B93 LD H,B
9B94 NOP
9B95 NOP
9B96 NOP
9B97 LD BC,$0078
9B9A ADC A,B
9B9B NOP
9B9C NOP
9B9D NOP
9B9E INC BC
9B9F JR $9BA1
9BA1 NOP
9BA2 JR $9BBC
9BA4 NOP
9BA5 NOP
9BA6 NOP
9BA7 NOP
9BA8 LD D,B
9BA9 LD B,H
9BAA NOP
9BAB NOP
9BAC NOP
9BAD NOP
9BAE RET M
9BAF NOP
9BB0 XOR B
9BB1 NOP
9BB2 NOP
9BB3 NOP
9BB4 INC BC
9BB5 INC E
9BB6 NOP
9BB7 NOP
9BB8 NOP
9BB9 NOP
9BBA NOP
9BBB NOP
9BBC NOP
9BBD NOP
9BBE NOP
9BBF NOP
9BC0 NOP
9BC1 NOP
9BC2 INC BC
9BC3 NOP
9BC4 DJNZ $9BC6
9BC6 CP C
9BC7 NOP
9BC8 NOP
9BC9 NOP
9BCA LD (BC),A
9BCB LD B,$00
9BCD NOP
9BCE NOP
9BCF NOP
9BD0 NOP
9BD1 NOP
9BD2 NOP
9BD3 NOP
9BD4 INC BC
9BD5 NOP
9BD6 NOP
9BD7 NOP
9BD8 INC C
9BD9 NOP
9BDA NOP
9BDB NOP
9BDC NOP
9BDD NOP
9BDE NOP
9BDF NOP
9BE0 NOP
9BE1 NOP
9BE2 NOP
9BE3 NOP
9BE4 NOP
9BE5 NOP
9BE6 NOP
9BE7 NOP
9BE8 NOP
9BE9 NOP
9BEA NOP
9BEB NOP
9BEC NOP
9BED NOP
9BEE INC BC
9BEF DEC B
9BF0 LD A,L
9BF1 NOP
9BF2 XOR C
9BF3 NOP
9BF4 NOP
9BF5 NOP
9BF6 NOP
9BF7 NOP
9BF8 NOP
9BF9 NOP
9BFA NOP
9BFB NOP
9BFC NOP
9BFD NOP
9BFE NOP
9BFF NOP
9C00 NOP
9C01 NOP
9C02 NOP
9C03 NOP
9C04 NOP
9C05 NOP
9C06 NOP
9C07 NOP
9C08 NOP
9C09 NOP
9C0A NOP
9C0B NOP
9C0C NOP
9C0D NOP
9C0E NOP
9C0F NOP
9C10 NOP
9C11 NOP
9C12 NOP
9C13 NOP
9C14 NOP
9C15 NOP
9C16 NOP
9C17 NOP
9C18 NOP
9C19 NOP
9C1A NOP
9C1B NOP
9C1C NOP
9C1D NOP
9C1E NOP
9C1F NOP
9C20 NOP
9C21 NOP
9C22 NOP
9C23 NOP
9C24 NOP
This entry point is used by the routine at 965D.
9C25 LD A,(IX+$00)
9C28 RLA
9C29 JR NC,$9C2F
9C2B LD (IX+$00),$00
9C2F LD L,(IX+$02)
9C32 LD A,(IX+$11)
9C35 AND A
9C36 JR NZ,$9C49
9C38 LD H,(IX+$04)
9C3B LD A,(IX+$08)
9C3E ADD A,A
9C3F ADD A,A
9C40 ADD A,A
9C41 ADD A,L
9C42 LD B,A
9C43 LD C,(IX+$09)
9C46 JP $9C88
9C49 LD E,L
9C4A LD A,(IX+$0E)
9C4D LD D,A
9C4E CP L
9C4F JR NC,$9C52
9C51 LD L,A
9C52 LD B,(IX+$08)
9C55 SLA B
9C57 SLA B
9C59 SLA B
9C5B LD C,(IX+$10)
9C5E SLA C
9C60 SLA C
9C62 SLA C
9C64 LD A,E
9C65 ADD A,B
9C66 LD B,A
9C67 LD A,D
9C68 ADD A,C
9C69 CP B
9C6A JR C,$9C6D
9C6C LD B,A
9C6D LD H,(IX+$04)
9C70 LD D,H
9C71 LD A,(IX+$0F)
9C74 LD E,A
9C75 CP H
9C76 JR NC,$9C79
9C78 LD H,A
9C79 LD A,D
9C7A ADD A,(IX+$09)
9C7D LD D,A
9C7E LD A,E
9C7F ADD A,(IX+$11)
9C82 CP D
9C83 JR NC,$9C86
9C85 LD A,D
9C86 SUB H
9C87 LD C,A
9C88 LD A,L
9C89 AND $F8
9C8B LD L,A
9C8C CP $F8
9C8E RET NC
9C8F CP B
9C90 JR C,$9C94
9C92 LD B,$FF
9C94 LD E,L
9C95 BIT 7,A
9C97 JR Z,$9C9D
9C99 RES 7,L
9C9B RES 7,B
9C9D LD A,B
9C9E ADD A,$07
9CA0 AND $F8
9CA2 SUB L
9CA3 SRL A
9CA5 SRL A
9CA7 SRL A
9CA9 LD B,A
9CAA LD L,E
9CAB LD A,(IX+$02)
9CAE LD (IX+$0E),A
9CB1 LD A,(IX+$04)
9CB4 LD (IX+$0F),A
9CB7 LD A,(IX+$08)
9CBA LD (IX+$10),A
9CBD LD A,(IX+$09)
9CC0 LD (IX+$11),A
9CC3 LD A,H
9CC4 ADD A,C
9CC5 CP $C0
9CC7 JR C,$9CCD
9CC9 LD A,$C0
9CCB SUB H
9CCC LD C,A
9CCD BIT 7,L
9CCF JR Z,$9CE8
9CD1 RES 7,L
9CD3 LD A,B
9CD4 ADD A,A
9CD5 ADD A,A
9CD6 ADD A,A
9CD7 ADD A,L
9CD8 SUB $78
9CDA JR C,$9CE6
9CDC SRL A
9CDE SRL A
9CE0 SRL A
9CE2 NEG
9CE4 ADD A,B
9CE5 LD B,A
9CE6 SET 7,L
9CE8 LD A,H
9CE9 SUB $08
9CEB JR NC,$9CF4
9CED ADD A,C
9CEE LD C,A
9CEF DEC A
9CF0 RLA
9CF1 RET C
9CF2 LD H,$08
This entry point is used by the routines at B717 and StartGame.
9CF4 PUSH BC
9CF5 PUSH HL
9CF6 CALL $C03D
9CF9 EX DE,HL
9CFA POP HL
9CFB CALL PrintLine_7
9CFE EX DE,HL
9CFF POP BC
9D00 LD A,B
9D01 EXX
9D02 LD C,A
9D03 LD A,$20
9D05 SUB C
9D06 LD ($9D3B),A
9D09 SLA C
9D0B LD B,$00
9D0D LD HL,$9D3A
9D10 SBC HL,BC
9D12 LD ($9D55),HL
9D15 EXX
9D16 LD B,C
9D17 PUSH DE
9D18 LD C,$FE
9D1A INC C
9D1B JP $9D54
9D1E LDI
9D20 LDI
9D22 LDI
9D24 LDI
9D26 LDI
9D28 LDI
9D2A LDI
9D2C LDI
9D2E LDI
9D30 LDI
9D32 LDI
9D34 LDI
9D36 LDI
9D38 LDI
9D3A LD DE,$0000
9D3D ADD HL,DE
9D3E POP DE
9D3F LD A,D
9D40 INC D
9D41 CPL
9D42 AND $07
9D44 JP NZ,$9D52
9D47 LD A,E
9D48 ADD A,$20
9D4A LD E,A
9D4B JP C,$9D52
9D4E LD A,D
9D4F SUB $08
9D51 LD D,A
9D52 PUSH DE
9D53 DEC B
9D54 JP NZ,$9D54
9D57 POP DE
9D58 RET
9D59 NOP
9D5A LD A,($9B80)
9D5D AND A
9D5E RET NZ
9D5F LD A,($B7E5)
9D62 CP $02
9D64 JR NZ,$9D6C
9D66 LD A,($B290)
9D69 CP $78
9D6B RET Z
9D6C PUSH IY
9D6E EXX
9D6F LD IX,$9B80
9D73 LD (IX+$00),$04
9D77 LD HL,$0000
9D7A LD ($A557),HL
9D7D LD HL,($B290)
9D80 LD (IX+$02),L
9D83 LD (IX+$04),H
9D86 LD A,($9B68)
9D89 LD ($9D59),A
9D8C LD A,($B7E5)
9D8F CP $02
9D91 JR NZ,$9D9E
9D93 LD A,L
9D94 CP $80
9D96 JR C,$9D9E
9D98 LD A,($9B52)
9D9B LD ($9D59),A
9D9E LD (IX+$12),$F0
9DA2 LD (IX+$13),$60
9DA6 LD (IX+$11),$00
9DAA LD (IX+$0C),$10
9DAE LD (IX+$0D),$08
9DB2 CALL $8EB4
9DB5 LD A,($8D49)
9DB8 AND $0F
9DBA LD HL,$9E4A
9DBD CALL PrintLine_9
9DC0 LD A,($9D59)
9DC3 CP (HL)
9DC4 JR Z,$9DB2
9DC6 LD A,(HL)
9DC7 CP $04
9DC9 JR NZ,$9DF4
9DCB LD A,($9AD0)
9DCE AND A
9DCF JR Z,$9DD8
9DD1 LD A,($9AD7)
9DD4 CP $02
9DD6 JR Z,$9DB2
9DD8 LD A,($9AE6)
9DDB AND A
9DDC JR Z,$9DE5
9DDE LD A,($9AED)
9DE1 CP $02
9DE3 JR Z,$9DB2
9DE5 LD A,($9AFC)
9DE8 AND A
9DE9 JR Z,$9DF2
9DEB LD A,($9B03)
9DEE CP $02
9DF0 JR Z,$9DB2
9DF2 JR $9E0A
9DF4 CP $02
9DF6 JR NZ,$9E00
9DF8 LD A,($5CD9)
9DFB DEC A
9DFC JR NZ,$9DB2
9DFE JR $9E0A
9E00 CP $05
9E02 JR NZ,$9E0A
9E04 LD A,($A899)
9E07 AND A
9E08 JR NZ,$9DB2
9E0A LD A,(HL)
9E0B CP $06
9E0D JR NZ,$9E23
9E0F LD A,($9BAC)
9E12 AND A
9E13 JR NZ,$9DB2
9E15 LD A,($B7EB)
9E18 CP $06
9E1A JR C,$9E23
9E1C LD A,($8D48)
9E1F AND $C0
9E21 JR NZ,$9DB2
9E23 LD A,(HL)
9E24 DEC A
9E25 JR NZ,$9E3C
9E27 LD A,($B7E5)
9E2A CP $02
9E2C JR NZ,$9E3C
9E2E LD A,($9B68)
9E31 DEC A
9E32 JP Z,$9DB2
9E35 LD A,($9B52)
9E38 DEC A
9E39 JP Z,$9DB2
9E3C LD A,(HL)
9E3D LD (IX+$14),A
9E40 LD (IX+$01),A
9E43 CALL $AB06
9E46 EXX
9E47 POP IY
9E49 RET
9E4A NOP
9E4B LD BC,$0302
9E4E INC B
9E4F DEC B
9E50 LD B,$07
9E52 EX AF,AF'
9E53 ADD HL,BC
9E54 NOP
9E55 INC B
9E56 NOP
9E57 INC BC
9E58 LD BC,$0002
9E5B LD BC,$0302
9E5E INC B
9E5F DEC B
9E60 LD B,$02
9E62 LD BC,$0003
9E65 INC B
9E66 NOP
9E67 INC BC
9E68 LD BC,$0002
9E6B LD BC,$0302
9E6E INC B
9E6F DEC B
9E70 LD B,$07
9E72 EX AF,AF'
9E73 ADD HL,BC
9E74 NOP
9E75 INC B
9E76 NOP
9E77 INC BC
9E78 LD BC,$0002
9E7B LD BC,$0302
9E7E INC B
9E7F DEC B
9E80 LD B,$02
9E82 LD BC,$0003
9E85 INC B
9E86 NOP
9E87 INC BC
9E88 LD BC,$0002
9E8B LD BC,$0302
9E8E LD (BC),A
9E8F NOP
9E90 LD B,$07
9E92 EX AF,AF'
9E93 ADD HL,BC
9E94 NOP
9E95 INC BC
9E96 NOP
9E97 LD (BC),A
9E98 LD BC,$0003
9E9B LD BC,$0302
9E9E LD (BC),A
9E9F NOP
9EA0 LD B,$02
9EA2 LD BC,$0003
9EA5 INC BC
9EA6 NOP
9EA7 LD (BC),A
9EA8 LD BC,$3A03
9EAB JP PE,$FEB7
9EAE INC B
9EAF RET Z
9EB0 LD A,($9B68)
9EB3 CP $09
9EB5 RET Z
9EB6 LD A,($9B52)
9EB9 CP $09
9EBB RET Z
9EBC LD A,($B7E9)
9EBF CP $2C
9EC1 RET NC
9EC2 LD A,($9B96)
9EC5 AND A
9EC6 RET NZ
9EC7 LD HL,$9B96
9ECA CALL $9F37
9ECD LD IX,$9B96
9ED1 LD HL,$9F2B
9ED4 LD A,($B7EB)
9ED7 RRA
9ED8 JR NC,$9EDD
9EDA LD HL,$9F31
9EDD LD A,(HL)
9EDE LD (IX+$00),A
9EE1 LD (IX+$11),$00
9EE5 INC HL
9EE6 LD A,(HL)
9EE7 LD (IX+$12),A
9EEA INC HL
9EEB LD A,(HL)
9EEC LD (IX+$13),A
9EEF INC HL
9EF0 LD A,(HL)
9EF1 LD (IX+$0C),A
9EF4 INC HL
9EF5 LD A,(HL)
9EF6 LD (IX+$0D),A
9EF9 INC HL
9EFA LD A,(HL)
9EFB LD (IX+$07),A
9EFE LD (IX+$01),$00
9F02 LD (IX+$04),$00
9F06 LD A,($8D48)
9F09 LD HL,$9F27
9F0C AND $03
9F0E CALL PrintLine_9
9F11 LD A,(HL)
9F12 LD (IX+$02),A
9F15 LD (IX+$06),$10
9F19 LD (IX+$14),$10
9F1D LD HL,$0000
9F20 LD ($AA7B),HL
9F23 CALL $AB06
9F26 RET
9F27 LD B,B
9F28 XOR B
9F29 LD B,B
9F2A XOR B
9F2B ADD HL,BC
9F2C RET P
9F2D LD (HL),B
9F2E JR $9F3C
9F30 LD BC,$6008
9F33 SUB B
9F34 JR $9F46
9F36 LD BC,$1601
9F39 NOP
9F3A LD B,C
9F3B JP $8EDA
9F3E LD H,E
9F3F SBC A,A
9F40 LD A,(HL)
9F41 AND D
9F42 LD A,(HL)
9F43 AND D
9F44 LD E,D
9F45 AND L
9F46 AND E
9F47 AND L
9F48 SBC A,D
9F49 XOR B
9F4A JP NC,$02A8
9F4D XOR C
9F4E CP H
9F4F XOR C
9F50 JR NC,$9EFC
9F52 ADC A,L
9F53 AND L
9F54 LD HL,$9F3C
9F57 LD A,(IX+$00)
9F5A ADD A,A
9F5B CALL PrintLine_9
9F5E LD A,(HL)
9F5F INC HL
9F60 LD H,(HL)
9F61 LD L,A
9F62 JP (HL)
9F63 RET
This entry point is used by the routine at StartGame.
9F64 LD A,($9B70)
9F67 CP $1C
9F69 LD A,$00
9F6B JR Z,$9F6F
9F6D LD A,$05
9F6F LD ($5CD8),A
9F72 LD A,(IX+$02)
9F75 AND $80
9F77 LD ($9653),A
9F7A LD BC,($8ED9)
9F7E BIT 1,C
9F80 LD A,(IX+$02)
9F83 JR Z,$9F87
9F85 SUB $04
9F87 BIT 0,C
9F89 JR Z,$9F8D
9F8B ADD A,$04
9F8D LD (IX+$02),A
9F90 CALL $A4CF
9F93 LD A,(IX+$15)
9F96 CP $41
9F98 JP Z,$A063
9F9B CP $61
9F9D JP Z,$A063
9FA0 AND $C1
9FA2 CP $80
9FA4 JP Z,$A063
9FA7 CP $81
9FA9 JP Z,$A063
9FAC LD B,A
9FAD AND $40
9FAF JR NZ,$9FB8
9FB1 LD A,($A85F)
9FB4 RLA
9FB5 JP C,$A063
9FB8 LD (IX+$01),$02
9FBC LD (IX+$08),$03
9FC0 LD A,$01
9FC2 LD ($9B6A),A
9FC5 LD A,($8D46)
9FC8 LD E,A
9FC9 LD A,B
9FCA AND $40
9FCC JR NZ,$A006
9FCE BIT 0,E
9FD0 JR Z,$9FD5
9FD2 DEC (IX+$02)
9FD5 CALL $AC6C
9FD8 LD A,(IX+$15)
9FDB LD B,A
9FDC AND $1E
9FDE ADD A,(IX+$02)
9FE1 ADD A,$08
9FE3 LD ($9B6C),A
9FE6 RR E
9FE8 RET C
9FE9 INC (IX+$0C)
9FEC INC (IX+$0C)
9FEF LD A,B
9FF0 ADD A,$02
9FF2 OR $20
9FF4 CP $30
9FF6 JR Z,$9FFC
9FF8 LD (IX+$15),A
9FFB RET
9FFC LD (IX+$15),$81
A000 LD (IX+$0C),$2C
A004 JR $A03A
A006 BIT 0,E
A008 JR Z,$A00D
A00A INC (IX+$02)
A00D CALL $AC6C
A010 LD A,(IX+$15)
A013 AND $3E
A015 LD B,A
A016 ADD A,(IX+$02)
A019 ADD A,$08
A01B LD ($9B6C),A
A01E RR E
A020 RET C
A021 DEC (IX+$0C)
A024 DEC (IX+$0C)
A027 LD A,B
A028 SUB $02
A02A JR C,$A032
A02C OR $40
A02E LD (IX+$15),A
A031 RET
A032 LD (IX+$0C),$1C
A036 LD (IX+$15),$80
A03A LD A,($9B6A)
A03D OR $80
A03F LD ($9B6A),A
A042 LD A,(IX+$02)
A045 INC A
A046 AND $FC
A048 LD (IX+$02),A
A04B RRA
A04C RRA
A04D AND $01
A04F LD B,A
A050 LD A,(IX+$15)
A053 AND $01
A055 ADD A,A
A056 LD C,A
A057 ADD A,A
A058 ADD A,B
A059 LD (IX+$01),A
A05C LD A,$04
A05E ADD A,C
A05F LD (IX+$08),A
A062 RET
A063 CALL $ACA2
A066 CALL $ACBC
A069 LD A,($A85F)
A06C AND A
A06D JP Z,$A0E1
A070 EX AF,AF'
A071 CALL $ACBC
A074 EX AF,AF'
A075 BIT 6,A
A077 JR Z,$A0B2
A079 LD A,($8D46)
A07C RRA
A07D CALL C,$AAD2
A080 LD IY,($B793)
A084 LD DE,$01C8
A087 CALL Sounds_PlaySquareWave_Loop
A08A DI
A08B LD A,($A85F)
A08E RLA
A08F LD A,(IX+$01)
A092 JR NC,$A098
A094 AND A
A095 RET NZ
A096 JR $A09B
A098 SUB $0A
A09A RET NZ
A09B BIT 5,(IX+$15)
A09F JR Z,$A0A9
A0A1 LD ($A85F),A
A0A4 LD (IX+$15),$22
A0A8 RET
A0A9 LD (IX+$15),$80
A0AD LD ($A85F),A
A0B0 JR $A0E1
A0B2 RES 7,(IX+$15)
A0B6 SET 0,(IX+$15)
A0BA RES 1,(IX+$15)
A0BE SET 6,(IX+$15)
A0C2 RLA
A0C3 JR NC,$A0D3
A0C5 LD (IX+$01),$0C
A0C9 LD (IX+$13),$F0
A0CD LD A,$C0
A0CF LD ($A85F),A
A0D2 RET
A0D3 LD (IX+$13),$AA
A0D7 LD (IX+$01),$06
A0DB LD A,$41
A0DD LD ($A85F),A
A0E0 RET
A0E1 LD A,(IX+$02)
A0E4 RRA
A0E5 RRA
A0E6 AND $01
A0E8 LD B,A
A0E9 LD A,(IX+$15)
A0EC AND $01
A0EE ADD A,A
A0EF ADD A,A
A0F0 ADD A,B
A0F1 LD (IX+$01),A
A0F4 LD A,(IX+$14)
A0F7 DEC A
A0F8 RET NZ
A0F9 LD A,(IX+$01)
A0FC ADD A,$0A
A0FE LD (IX+$01),A
A101 LD A,($A160)
A104 SUB $02
A106 JR C,$A10C
A108 LD ($A160),A
A10B RET
A10C LD A,($8ED9)
A10F AND $10
A111 RET Z
A112 LD IY,$9B12
A116 LD A,($9B12)
A119 AND A
A11A JR Z,$A125
A11C LD IY,$9B28
A120 LD A,($9B28)
A123 AND A
A124 RET NZ
A125 LD (IY+$00),$05
A129 LD (IY+$01),$00
A12D LD (IY+$09),$08
A131 LD A,(IX+$02)
A134 ADD A,$0C
A136 LD (IY+$02),A
A139 LD (IY+$04),$AC
A13D LD (IY+$11),$00
A141 LD (IY+$15),$00
A145 LD A,($A160)
A148 CPL
A149 AND $01
A14B ADD A,$16
A14D LD ($A160),A
A150 PUSH IX
A152 CALL Sounds_FindEmptySlot
A155 LD (IX+$00),$0B
A159 LD (IX+$01),$02
A15D POP IX
A15F RET
A160 NOP
This entry point is used by the routine at StartGame.
A161 LD A,($B7E5)
A164 CP $02
A166 JP NZ,$A1DB
A169 LD A,($B7EF)
A16C AND A
A16D JP NZ,$A1DB
A170 LD A,($B7F7)
A173 AND A
A174 JP NZ,$A1DB
A177 LD C,A
A178 LD A,$FD
A17A IN A,($FE)
A17C CPL
A17D AND $0A
A17F JR Z,$A183
A181 SET 0,C
A183 LD A,$FD
A185 IN A,($FE)
A187 CPL
A188 AND $05
A18A JR Z,$A18E
A18C SET 1,C
A18E LD A,$FA
A190 IN A,($FE)
A192 CPL
A193 AND $1F
A195 JR Z,$A199
A197 SET 4,C
A199 LD A,C
A19A LD ($8ED9),A
A19D RET
This entry point is used by the routine at StartGame.
A19E AND A
A19F JR NZ,$A1DE
A1A1 LD A,($B7E5)
A1A4 CP $02
A1A6 LD A,($B7F7)
A1A9 JR NZ,$A1DE
A1AB LD A,($B7EF)
A1AE AND A
A1AF LD A,($B7F7)
A1B2 JR NZ,$A1DE
A1B4 LD C,A
A1B5 LD A,$BF
A1B7 IN A,($FE)
A1B9 CPL
A1BA AND $05
A1BC JR Z,$A1C0
A1BE SET 0,C
A1C0 LD A,$BF
A1C2 IN A,($FE)
A1C4 CPL
A1C5 AND $0A
A1C7 JR Z,$A1CB
A1C9 SET 1,C
A1CB LD A,$5F
A1CD IN A,($FE)
A1CF CPL
A1D0 AND $1F
A1D2 JR Z,$A1D6
A1D4 SET 4,C
A1D6 LD A,C
A1D7 LD ($8ED9),A
A1DA RET
This entry point is used by the routine at 910C.
A1DB LD A,($B7EF)
A1DE AND A
A1DF JP Z,$A238
A1E2 DEC A
A1E3 JP Z,$A1EC
A1E6 DEC A
A1E7 JP Z,$A210
A1EA JR $A1F4
A1EC IN A,($1F)
A1EE AND $1F
A1F0 LD C,A
A1F1 JP $A26B
A1F4 LD A,$EF
A1F6 IN A,($FE)
A1F8 LD B,$FF
A1FA RRA
A1FB RL B
A1FD RRA
A1FE RL B
A200 RRA
A201 RL B
A203 RRA
A204 RRA
A205 RL B
A207 RLA
A208 RL B
A20A LD A,B
A20B CPL
A20C LD C,A
A20D JP $A26B
A210 LD A,$EF
A212 IN A,($FE)
A214 OR $E0
A216 LD B,A
A217 AND $08
A219 LD C,A
A21A LD A,B
A21B RRCA
A21C RRCA
A21D LD B,A
A21E AND $05
A220 OR C
A221 LD C,A
A222 LD A,B
A223 RRA
A224 RRA
A225 AND $10
A227 OR C
A228 LD C,A
A229 LD A,$F7
A22B IN A,($FE)
A22D RRA
A22E RRA
A22F RRA
A230 AND $02
A232 OR C
A233 CPL
A234 LD C,A
A235 JP $A26B
A238 LD C,$00
A23A LD A,$FD
A23C IN A,($FE)
A23E AND $0A
A240 LD B,A
A241 LD A,$BF
A243 IN A,($FE)
A245 AND $15
A247 OR B
A248 XOR $1F
A24A JR Z,$A24E
A24C SET 0,C
A24E LD A,$FD
A250 IN A,($FE)
A252 AND $15
A254 LD B,A
A255 LD A,$BF
A257 IN A,($FE)
A259 AND $0A
A25B OR B
A25C XOR $1F
A25E JR Z,$A262
A260 SET 1,C
A262 LD A,$5A
A264 CALL $97A7
A267 JR Z,$A26B
A269 SET 4,C
A26B LD A,C
A26C LD ($8ED9),A
A26F RET
A270 NOP
A271 NOP
A272 NOP
A273 NOP
A274 NOP
A275 NOP
A276 NOP
A277 NOP
A278 NOP
A279 NOP
A27A NOP
A27B NOP
A27C NOP
A27D NOP
A27E LD A,(IX+$12)
A281 AND $80
A283 LD ($9653),A
A286 LD A,($5CDC)
A289 INC A
A28A LD ($5CDC),A
A28D LD ($A7A8),IX
A291 PUSH IX
A293 POP DE
A294 LD BC,$A270
A297 LD HL,$9AD0
A29A AND A
A29B SBC HL,DE
A29D JR Z,$A2AD
A29F LD BC,$A274
A2A2 LD HL,$9AE6
A2A5 AND A
A2A6 SBC HL,DE
A2A8 JR Z,$A2AD
A2AA LD BC,$A278
A2AD LD ($A27C),BC
A2B1 LD L,C
A2B2 LD H,B
A2B3 LD A,(HL)
A2B4 AND A
A2B5 JR Z,$A2BB
A2B7 DEC (HL)
A2B8 JP $A37F
A2BB INC HL
A2BC LD A,(HL)
A2BD AND A
A2BE JR Z,$A328
A2C0 ADD A,(IX+$06)
A2C3 AND $3F
A2C5 LD (IX+$06),A
A2C8 INC HL
A2C9 LD B,A
A2CA ADD A,$02
A2CC AND $3C
A2CE LD (HL),A
A2CF AND $0F
A2D1 JR NZ,$A2E2
A2D3 LD A,B
A2D4 AND $0C
A2D6 LD A,(HL)
A2D7 JR NZ,$A2DD
A2D9 ADD A,$04
A2DB JR $A2DF
A2DD SUB $04
A2DF AND $3F
A2E1 LD (HL),A
A2E2 LD C,(HL)
A2E3 INC HL
A2E4 LD A,(HL)
A2E5 EXX
A2E6 LD HL,$8DB8
A2E9 CALL PrintLine_9
A2EC PUSH HL
A2ED POP IY
A2EF BIT 0,(IY+$01)
A2F3 JR NZ,$A319
A2F5 CALL $AC22
A2F8 JR NC,$A319
A2FA EXX
A2FB PUSH BC
A2FC CALL $AD69
A2FF CALL $AC6C
A302 LD E,(IX+$06)
A305 POP BC
A306 PUSH DE
A307 LD (IX+$06),C
A30A PUSH BC
A30B CALL $A4A0
A30E POP BC
A30F LD A,(IX+$06)
A312 CP C
A313 POP DE
A314 RET NZ
A315 LD (IX+$06),E
A318 RET
A319 LD HL,($A27C)
A31C LD (HL),$02
A31E INC HL
A31F LD (HL),$00
A321 EXX
A322 LD (IX+$06),C
A325 JP $A490
A328 LD A,($8DB7)
A32B AND A
A32C JP Z,$A37F
A32F LD B,A
A330 LD IY,$8DB8
A334 BIT 0,(IY+$01)
A338 JR NZ,$A341
A33A PUSH BC
A33B CALL $AC22
A33E POP BC
A33F JR C,$A34A
A341 LD DE,$0010
A344 ADD IY,DE
A346 DJNZ $A334
A348 JR $A37F
A34A PUSH IY
A34C POP HL
A34D LD DE,$8DB8
A350 AND A
A351 SBC HL,DE
A353 LD E,L
A354 LD HL,($A27C)
A357 LD (HL),$00
A359 INC HL
A35A LD B,$00
A35C LD A,(IX+$06)
A35F ADD A,$10
A361 AND $3F
A363 CP $20
A365 JR C,$A369
A367 LD B,$FE
A369 LD C,$FF
A36B LD A,(IY+$04)
A36E ADD A,$04
A370 CP (IX+$04)
A373 JR C,$A379
A375 LD A,B
A376 XOR $FE
A378 LD B,A
A379 LD A,C
A37A XOR B
A37B LD (HL),A
A37C INC HL
A37D INC HL
A37E LD (HL),E
A37F LD A,(IX+$14)
A382 AND A
A383 JP Z,$A441
A386 DEC A
A387 LD (IX+$14),A
A38A JR Z,$A3CE
A38C LD A,($B7E5)
A38F CP $02
A391 JR NZ,$A3A7
A393 LD A,(IX+$02)
A396 CP $88
A398 JR NC,$A417
A39A CP $80
A39C JR C,$A3A7
A39E LD A,(IX+$15)
A3A1 AND $7F
A3A3 CP $0A
A3A5 JR C,$A417
A3A7 LD A,($8ED9)
A3AA AND $10
A3AC JR NZ,$A3CE
A3AE LD A,($9B68)
A3B1 AND $7F
A3B3 CP $03
A3B5 JR NZ,$A3CE
A3B7 LD A,($9B56)
A3BA LD B,A
A3BB LD A,(IX+$15)
A3BE AND $7F
A3C0 ADD A,B
A3C1 LD (IX+$02),A
A3C4 LD (IX+$04),$A7
A3C8 CALL $AC6C
A3CB JP $A4A9
A3CE LD (IX+$14),$00
A3D2 LD (IX+$04),$A9
A3D6 LD A,($9B68)
A3D9 RLA
A3DA JR NC,$A3E1
A3DC LD A,$FF
A3DE LD ($9B68),A
A3E1 LD A,(IX+$15)
A3E4 AND $7F
A3E6 ADD A,$24
A3E8 CP $30
A3EA JR NZ,$A3EE
A3EC LD A,$34
A3EE LD (IX+$06),A
A3F1 LD A,(IX+$15)
A3F4 AND $80
A3F6 LD (IX+$15),A
A3F9 LD (IX+$04),$A6
A3FD LD A,(IX+$12)
A400 AND $80
A402 LD (IX+$12),A
A405 PUSH IX
A407 CALL Sounds_FindEmptySlot
A40A LD (IX+$00),$04
A40E LD (IX+$01),$02
A412 POP IX
A414 JP $A4A9
A417 LD A,($B972)
A41A AND $10
A41C JR NZ,$A42C
A41E LD A,($9B52)
A421 AND $7F
A423 CP $03
A425 JR NZ,$A42C
A427 LD A,($9B40)
A42A JR $A3BA
A42C LD (IX+$14),$00
A430 LD (IX+$04),$A9
A434 LD A,($9B52)
A437 RLA
A438 JR NC,$A3E1
A43A LD A,$FF
A43C LD ($9B52),A
A43F JR $A3E1
A441 LD A,($8D46)
A444 LD C,A
A445 AND $03
A447 JR NZ,$A490
A449 LD A,(IX+$12)
A44C INC A
A44D LD (IX+$12),A
A450 AND $7F
A452 CP $7F
A454 JR NZ,$A473
A456 LD A,(IX+$12)
A459 AND $80
A45B LD (IX+$12),A
A45E LD A,(IX+$06)
A461 ADD A,$04
A463 AND $0F
A465 JR NZ,$A469
A467 LD A,$04
A469 LD B,A
A46A LD A,(IX+$06)
A46D AND $30
A46F OR B
A470 LD (IX+$06),A
A473 LD A,C
A474 AND $07
A476 JR NZ,$A490
A478 INC (IX+$13)
A47B LD A,(IX+$13)
A47E SUB $94
A480 JR NZ,$A490
A482 LD (IX+$13),A
A485 LD A,(IX+$07)
A488 CP $06
A48A JR Z,$A490
A48C INC A
A48D LD (IX+$07),A
A490 CALL $AD69
A493 LD E,(IX+$06)
A496 CALL $AC75
A499 LD A,(IX+$06)
A49C CP E
A49D CALL NZ,$AB13
A4A0 CALL $AB1F
A4A3 CALL $AFFC
A4A6 CALL $A4CF
A4A9 SET 7,(IX+$15)
A4AD LD A,(IX+$02)
A4B0 AND $07
A4B2 LD (IX+$01),A
A4B5 LD A,(IX+$04)
A4B8 CP $C0
A4BA RET C
A4BB LD HL,($A27C)
A4BE LD (HL),$00
A4C0 INC HL
A4C1 LD (HL),$00
A4C3 SET 7,(IX+$00)
A4C7 LD A,($5CD9)
A4CA DEC A
A4CB LD ($5CD9),A
A4CE RET
A4CF LD A,($9B96)
A4D2 AND $7F
A4D4 RET Z
A4D5 CP $0A
A4D7 RET Z
A4D8 LD IY,$9B96
A4DC CALL $AC45
A4DF RET NC
A4E0 LD (IY+$00),$0A
A4E4 LD (IY+$01),$00
A4E8 LD (IY+$12),$50
A4EC LD (IY+$13),$90
A4F0 LD A,(IY+$08)
A4F3 SUB $02
A4F5 ADD A,A
A4F6 ADD A,A
A4F7 ADD A,(IY+$02)
A4FA LD (IY+$02),A
A4FD LD (IY+$08),$02
A501 LD (IY+$09),$0D
A505 LD A,(IY+$04)
A508 ADD A,$04
A50A LD (IY+$04),A
A50D LD A,(IX+$00)
A510 AND $7F
A512 CP $02
A514 JR NZ,$A541
A516 LD A,(IX+$06)
A519 AND $10
A51B LD DE,$1030
A51E JR Z,$A523
A520 LD DE,$0020
A523 LD A,($8D49)
A526 LD B,A
A527 RLA
A528 JR C,$A52B
A52A LD E,D
A52B LD A,B
A52C AND $0C
A52E JR NZ,$A535
A530 LD A,(IX+$06)
A533 AND $0C
A535 OR E
A536 LD (IX+$06),A
A539 LD A,(IX+$12)
A53C AND $80
A53E LD (IX+$12),A
A541 PUSH IX
A543 LD IX,$C0CD
A547 LD (IX+$00),$06
A54B LD (IX+$01),$30
A54F POP IX
A551 LD BC,$0350
A554 JP $965D
A557 NOP
A558 NOP
A559 NOP
A55A LD A,(IX+$04)
A55D CP $A0
A55F CALL NC,$A67B
A562 LD DE,$0008
A565 LD B,$02
A567 LD HL,($A557)
A56A ADD HL,DE
A56B LD A,H
A56C CP B
A56D JR NZ,$A572
A56F LD H,B
A570 LD L,$00
A572 LD ($A557),HL
A575 LD D,(IX+$04)
A578 LD A,($A559)
A57B LD E,A
A57C ADD HL,DE
A57D LD (IX+$04),H
A580 LD A,L
A581 LD ($A559),A
A584 LD A,H
A585 CP $C0
A587 RET C
A588 SET 7,(IX+$00)
A58C RET
A58D LD A,(IX+$02)
A590 ADD A,$00
A592 LD (IX+$02),A
A595 CALL $ACA2
A598 CALL $ACBC
A59B LD DE,$0028
A59E LD B,$80
A5A0 JP $A567
A5A3 LD A,(IX+$02)
A5A6 AND $80
A5A8 LD ($9653),A
A5AB LD A,($5CDC)
A5AE INC A
A5AF LD ($5CDC),A
A5B2 LD A,(IX+$01)
A5B5 CP $02
A5B7 JR NC,$A5CE
A5B9 XOR $01
A5BB LD (IX+$01),A
A5BE LD A,(IX+$04)
A5C1 SUB $06
A5C3 LD (IX+$04),A
A5C6 JR C,$A5DE
A5C8 CP $03
A5CA JR NC,$A5EB
A5CC JR $A5DE
A5CE LD A,(IX+$02)
A5D1 AND $F8
A5D3 LD (IX+$02),A
A5D6 CALL $AAD2
A5D9 LD A,(IX+$01)
A5DC AND A
A5DD RET NZ
A5DE SET 7,(IX+$00)
A5E2 LD A,($A160)
A5E5 AND $01
A5E7 LD ($A160),A
A5EA RET
A5EB CALL $AFFC
A5EE LD A,($9B96)
A5F1 AND $7F
A5F3 RET Z
A5F4 CP $0A
A5F6 RET Z
A5F7 LD IY,$9B96
A5FB CALL $AC45
A5FE RET NC
A5FF LD (IY+$00),$0A
A603 LD (IY+$01),$00
A607 LD (IY+$12),$50
A60B LD (IY+$13),$90
A60F LD A,(IY+$08)
A612 SUB $02
A614 ADD A,A
A615 ADD A,A
A616 ADD A,(IY+$02)
A619 LD (IY+$02),A
A61C LD (IY+$08),$02
A620 LD (IY+$09),$0D
A624 LD A,(IY+$04)
A627 ADD A,$04
A629 LD (IY+$04),A
A62C LD (IX+$01),$02
A630 LD (IX+$09),$06
A634 LD (IX+$12),$50
A638 LD (IX+$13),$50
A63C LD A,(IX+$02)
A63F AND $F8
A641 LD (IX+$02),A
A644 PUSH IX
A646 LD IX,$C0CD
A64A LD (IX+$00),$06
A64E LD (IX+$01),$30
A652 POP IX
A654 LD BC,$0350
A657 JP $965D
A65A NOP
A65B PUSH IX
A65D CALL Sounds_FindEmptySlot
A660 LD (IX+$00),$0C
A664 LD (IX+$01),$02
A668 POP IX
A66A RET
A66B NOP
This entry point is used by the routine at StartGame.
A66C LD A,($A66B)
A66F LD B,A
A670 LD A,($A85F)
A673 LD ($A66B),A
A676 LD A,B
A677 LD ($A85F),A
A67A RET
A67B CP $B0
A67D RET NC
A67E LD IY,$9B54
A682 CALL $AC45
A685 JR C,$A69E
A687 LD A,($B7E5)
A68A CP $02
A68C RET NZ
A68D LD IY,$9B3E
A691 CALL $AC22
A694 RET NC
A695 CALL $A66C
A698 CALL $A69E
A69B JP $A66C
A69E LD A,(IX+$01)
A6A1 SUB $0A
A6A3 JR NZ,$A6A9
A6A5 LD ($5CD9),A
A6A8 RET
A6A9 LD A,(IY+$02)
A6AC AND $80
A6AE LD ($9653),A
A6B1 XOR A
A6B2 LD ($A65A),A
A6B5 LD BC,$0400
A6B8 CALL $965D
A6BB LD A,(IX+$14)
A6BE CP $05
A6C0 CALL NZ,$A65B
A6C3 DEC (IY+$14)
A6C6 JR NZ,$A6CD
A6C8 LD A,$80
A6CA LD ($A85F),A
A6CD LD A,($8D46)
A6D0 AND $01
A6D2 INC A
A6D3 NEG
A6D5 LD ($A558),A
A6D8 XOR A
A6D9 LD ($A557),A
A6DC LD A,($8D48)
A6DF LD B,A
A6E0 AND $01
A6E2 INC A
A6E3 RL B
A6E5 JR C,$A6E9
A6E7 NEG
A6E9 LD ($A591),A
A6EC LD (IX+$00),$0B
A6F0 LD (IX+$01),$00
A6F4 CALL $AB06
A6F7 LD A,(IX+$14)
A6FA CP $06
A6FC JP Z,$AA9D
A6FF LD (IY+$14),A
A702 LD A,(IY+$14)
A705 CP $01
A707 JR NZ,$A70E
A709 LD ($A85F),A
A70C LD A,$01
A70E AND A
A70F JP Z,$A834
A712 PUSH AF
A713 LD A,(IY+$0C)
A716 CP $22
A718 JR C,$A73D
A71A XOR A
A71B LD ($9B7B),A
A71E LD (IY+$15),$4E
A722 LD (IY+$01),$04
A726 PUSH IX
A728 CALL Sounds_FindEmptySlot
A72B LD (IX+$00),$0A
A72F LD (IX+$01),$10
A733 POP IX
A735 LD A,($8D46)
A738 AND $FE
A73A LD ($8D46),A
A73D POP AF
A73E CP $08
A740 JR NZ,$A748
A742 LD BC,$5000
A745 JP $965D
A748 CP $09
A74A JR NZ,$A765
A74C LD A,($9B96)
A74F AND $7F
A751 RET Z
A752 CP $0A
A754 RET Z
A755 PUSH IX
A757 LD IX,$A748
A75B LD IY,$9B96
A75F CALL $A4E0
A762 POP IX
A764 RET
A765 CP $05
A767 JP Z,$A860
A76A CP $04
A76C JR NZ,$A79A
A76E LD (IY+$14),$FF
A772 LD A,$02
A774 LD ($9AD7),A
A777 LD ($9AED),A
A77A LD ($9B03),A
A77D LD HL,($8D48)
A780 LD A,L
A781 AND $1F
A783 ADD A,$1F
A785 LD ($9AE3),A
A788 LD A,H
A789 AND $1F
A78B ADD A,$1F
A78D LD ($9AF9),A
A790 LD A,H
A791 ADD A,L
A792 AND $1F
A794 ADD A,$1F
A796 LD ($9B0F),A
A799 RET
A79A CP $02
A79C RET NZ
A79D LD A,$03
A79F LD ($5CD9),A
A7A2 LD (IY+$14),$FF
A7A6 LD IY,$0000
A7AA LD L,(IY+$02)
A7AD LD H,(IY+$04)
A7B0 LD A,(IY+$06)
A7B3 AND $0F
A7B5 LD DE,$080C
A7B8 CP $04
A7BA JR Z,$A7C6
A7BC LD DE,$040C
A7BF CP $08
A7C1 JR Z,$A7C6
A7C3 LD DE,$0408
A7C6 LD A,(IY+$06)
A7C9 AND $30
A7CB OR E
A7CC LD ($A809),A
A7CF LD A,(IY+$06)
A7D2 AND $30
A7D4 OR D
A7D5 LD ($A832),A
A7D8 LD D,(IY+$07)
A7DB LD C,(IY+$00)
A7DE LD B,(IY+$01)
A7E1 LD IY,$9AD0
A7E5 LD A,($9AD0)
A7E8 AND A
A7E9 JR Z,$A7EF
A7EB LD IY,$9AE6
A7EF LD (IY+$02),L
A7F2 LD (IY+$04),H
A7F5 LD (IY+$00),$02
A7F9 LD (IY+$11),$00
A7FD LD (IY+$07),D
A800 LD (IY+$00),C
A803 LD (IY+$01),B
A806 LD (IY+$06),$00
A80A LD IY,$9AE6
A80E LD A,($9AE6)
A811 AND A
A812 JR Z,$A818
A814 LD IY,$9AFC
A818 LD (IY+$02),L
A81B LD (IY+$04),H
A81E LD (IY+$00),$02
A822 LD (IY+$11),$00
A826 LD (IY+$07),D
A829 LD (IY+$00),C
A82C LD (IY+$01),B
A82F LD (IY+$06),$00
A833 RET
A834 XOR A
A835 LD ($9B7B),A
A838 LD (IY+$15),$20
A83C LD A,($A85F)
A83F AND A
A840 JR Z,$A844
A842 LD A,$0A
A844 LD (IY+$01),A
A847 PUSH IX
A849 CALL Sounds_FindEmptySlot
A84C LD (IX+$00),$09
A850 LD (IX+$01),$C0
A854 POP IX
A856 LD A,($8D46)
A859 AND $FE
A85B LD ($8D46),A
A85E RET
A85F NOP
A860 PUSH IX
A862 LD IX,$9BC2
A866 CALL $B684
A869 CALL $9910
A86C CALL $9C25
A86F LD (IX+$11),$00
A873 LD A,(IX+$02)
A876 ADD A,$10
A878 CP $E9
A87A JR NC,$A87F
A87C LD (IX+$02),A
A87F CALL Sounds_FindEmptySlot
A882 LD (IX+$00),$07
A886 LD (IX+$01),$20
A88A POP IX
A88C LD A,$01
A88E LD ($A899),A
A891 LD A,($B7E8)
A894 INC A
A895 LD ($B7E8),A
A898 RET
A899 NOP
A89A LD A,($8D46)
A89D AND $01
A89F LD (IX+$01),A
A8A2 CALL $AB06
A8A5 LD HL,($A8CF)
A8A8 LD DE,$FFE0
A8AB ADD HL,DE
A8AC LD A,($8D46)
A8AF CP $38
A8B1 JR C,$A8B6
A8B3 LD ($A8CF),HL
A8B6 LD A,($A8D1)
A8B9 LD E,A
A8BA LD D,(IX+$04)
A8BD ADD HL,DE
A8BE LD A,L
A8BF LD ($A8D1),A
A8C2 LD A,H
A8C3 LD (IX+$04),A
A8C6 SUB $06
A8C8 LD ($9B58),A
A8CB LD ($9B42),A
A8CE RET
A8CF NOP
A8D0 NOP
A8D1 NOP
A8D2 CALL $AD69
A8D5 LD A,(IX+$04)
A8D8 CP $C0
A8DA JR NC,$A8FD
A8DC CALL $AC75
A8DF DEC (IX+$15)
A8E2 RET NZ
A8E3 LD A,(IX+$01)
A8E6 CP $04
A8E8 JR Z,$A8FD
A8EA INC (IX+$01)
A8ED CALL $AB06
A8F0 LD A,(IX+$14)
A8F3 SRL A
A8F5 LD (IX+$14),A
A8F8 INC A
A8F9 LD (IX+$15),A
A8FC RET
A8FD SET 7,(IX+$00)
A901 RET
A902 LD A,(IX+$04)
A905 CP $08
A907 JR NC,$A90D
A909 INC (IX+$04)
A90C RET
A90D CALL $A977
A910 LD HL,($AA7B)
A913 LD A,H
A914 AND A
A915 JR Z,$A91C
A917 CALL $AA44
A91A JR $A92F
A91C LD B,$01
A91E LD A,($8D46)
A921 AND $03
A923 CALL Z,$AA7D
A926 CALL $AD69
A929 CALL $AFFC
A92C CALL $AC6C
A92F LD A,(IX+$04)
A932 CP $C0
A934 JR C,$A93B
A936 SET 7,(IX+$00)
A93A RET
A93B LD A,($8D46)
A93E AND $00
A940 CALL Z,$AAD2
A943 LD A,($5CDB)
A946 AND A
A947 JP NZ,$AA94
A94A RET
A94B AND $04
A94D LD C,A
A94E LD A,(IX+$06)
A951 ADD A,$10
A953 AND $3F
A955 CP $20
A957 JR NC,$A95B
A959 INC C
A95A INC C
A95B LD B,$00
A95D LD HL,$A96F
A960 ADD HL,BC
A961 LD A,(HL)
A962 LD (IX+$01),A
A965 INC HL
A966 LD A,(HL)
A967 LD (IX+$13),A
A96A LD (IX+$12),$F0
A96E RET
A96F LD BC,$0544
A972 ADD A,H
A973 DEC C
A974 RET P
A975 ADD HL,BC
A976 RET NZ
A977 LD A,($9B80)
A97A AND A
A97B RET NZ
A97C LD A,($8D48)
A97F LD B,A
A980 LD A,($8D49)
A983 ADD A,B
A984 AND $3F
A986 RET NZ
A987 LD ($9B91),A
A98A LD A,(IX+$04)
A98D ADD A,$08
A98F CP $C0
A991 RET NC
A992 LD ($9B84),A
A995 LD A,$04
A997 LD ($9B80),A
A99A LD A,(IX+$02)
A99D ADD A,$08
A99F LD ($9B82),A
A9A2 LD A,$0A
A9A4 LD ($9B81),A
A9A7 LD A,$08
A9A9 LD ($9B8C),A
A9AC LD ($9B8D),A
A9AF LD HL,$1002
A9B2 LD ($9B88),HL
A9B5 LD HL,$0000
A9B8 LD ($A557),HL
A9BB RET
A9BC LD A,(IX+$04)
A9BF CP $08
A9C1 JR NC,$A9C7
A9C3 INC (IX+$04)
A9C6 RET
A9C7 CALL $A977
A9CA LD A,(IX+$06)
A9CD SUB $10
A9CF AND $3F
A9D1 LD ($AA03),A
A9D4 LD HL,($AA7B)
A9D7 LD A,H
A9D8 AND A
A9D9 JR Z,$A9E0
A9DB CALL $AA44
A9DE JR $A9F3
A9E0 LD B,$01
A9E2 LD A,($8D46)
A9E5 AND $03
A9E7 CALL Z,$AA7D
A9EA CALL $AD69
A9ED CALL $AFFC
A9F0 CALL $AC6C
A9F3 LD A,(IX+$04)
A9F6 CP $C0
A9F8 JR C,$A9FF
A9FA SET 7,(IX+$00)
A9FE RET
A9FF CALL $AAD2
AA02 LD C,$00
AA04 LD A,(IX+$06)
AA07 SUB $10
AA09 AND $3F
AA0B XOR C
AA0C AND $20
AA0E JR Z,$AA28
AA10 LD A,(IX+$13)
AA13 LD (IX+$13),A
AA16 BIT 5,C
AA18 JR Z,$AA21
AA1A LD A,$0E
AA1C SUB (IX+$01)
AA1F JR $AA28
AA21 LD A,(IX+$01)
AA24 XOR $07
AA26 ADD A,$07
AA28 LD A,($5CDB)
AA2B AND A
AA2C JP NZ,$AA94
AA2F RET
AA30 LD (IX+$13),$90
AA34 CALL $AAD2
AA37 LD A,(IX+$01)
AA3A AND $3F
AA3C CP $09
AA3E RET NZ
AA3F SET 7,(IX+$00)
AA43 RET
AA44 LD A,L
AA45 CP $10
AA47 JR NC,$AA4E
AA49 LD L,$10
AA4B LD ($AA7B),HL
AA4E LD A,(IX+$02)
AA51 CP L
AA52 JR Z,$AA5F
AA54 JR C,$AA5C
AA56 DEC (IX+$02)
AA59 DEC (IX+$02)
AA5C INC (IX+$02)
AA5F LD A,(IX+$04)
AA62 CP H
AA63 JR Z,$AA6F
AA65 JR C,$AA6B
AA67 DEC (IX+$04)
AA6A RET
AA6B INC (IX+$04)
AA6E RET
AA6F LD A,(IX+$02)
AA72 CP L
AA73 RET NZ
AA74 LD HL,$0000
AA77 LD ($AA7B),HL
AA7A RET
AA7B NOP
AA7C NOP
AA7D LD A,(IX+$06)
AA80 LD L,A
AA81 SUB (IX+$14)
AA84 JR Z,$AA94
AA86 BIT 5,A
AA88 LD A,B
AA89 JR NZ,$AA8D
AA8B NEG
AA8D ADD A,L
AA8E AND $3F
AA90 LD (IX+$06),A
AA93 RET
AA94 LD A,($8D48)
AA97 AND $3F
AA99 LD (IX+$14),A
AA9C RET
AA9D LD A,$06
AA9F LD ($9BAC),A
AAA2 XOR A
AAA3 LD ($9BBD),A
AAA6 LD ($BB84),IY
AAAA LD A,(IY+$0C)
AAAD CP $1C
AAAF LD A,$04
AAB1 JR Z,$AAB5
AAB3 LD A,$0C
AAB5 ADD A,(IY+$02)
AAB8 LD ($9BAE),A
AABB LD A,(IY+$04)
AABE ADD A,$06
AAC0 LD ($9BB0),A
AAC3 LD A,$1B
AAC5 LD ($891D),A
AAC8 LD HL,$0000
AACB LD ($A8CF),HL
AACE INC (IY+$14)
AAD1 RET
AAD2 LD A,(IX+$12)
AAD5 LD B,A
AAD6 SUB $40
AAD8 JR NC,$AB02
AADA LD A,(IX+$01)
AADD AND $3F
AADF INC A
AAE0 LD E,A
AAE1 LD A,(IX+$13)
AAE4 LD D,A
AAE5 RRCA
AAE6 RRCA
AAE7 RRCA
AAE8 RRCA
AAE9 AND $0F
AAEB CP E
AAEC JR NC,$AAF2
AAEE LD A,D
AAEF AND $0F
AAF1 LD E,A
AAF2 LD (IX+$01),E
AAF5 LD A,B
AAF6 ADD A,A
AAF7 ADD A,A
AAF8 AND $C0
AAFA OR (IX+$12)
AAFD EX AF,AF'
AAFE CALL $AB06
AB01 EX AF,AF'
AB02 LD (IX+$12),A
AB05 RET
AB06 CALL $7767
AB09 LD A,(DE)
AB0A LD (IX+$08),A
AB0D INC DE
AB0E LD A,(DE)
AB0F LD (IX+$09),A
AB12 RET
AB13 PUSH IX
AB15 CALL Sounds_FindEmptySlot
AB18 LD (IX+$00),$03
AB1C POP IX
AB1E RET
AB1F LD A,(IX+$04)
AB22 CP $98
AB24 RET C
AB25 LD A,(IX+$0F)
AB28 CP $AA
AB2A RET NC
AB2B LD IY,$9B54
AB2F CALL $AC22
AB32 JR C,$AB42
AB34 LD A,($B7E5)
AB37 CP $02
AB39 RET NZ
AB3A LD IY,$9B3E
AB3E CALL $AC22
AB41 RET NC
AB42 RES 7,(IX+$12)
AB46 BIT 7,(IY+$02)
AB4A JR Z,$AB50
AB4C SET 7,(IX+$12)
AB50 CALL $AB13
AB53 LD A,(IY+$14)
AB56 CP $03
AB58 JR NZ,$AB85
AB5A LD A,(IY+$0C)
AB5D CP $1C
AB5F JR NZ,$AB85
AB61 LD A,(IX+$02)
AB64 SUB (IY+$02)
AB67 JR NC,$AB6A
AB69 XOR A
AB6A AND $FC
AB6C CP $19
AB6E JR C,$AB72
AB70 LD A,$18
AB72 LD B,A
AB73 LD A,(IX+$15)
AB76 AND $80
AB78 OR B
AB79 LD (IX+$15),A
AB7C LD (IX+$14),$B0
AB80 LD (IX+$04),$A7
AB84 RET
AB85 LD (IX+$04),$A6
AB89 LD A,(IX+$12)
AB8C AND $80
AB8E LD (IX+$12),A
AB91 LD A,(IY+$0C)
AB94 LD HL,$ABEE
AB97 CP $1C
AB99 JR Z,$AB9E
AB9B LD HL,$ABFC
AB9E LD A,(IX+$02)
ABA1 ADD A,$03
ABA3 SUB (IY+$02)
ABA6 JR C,$ABAF
ABA8 CP (HL)
ABA9 JR C,$ABAF
ABAB INC HL
ABAC INC HL
ABAD JR $ABA8
ABAF INC HL
ABB0 LD A,(HL)
ABB1 BIT 2,A
ABB3 JR NZ,$ABB8
ABB5 JP $ABCB
ABB8 CALL $ABBF
ABBB LD A,(HL)
ABBC CALL $ABCB
ABBF LD A,(IX+$06)
ABC2 XOR $1F
ABC4 INC A
ABC5 AND $3F
ABC7 LD (IX+$06),A
ABCA RET
ABCB AND $03
ABCD ADD A,A
ABCE LD B,A
ABCF ADD A,A
ABD0 ADD A,B
ABD1 LD HL,$AC0A
ABD4 CALL PrintLine_9
ABD7 LD A,$04
ABD9 CP (IX+$06)
ABDC JR Z,$ABE9
ABDE INC HL
ABDF ADD A,$04
ABE1 CP $10
ABE3 JR NZ,$ABD9
ABE5 ADD A,$04
ABE7 JR $ABD9
ABE9 LD A,(HL)
ABEA LD (IX+$06),A
ABED RET
ABEE INC B
ABEF RLCA
ABF0 EX AF,AF'
ABF1 LD B,$0C
ABF3 DEC B
ABF4 DJNZ $ABF6
ABF6 INC D
ABF7 LD BC,$0218
ABFA RST $38
ABFB INC BC
ABFC LD B,$07
ABFE INC C
ABFF LD B,$12
AC01 DEC B
AC02 LD A,(DE)
AC03 NOP
AC04 JR NZ,$AC07
AC06 LD H,$02
AC08 RST $38
AC09 INC BC
AC0A INC A
AC0B JR C,$AC41
AC0D INC L
AC0E JR Z,$AC34
AC10 INC A
AC11 JR C,$AC47
AC13 INC (HL)
AC14 INC (HL)
AC15 INC (HL)
AC16 INC A
AC17 JR C,$AC51
AC19 INC (HL)
AC1A JR C,$AC54
AC1C INC A
AC1D INC A
AC1E JR C,$AC58
AC20 INC A
AC21 INC A
AC22 LD L,(IX+$02)
AC25 LD A,(IY+$02)
AC28 LD C,(IX+$0C)
AC2B LD B,(IY+$0C)
AC2E CALL $AC3E
AC31 RET NC
AC32 LD L,(IX+$04)
AC35 LD A,(IY+$04)
AC38 LD C,(IX+$0D)
AC3B LD B,(IY+$0D)
AC3E SUB L
AC3F JR C,$AC43
AC41 SUB C
AC42 RET
AC43 ADD A,B
AC44 RET
AC45 LD L,(IX+$02)
AC48 LD A,(IY+$02)
AC4B LD C,(IX+$0C)
AC4E LD B,(IY+$0C)
AC51 CALL $AC61
AC54 RET NC
AC55 LD L,(IX+$04)
AC58 LD A,(IY+$04)
AC5B LD C,(IX+$0D)
AC5E LD B,(IY+$0D)
AC61 SUB L
AC62 JR C,$AC68
AC64 DEC C
AC65 DEC C
AC66 SUB C
AC67 RET
AC68 DEC B
AC69 DEC B
AC6A ADD A,B
AC6B RET
AC6C CALL $AC97
AC6F CALL $ACA2
AC72 JP $ACBC
AC75 LD B,$3F
AC77 CALL $AC97
AC7A CALL C,$ACEE
AC7D LD B,$1F
AC7F CALL $ACA2
AC82 CALL C,$ACEE
AC85 CALL $ACBC
AC88 RET C
AC89 JP $ACEE
AC8C LD A,(IX+$04)
AC8F CP $AF
AC91 RET C
AC92 LD (IX+$04),$AF
AC96 RET
AC97 LD A,(IX+$04)
AC9A CP $08
AC9C RET NC
AC9D LD (IX+$04),$08
ACA1 RET
ACA2 LD A,(IX+$02)
ACA5 CP $08
ACA7 RET NC
ACA8 LD (IX+$02),$08
ACAC RET
This entry point is used by the routine at StartGame.
ACAD LD A,(IX+$02)
ACB0 CP $80
ACB2 RET NC
ACB3 LD (IX+$02),$80
ACB7 RES 0,(IX+$01)
ACBB RET
ACBC LD A,(IX+$0C)
ACBF ADD A,(IX+$02)
ACC2 CP $F9
ACC4 RET C
ACC5 LD A,$F8
ACC7 SUB (IX+$0C)
ACCA LD (IX+$02),A
ACCD RET
This entry point is used by the routine at StartGame.
ACCE LD A,(IX+$0C)
ACD1 ADD A,(IX+$02)
ACD4 CP $80
ACD6 RET C
ACD7 LD A,$80
ACD9 SUB (IX+$0C)
ACDC LD (IX+$02),A
ACDF LD A,(IX+$0C)
ACE2 CP $1C
ACE4 JR Z,$ACE9
ACE6 CP $2C
ACE8 RET NZ
ACE9 SET 0,(IX+$01)
ACED RET
ACEE LD A,(IX+$06)
ACF1 XOR B
ACF2 INC A
ACF3 AND $3F
ACF5 LD (IX+$06),A
ACF8 RET
ACF9 LD H,$00
ACFB LD B,H
ACFC LD L,H
ACFD LD D,(IX+$07)
AD00 LD A,$08
AD02 JR $AD0A
AD04 DEC A
AD05 RET Z
AD06 SLA C
AD08 RL B
AD0A SRL D
AD0C JR NC,$AD04
AD0E ADD HL,BC
AD0F JP NZ,$AD04
AD12 RET
AD13 PUSH BC
AD14 CALL $ACF9
AD17 POP BC
AD18 INC B
AD19 RET NZ
AD1A LD A,L
AD1B CPL
AD1C LD L,A
AD1D LD A,H
AD1E CPL
AD1F LD H,A
AD20 INC HL
AD21 RET
AD22 LD HL,$AD58
AD25 LD A,(IX+$06)
AD28 AND $0F
AD2A LD B,A
AD2B CALL PrintLine_9
AD2E LD C,(HL)
AD2F LD A,B
AD30 XOR $0F
AD32 INC A
AD33 LD HL,$AD58
AD36 CALL PrintLine_9
AD39 LD L,(HL)
AD3A LD H,$00
AD3C LD B,H
AD3D LD A,(IX+$06)
AD40 AND $30
AD42 RET Z
AD43 CP $10
AD45 JR NZ,$AD4C
AD47 LD A,L
AD48 LD L,C
AD49 LD C,A
AD4A DEC B
AD4B RET
AD4C CP $20
AD4E JR NZ,$AD53
AD50 DEC H
AD51 DEC B
AD52 RET
AD53 LD A,C
AD54 LD C,L
AD55 LD L,A
AD56 DEC H
AD57 RET
AD58 RST $38
AD59 DEFB $FD
AD5A JP M,$E6F4
AD5D RET PO
AD5E CALL NC,$B4C5
AD61 AND C
AD62 ADC A,L
AD63 LD A,B
AD64 LD H,C
AD65 LD C,D
AD66 LD SP,$0018
AD69 CALL $AD22
AD6C PUSH HL
AD6D CALL $AD13
AD70 LD D,(IX+$02)
AD73 LD E,(IX+$03)
AD76 ADD HL,DE
AD77 LD (IX+$02),H
AD7A LD (IX+$03),L
AD7D POP BC
AD7E CALL $AD13
AD81 LD D,(IX+$04)
AD84 LD E,(IX+$05)
AD87 ADD HL,DE
AD88 LD (IX+$04),H
AD8B LD (IX+$05),L
AD8E RET
This entry point is used by the routine at B765.
AD8F LD IY,($9789)
AD93 LD HL,$4081
AD96 LD B,$0C
AD98 PUSH BC
AD99 PUSH HL
AD9A CALL $ADAC
AD9D POP HL
AD9E LD A,$20
ADA0 ADD A,L
ADA1 LD L,A
ADA2 JR NC,$ADA8
ADA4 LD A,$08
ADA6 ADD A,H
ADA7 LD H,A
ADA8 POP BC
ADA9 DJNZ $AD98
ADAB RET
ADAC LD B,$0F
ADAE PUSH BC
ADAF PUSH HL
ADB0 CALL $ADBC
ADB3 POP HL
ADB4 INC L
ADB5 INC L
ADB6 POP BC
ADB7 INC IY
ADB9 DJNZ $ADAE
ADBB RET
ADBC BIT 7,(IY+$00)
ADC0 RET NZ
ADC1 BIT 4,(IY+$00)
ADC5 RET NZ
ADC6 LD E,(IX+$00)
ADC9 LD D,(IX+$01)
ADCC LD ($ADDE),SP
ADD0 EX DE,HL
ADD1 LD SP,HL
ADD2 EX DE,HL
ADD3 LD B,$08
ADD5 POP DE
ADD6 LD (HL),E
ADD7 INC L
ADD8 LD (HL),D
ADD9 DEC L
ADDA INC H
ADDB DJNZ $ADD5
ADDD LD SP,$0000
ADE0 RET
This entry point is used by the routine at BDCF.
ADE1 LD IY,($9789)
ADE5 LD HL,$DE01
ADE8 LD ($AEFB),HL
ADEB LD HL,$D7A2
ADEE LD ($AEFD),HL
ADF1 LD B,$0C
ADF3 PUSH BC
ADF4 PUSH IY
ADF6 CALL $AE13
ADF9 POP IY
ADFB CALL $AE2A
ADFE LD HL,($AEFB)
AE01 INC H
AE02 LD ($AEFB),HL
AE05 LD HL,($AEFD)
AE08 LD DE,$0020
AE0B ADD HL,DE
AE0C LD ($AEFD),HL
AE0F POP BC
AE10 DJNZ $ADF3
AE12 RET
AE13 LD B,$0F
AE15 LD HL,($AEFB)
AE18 PUSH BC
AE19 PUSH HL
AE1A BIT 7,(IY+$00)
AE1E CALL Z,$AE82
AE21 POP HL
AE22 INC L
AE23 INC L
AE24 INC IY
AE26 POP BC
AE27 DJNZ $AE18
AE29 RET
AE2A LD B,$0F
AE2C LD HL,($AEFD)
AE2F BIT 7,(IY+$00)
AE33 JR NZ,$AE42
AE35 RES 6,(HL)
AE37 INC L
AE38 LD A,L
AE39 CPL
AE3A AND $1F
AE3C JR Z,$AE42
AE3E RES 6,(HL)
AE40 JR $AE43
AE42 INC L
AE43 INC L
AE44 INC IY
AE46 DJNZ $AE2F
AE48 RET
AE49 LD HL,($AEFB)
AE4C INC H
AE4D INC L
AE4E PUSH BC
AE4F PUSH HL
AE50 BIT 7,(IY+$00)
AE54 CALL Z,$AE60
AE57 POP HL
AE58 INC L
AE59 INC L
AE5A INC IY
AE5C POP BC
AE5D DJNZ $AE4E
AE5F RET
AE60 LD DE,$55AA
AE63 LD C,L
AE64 CALL $AE6F
AE67 LD A,L
AE68 AND $1F
AE6A CP $1D
AE6C RET Z
AE6D LD L,C
AE6E INC L
AE6F LD B,$04
AE71 LD A,(HL)
AE72 AND E
AE73 LD (HL),A
AE74 LD A,L
AE75 ADD A,$20
AE77 LD L,A
AE78 LD A,(HL)
AE79 AND D
AE7A LD (HL),A
AE7B LD A,L
AE7C ADD A,$20
AE7E LD L,A
AE7F DJNZ $AE71
AE81 RET
AE82 LD ($AEB5),SP
AE86 PUSH HL
AE87 LD DE,$FFE0
AE8A ADD HL,DE
AE8B LD (HL),$00
AE8D INC L
AE8E LD (HL),$00
AE90 POP HL
AE91 LD A,L
AE92 AND $1F
AE94 DEC A
AE95 JR Z,$AEA4
AE97 PUSH HL
AE98 DEC L
AE99 LD DE,$0020
AE9C LD B,$08
AE9E RES 0,(HL)
AEA0 ADD HL,DE
AEA1 DJNZ $AE9E
AEA3 POP HL
AEA4 LD SP,$AEFF
AEA7 LD DE,$001F
AEAA LD A,$08
AEAC POP BC
AEAD LD (HL),C
AEAE INC L
AEAF LD (HL),B
AEB0 ADD HL,DE
AEB1 DEC A
AEB2 JR NZ,$AEAC
AEB4 LD SP,$0000
AEB7 LD C,L
AEB8 LD (HL),A
AEB9 INC L
AEBA LD (HL),A
AEBB LD A,L
AEBC AND $1F
AEBE CP $1E
AEC0 JR Z,$AECE
AEC2 INC L
AEC3 LD DE,$FFE0
AEC6 ADD HL,DE
AEC7 LD B,$08
AEC9 RES 7,(HL)
AECB ADD HL,DE
AECC DJNZ $AEC9
AECE LD A,C
AECF AND $1F
AED1 LD HL,($AEFD)
AED4 ADD A,L
AED5 LD L,A
AED6 LD DE,$FFDE
AED9 ADD HL,DE
AEDA PUSH HL
AEDB LD A,(IY+$00)
AEDE AND $0F
AEE0 LD HL,$AEEB
AEE3 CALL PrintLine_9
AEE6 LD B,(HL)
AEE7 POP HL
AEE8 LD (HL),B
AEE9 INC L
AEEA LD (HL),B
AEEB RET
AEEC LD D,A
AEED LD C,A
AEEE LD E,A
AEEF JR NZ,$AF61
AEF1 LD B,A
AEF2 LD D,A
AEF3 LD E,A
AEF4 LD C,A
AEF5 NOP
AEF6 LD B,A
AEF7 LD D,A
AEF8 LD C,A
AEF9 LD E,A
AEFA NOP
AEFB NOP
AEFC NOP
AEFD NOP
AEFE NOP
Prev: 965D Up: Map Next: AEFF