Prev: 9BFD Up: Map Next: 9C39
9C1C: Process tune byte
Used by the routines at sound_player and L9C7E.
process_tune_byte 9C1C DEC (IX+$05) Decrement countdown
9C1F JR NZ,next_tune_data_buffer If not 0 then next tune data buffer
9C21 LD L,(IX+$01) Get tune address LSB
9C24 LD H,(IX+$02) Get tune address MSB
This entry point is used by the routines at process_abs_rel_jump and L9C46.
process_tune_byte_0 9C27 LD A,(HL) Get tune byte (duration)
9C28 INC HL Next tune address (always points to next)
9C29 AND A Was the byte zero?
9C2A JR NZ,process_abs_rel_jump If not then jump ahead
9C2C CALL stop_tune Stop tune
9C2F LD A,(tune_index) Get tune index
9C32 AND A Return if not zero
9C33 RET NZ ...
9C34 LD A,$03 Play tune #3
9C36 JP play_tune ...
Prev: 9BFD Up: Map Next: 9C39