Prev: C15C Up: Map Next: C1B8
C182: Play a note in the sound data
Used by the routine at C15C.
C182 DI
C183 LD A,($C1B8)
C186 EX AF,AF'
C187 LD ($C199),BC
C18B INC BC
C18C LD D,B
C18D LD E,C
C18E DEC BC
C18F LD ($C1A8),DE
C193 DEC BC
C194 LD A,B
C195 OR C
C196 JR NZ,$C1A2
C198 LD BC,$0190
C19B EX AF,AF'
C19C ADD A,$10
C19E OUT ($FE),A
C1A0 EX AF,AF'
C1A1 DEC HL
C1A2 DEC DE
C1A3 LD A,D
C1A4 OR E
C1A5 JR $C1B0
C1A7 LD DE,$0191
C1AA EX AF,AF'
C1AB ADD A,$10
C1AD OUT ($FE),A
C1AF EX AF,AF'
C1B0 LD A,H
C1B1 OR L
C1B2 JR Z,$C1B6
C1B4 JR $C193
C1B6 EI
C1B7 RET
Prev: C15C Up: Map Next: C1B8