Prev: 9BF8 Up: Map Next: 9C1C
9BFD: Handle duration byte when tune index >= 3
When tune index >= 3 Used by the routine at sound_player.
L9BFD 9BFD LD (IX+$03),A Save tune byte in frequency LSB
9C00 LD (IX+$01),L Set tune address LSB
9C03 LD (IX+$02),H Set tune address MSB
This entry point is used by the routine at sound_player.
L9BFD_0 9C06 XOR A Clear A
9C07 SLA (IX+$03) Shift frequency bit 7 into carry
9C0B RLA Shift carry into A bit 0
9C0C SLA (IX+$03) Shift frequency bit 7 into carry
9C10 RLA Shift carry into A bit 0
9C11 DEC A -1, so that a zero will mute
9C12 LD (IX+$00),A Save as tune/mute byte
9C15 OR $74 000000FF OR 01110100 -> 011101FF
9C17 LD (IX+$04),A Save in attenuation/frequency
9C1A JR next_tune_data_buffer Next tune data buffer
Prev: 9BF8 Up: Map Next: 9C1C