| Chase H.Q. | Routines |
| Prev: EC01 | Up: Map | Next: EFAF |
|
If no tune is active, does nothing (falls straight through to tms_output_registers which returns immediately). Otherwise: decrements the tempo counter ($EC70) and, once it reaches zero, re-processes all 3 channel-tracker records (advance_channel_pattern) one tracker "row" further and resets the counter; then (every frame, tick or not) recomputes the AY tone-period/volume register values for all 3 channels from their current tracker state (compute_channel_ay_registers) into the register cache at EFAF-$EFB9; finally outputs the full cached register block ($EFBA onward, registers 11 down to 0) to the AY chip via ports $FFFD/$BFFD.
Used by the routine at titlescr_music.
|
||||
| ts_music_service | EC71 | LD A,($F223) | Tune-active flag | |
| EC74 | AND A | |||
| EC75 | JP Z,tms_output_registers | |||
| EC78 | LD A,$00 | Reset this frame's noise pitch ($ECC6, the operand at | ||
| EC7A | LD ($ECC6),A | ECC5) to the last note echoed by a noise channel (EDF6) | ||
| EC7D | LD HL,$EC70 | Decrement the tempo counter; only re-process the | ||
| EC80 | DEC (HL) | tracker patterns when it reaches zero | ||
| EC81 | JR NZ,tms_refresh_registers | |||
| EC83 | LD B,(HL) | B = 0 (post-decrement) | ||
| EC84 | LD IX,$EC01 | Advance channel 1's pattern by one tracker row | ||
| EC88 | CALL advance_channel_pattern | |||
| EC8B | LD IX,$EC26 | Channel 2 | ||
| EC8F | CALL advance_channel_pattern | |||
| EC92 | LD IX,$EC4B | Channel 3 | ||
| EC96 | CALL advance_channel_pattern | |||
|
Self modified by EBB3 (start_tune) and EE71 (in-song tempo command); the operand byte at $EC9A is tune_tempo. Confirmed against a real-hardware trace: tune 0's tempo byte (2) gives a period-2 fire/skip alternation.
|
||||
| EC99 | LD A,$01 | A = <self modified> -- reset the tempo counter to this tune's tempo | ||
| EC9B | LD ($EC70),A | Store the new tempo counter | ||
| tms_refresh_registers | EC9E | LD IX,$EC01 | Recompute the AY register values for all 3 | |
| ECA2 | CALL compute_channel_ay_registers | channels from their current tracker state | ||
| ECA5 | LD ($EFAF),HL | |||
| ECA8 | LD ($EFB7),A | |||
| ECAB | LD IX,$EC26 | |||
| ECAF | CALL compute_channel_ay_registers | |||
| ECB2 | LD ($EFB1),HL | |||
| ECB5 | LD ($EFB8),A | |||
| ECB8 | LD IX,$EC4B | |||
| ECBC | CALL compute_channel_ay_registers | |||
| ECBF | LD ($EFB3),HL | |||
| ECC2 | LD ($EFB9),A | |||
| ECC5 | LD A,$00 | |||
| ECC7 | LD ($EFB5),A | Clear the cached mixer/noise register byte | ||
| tms_output_registers | ECCA | LD A,($F223) | Re-check the tune-active flag: if no tune is | |
| ECCD | AND A | playing, do nothing further (registers are only | ||
| ECCE | RET Z | ever written while a tune is active) | ||
| ECCF | LD HL,$EFBA | Output the cached register block: 12 registers | ||
| ECD2 | LD A,$0B | (11 downto 0), each selected via port $FFFD then | ||
| ECD4 | LD C,$FD | its data byte written via port $BFFD | ||
| tms_output_loop | ECD6 | LD B,$FF | ||
| ECD8 | OUT (C),A | Select AY register A | ||
| ECDA | LD B,$BF | |||
| ECDC | OUTD | Write (HL) to the data port, HL-- | ||
| ECDE | DEC A | Next (lower) register | ||
| ECDF | JP P,tms_output_loop | |||
| ECE2 | RET | |||
|
Helper: write a single AY register (D = register number, E = value). Nothing calls it: other code reaches bank 3 only through the entry points at $C000, so this is dead code.
|
||||
| ECE3 | LD BC,$FFFD | |||
| ECE6 | OUT (C),D | |||
| ECE8 | LD B,$BF | |||
| ECEA | OUT (C),E | |||
| ECEC | RET | |||
|
Silence the AY chip: write 0 to every register 13 downto 0 (in particular the 3 volume registers 8-10), then write register 7 (mixer) a second time for good measure.
|
||||
| ay_silence_all | ECED | LD C,$FD | ||
| ECEF | LD DE,$0D00 | D = register 13 (downto 0), E = 0 (dummy) | ||
| ECF2 | SUB A | A = 0 (the value written to every register) | ||
| asa_reg_loop | ECF3 | LD B,$FF | ||
| ECF5 | OUT (C),D | Select register D | ||
| ECF7 | LD B,$BF | |||
| ECF9 | OUT (C),A | Write 0 | ||
| ECFB | DEC D | |||
| ECFC | JP P,asa_reg_loop | |||
| ECFF | LD DE,$0700 | Belt-and-braces: rewrite register 7 (mixer) = 0 | ||
| ED02 | LD B,$FF | |||
| ED04 | OUT (C),D | |||
| ED06 | LD B,$BF | |||
| ED08 | OUT (C),E | |||
| ED0A | RET | |||
|
Stop any playing tune and silence the AY chip. This entry point is used by the routines at name_entry_input, run_title_screen, titlescr_start_tune and run_title_tune.
|
||||
| stop_music_and_silence | ED0B | XOR A | ||
| ED0C | LD ($F223),A | Clear the tune-active flag | ||
| ED0F | CALL ay_silence_all | |||
| ED12 | XOR A | Clear the three volume registers in the cache | ||
| ED13 | LD ($EFB7),A | |||
| ED16 | LD ($EFB8),A | |||
| ED19 | LD ($EFB9),A | |||
| ED1C | RET | |||
|
Displacement table for dispatch_pattern_command. The command byte ($80-$91) is added to $EC9D, which lands in this table, and the byte found there is added again to give the handler's address.
|
||||
| pattern_command_offsets | ED1D | DEFB $9F | $80: pcmd_reset_row_counter_clear13 rest | |
| ED1E | DEFB $87 | $81: pcmd_vibrato_off vibrato off | ||
| ED1F | DEFB $8B | $82: pcmd_vibrato_on vibrato on | ||
| ED20 | DEFB $90 | $83: pcmd_vibrato_on_mode2 half-rate vibrato on | ||
| ED21 | DEFB $4E | $84: pcmd_set_slide_target pitch slide | ||
| ED22 | DEFB $7D | $85: ED9F note slide down | ||
| ED23 | DEFB $78 | $86: pcmd_set_status_bits_3_7 note slide up | ||
| ED24 | DEFB $0F | $87: ED33 next phrase | ||
| ED25 | DEFB $67 | $88: pcmd_set_envelope_params vibrato parameters | ||
| ED26 | DEFB $5F | $89: pcmd_set_driver_flag global transpose | ||
| ED27 | DEFB $24 | $8A: pcmd_set_mixer_bits_high3 tone only | ||
| ED28 | DEFB $0E | $8B: pcmd_set_mixer_bits_low3 noise only | ||
| ED29 | DEFB $36 | $8C: pcmd_clear_mixer_bits tone and noise | ||
| ED2A | DEFB $8C | $8D: pcmd_set_status_bit1 alternate frames with noise | ||
| ED2B | DEFB $04 | $8E: pcmd_end_of_tune end of tune | ||
| ED2C | DEFB $99 | $8F: pcmd_reset_row_counter tie | ||
| ED2D | DEFB $9E | $90: pcmd_mute_channel noise click on | ||
| ED2E | DEFB $A3 | $91: pcmd_unmute_channel noise click off | ||
|
Command $8E: end of tune.
|
||||
| pcmd_end_of_tune | ED2F | POP HL | Discard the return address into ts_music_service, so the music stops and control returns to its caller | |
| ED30 | JP stop_music_and_silence | Exit via stop_music_and_silence | ||
|
Command $87: move on to the channel's next phrase.
|
||||
| ED33 | JP advance_channel_phrase | Exit via advance_channel_phrase | ||
|
Pattern command handlers, reached through the table at pattern_command_offsets. Each one consumes any operand bytes from the pattern stream (DE), updates the channel's 37-byte tracker record (see EC01) and rejoins the interpreter at acp_read_pattern_byte, or at acp_reset_row_counter to end the row. P is the channel's mixer mask (+$24): the AY register 7 bits that belong to this channel. $EF7A is the operand of 'LD A,$00' at EF79, the mixer setting merged into the register 7 cache each frame. AY mixer bits are active low: a set bit turns that tone or noise source off. +$1E bit 0 makes each new note set the noise pitch too (EDF0).
|
||||
| pcmd_set_mixer_bits_low3 | ED36 | LD A,(IX+$24) | Command $8B, noise only: set this channel's tone bits and clear | |
| ED39 | LD C,A | its noise bits in $EF7A | ||
| ED3A | AND $07 | |||
| ED3C | LD HL,$EF7A | |||
| ED3F | XOR (HL) | |||
| ED40 | AND C | |||
| ED41 | XOR (HL) | |||
| ED42 | LD (HL),A | |||
| ED43 | LD A,$01 | Noise pitch follows the note: +$1E = 1 | ||
| ED45 | LD (IX+$1E),A | |||
| ED48 | JP acp_read_pattern_byte | |||
| pcmd_set_mixer_bits_high3 | ED4B | LD A,(IX+$24) | Command $8A, tone only: set this channel's noise bits and clear | |
| ED4E | LD C,A | its tone bits in $EF7A | ||
| ED4F | AND $38 | |||
| ED51 | LD HL,$EF7A | |||
| ED54 | XOR (HL) | |||
| ED55 | AND C | |||
| ED56 | XOR (HL) | |||
| ED57 | LD (HL),A | |||
| ED58 | XOR A | Noise pitch no longer follows the note: +$1E = 0 | ||
| ED59 | LD (IX+$1E),A | |||
| ED5C | JP acp_read_pattern_byte | |||
| pcmd_clear_mixer_bits | ED5F | LD HL,$EF7A | Command $8C, tone and noise: clear all of this channel's bits | |
| ED62 | LD A,(IX+$24) | in $EF7A | ||
| ED65 | CPL | |||
| ED66 | AND (HL) | |||
| ED67 | LD (HL),A | |||
| ED68 | LD A,$01 | Noise pitch follows the note: +$1E = 1 | ||
| ED6A | LD (IX+$1E),A | |||
| ED6D | JR acp_read_pattern_byte | |||
| pcmd_set_slide_target | ED6F | LD A,(DE) | Command $84, pitch slide. Read 2 operand bytes: | |
| ED70 | INC DE | reset the accumulated tone-period offset | ||
| ED71 | LD (IX+$07),B | (+$07/+$08), store operand 1 as the signed | ||
| ED74 | LD (IX+$08),B | per-frame step (+$0D) and operand 2 as the | ||
| ED77 | LD (IX+$0D),A | delay before the slide starts (+$0E), then set | ||
| ED7A | SET 2,(IX+$00) | status bit 2 (slide active, applied by | ||
| ED7E | LD A,(DE) | ts_music_service_15) | ||
| ED7F | LD (IX+$0E),A | |||
| ED82 | INC DE | |||
| ED83 | JR acp_read_pattern_byte | |||
| pcmd_set_driver_flag | ED85 | LD A,(DE) | Command $89. Read 1 operand byte and store it | |
| ED86 | INC DE | as the global transpose at $EED1, the operand of | ||
| ED87 | LD ($EED1),A | 'LD A,$00' at ts_music_service_6 (zeroed by start_tune) | ||
| ED8A | JR acp_read_pattern_byte | |||
| pcmd_set_envelope_params | ED8C | LD A,(DE) | Command $88. Read 2 operand bytes: operand 1 is | |
| ED8D | LD (IX+$1B),A | the vibrato step (+$1B); operand 2 is the depth | ||
| ED90 | INC DE | (+$1A) and also the starting phase (+$1C), the | ||
| ED91 | LD A,(DE) | centre of the 0 to 2 x depth swing | ||
| ED92 | LD (IX+$1A),A | |||
| ED95 | INC DE | |||
| ED96 | LD (IX+$1C),A | |||
| ED99 | JR acp_read_pattern_byte | |||
| pcmd_set_status_bits_3_7 | ED9B | SET 7,(IX+$00) | Command $86: set status bit 7 (slide upwards) then fall into | |
| ED9F | SET 3,(IX+$00) | command $85: set status bit 3, so channel_slide_upkeep slides the note by one each frame until the next row | ||
| EDA3 | JR acp_read_pattern_byte | |||
| pcmd_vibrato_off | EDA5 | LD (IX+$1D),B | +$1D = 0 (B is 0 here): clears bit 6 (vibrato | |
| EDA8 | JR acp_read_pattern_byte | enable, tested at EEFF) and bits 7 and 5 (half-rate and direction, tested at EF09/ts_music_service_8) | ||
| pcmd_vibrato_on | EDAA | LD (IX+$1D),$40 | +$1D = $40: sets bit 6 only -- enables vibrato | |
| EDAE | JR acp_read_pattern_byte | (see EEFC phase 3), direction/mode bits clear | ||
| pcmd_vibrato_on_mode2 | EDB0 | LD (IX+$1D),$C0 | +$1D = $C0: sets bits 6 and 7 -- enables vibrato with the phase updated only every other frame (EF09) | |
| EDB4 | JR acp_read_pattern_byte | |||
| pcmd_set_status_bit1 | EDB6 | SET 1,(IX+$00) | Set status bit 1 of +$00 (no operand bytes): until the next row, every other frame switches the channel to noise only with a pitch from the note (ts_music_service_18) | |
| EDBA | JR acp_read_pattern_byte | |||
| pcmd_reset_row_counter_clear13 | EDBC | LD (IX+$13),B | Command $80, rest: volume (+$13) = 0 (B is 0 here), stop the | |
| EDBF | RES 5,(IX+$00) | volume envelope (status bit 5), then end the row at acp_reset_row_counter | ||
| EDC3 | JR acp_reset_row_counter | without starting a note | ||
| pcmd_reset_row_counter | EDC5 | RES 5,(IX+$00) | Command $8F, tie: stop the volume envelope but keep the current | |
| EDC9 | JR acp_reset_row_counter | volume, then end the row without starting a note | ||
| pcmd_mute_channel | EDCB | LD (IX+$1F),$FF | +$1F = $FF: each new row then plays a one-frame noise click at the highest pitch (EF90); despite the label it does not silence the channel | |
| EDCF | JR acp_read_pattern_byte | |||
| pcmd_unmute_channel | EDD1 | LD (IX+$1F),B | +$1F = 0 (B is 0 here): stop the per-row noise | |
| EDD4 | JR acp_read_pattern_byte | click | ||
|
Advance one channel's pattern by one tracker row. Decrements the per-row wait counter (+$10); while it is still counting down, only channel_slide_upkeep (envelope/portamento upkeep) runs. Once it reaches zero, reads and processes the next byte(s) from the pattern stream via acp_read_pattern_byte.
|
||||
| advance_channel_pattern | EDD6 | DEC (IX+$10) | ||
| EDD9 | JR NZ,channel_slide_upkeep | |||
| EDDB | LD (IX+$00),B | |||
| EDDE | LD E,(IX+$01) | |||
| EDE1 | LD D,(IX+$02) | |||
|
This entry point is used by the routine at advance_channel_phrase.
|
||||
| acp_read_pattern_byte | EDE4 | LD A,(DE) | ||
| EDE5 | INC DE | |||
| EDE6 | AND A | |||
| EDE7 | JP M,decode_pattern_command | Bit 7 set = command/effect byte, decode via decode_pattern_command; bit 7 clear = a note value, handled below | ||
| EDEA | ADD A,(IX+$20) | |||
| EDED | LD (IX+$12),A | |||
| EDF0 | BIT 0,(IX+$1E) | |||
| EDF4 | JR Z,ts_music_service_0 | |||
| EDF6 | LD ($EC79),A | |||
| ts_music_service_0 | EDF9 | LD L,(IX+$09) | ||
| EDFC | LD H,(IX+$0A) | |||
| EDFF | LD (IX+$0B),L | |||
| EE02 | LD (IX+$0C),H | |||
| EE05 | LD L,(IX+$14) | |||
| EE08 | LD (IX+$16),L | |||
| EE0B | LD H,(IX+$15) | |||
| EE0E | LD (IX+$17),H | |||
| EE11 | LD A,(HL) | |||
| EE12 | LD (IX+$18),A | |||
| EE15 | LD (IX+$13),A | |||
| EE18 | LD A,(IX+$0F) | |||
| EE1B | LD (IX+$19),A | |||
| EE1E | SET 5,(IX+$00) | |||
| acp_reset_row_counter | EE22 | LD A,(IX+$11) | ||
| EE25 | LD (IX+$10),A | |||
| EE28 | LD (IX+$02),D | |||
| EE2B | LD (IX+$01),E | |||
| EE2E | LD A,(IX+$1F) | |||
| EE31 | AND A | |||
| EE32 | RET Z | |||
| EE33 | LD (IX+$1F),$FF | |||
| EE37 | RET | |||
|
Between pattern rows: nudge the current note (+$12) up or down by one per frame if a portamento/slide effect (channel flag bit 3) is active.
|
||||
| channel_slide_upkeep | EE38 | LD A,(IX+$00) | ||
| EE3B | BIT 3,A | |||
| EE3D | RET Z | |||
| EE3E | RLA | |||
| EE3F | JR NC,ts_music_service_1 | |||
| EE41 | INC (IX+$12) | |||
| EE44 | RET | |||
| ts_music_service_1 | EE45 | DEC (IX+$12) | ||
| EE48 | RET | |||
|
Command/effect byte decode: range-tests the byte against a cascade of thresholds ($B0, then +$20, +$10, +$18) to find which opcode group it falls in, then either handles it directly (note-table/pointer effects) or falls through to the jump table at dispatch_pattern_command for the fixed-length opcode handlers at pcmd_set_mixer_bits_low3-$EDD1.
|
||||
| decode_pattern_command | EE49 | CP $B0 | ||
| EE4B | JR C,dispatch_pattern_command | |||
| EE4D | ADD A,$20 | |||
| EE4F | JR C,ts_music_service_3 | |||
| EE51 | ADD A,$10 | |||
| EE53 | JR C,ts_music_service_4 | |||
| EE55 | ADD A,$18 | |||
| EE57 | JR NC,ts_music_service_2 | |||
| EE59 | LD C,A | |||
| EE5A | LD HL,$F07C | |||
| EE5D | ADD HL,BC | |||
| EE5E | LD C,(HL) | |||
| EE5F | ADD HL,BC | |||
| EE60 | LD (IX+$0B),L | |||
| EE63 | LD (IX+$09),L | |||
| EE66 | LD (IX+$0C),H | |||
| EE69 | LD (IX+$0A),H | |||
| EE6C | JP acp_read_pattern_byte | |||
| ts_music_service_2 | EE6F | ADD A,$09 | ||
|
In-song tempo command: self modifies 'LD A,x' at EC99 to set the tempo-counter reload value
|
||||
| EE71 | LD ($EC9A),A | Self modify 'LD A,x' at EC99 | ||
| EE74 | JP acp_read_pattern_byte | |||
| ts_music_service_3 | EE77 | INC A | ||
| EE78 | LD (IX+$11),A | |||
| EE7B | JP acp_read_pattern_byte | |||
| ts_music_service_4 | EE7E | LD HL,$F123 | ||
| EE81 | ADD A,A | |||
| EE82 | LD C,A | |||
| EE83 | ADD HL,BC | |||
| EE84 | LD A,(HL) | |||
| EE85 | INC HL | |||
| EE86 | LD H,(HL) | |||
| EE87 | LD L,A | |||
| EE88 | LD (IX+$14),L | |||
| EE8B | LD (IX+$15),H | |||
| EE8E | DEC HL | |||
| EE8F | LD A,(HL) | |||
| EE90 | LD (IX+$0F),A | |||
| EE93 | JP acp_read_pattern_byte | |||
|
Jump-table dispatch into the fixed-length opcode handlers at pcmd_set_mixer_bits_low3-$EDD1, indexed by the whole command byte $80-$91 (A, with B 0 as throughout this driver). Rather than storing a full 2-byte address per entry, the table at pattern_command_offsets stores a 1-byte displacement from the table slot itself to the handler: HL is first set to the table slot ($EC9D + A, which is $ED1D-$ED2E), then the displacement byte at that slot is added back onto HL, giving the handler's address. This works because every handler lies within 256 bytes of its table slot.
|
||||
| dispatch_pattern_command | EE96 | LD HL,$EC9D | HL = table slot for this command | |
| EE99 | LD C,A | |||
| EE9A | ADD HL,BC | |||
| EE9B | LD C,(HL) | C = displacement to the handler | ||
| EE9C | ADD HL,BC | HL = table slot + displacement = handler address | ||
| EE9D | JP (HL) | |||
|
Recompute this channel's AY tone-period and volume/envelope register values from its current tracker state (note, envelope index, effect flags) for the per-frame register cache write at ts_music_service. Returns the tone period in HL and the volume/mixer byte in A (see the callers at ECA2/$ECAF/$ECBC). Five phases, in order: 1. EEA1-$EED0: envelope amplitude advance. If status bit 5 (+$00) is set, decrements the envelope-step counter (+$19); on underflow, reloads it from the speed value (+$0F) and reads the next byte from the envelope-shape table pointer (+$16/+$17, advanced by 1 unless the byte read has bit 7 set, an end-of-table marker that halts the pointer), storing that byte as the current amplitude (+$18). Either way, +$18 is copied into +$13, the volume value this call returns. 2. ts_music_service_6-$EEFC: tone-period lookup. Note index = (+$12) [set by EDEA from the pattern's raw note + transpose (+$20)] plus a pitch-offset byte read from a per-channel offset sequence at +$0B/+$0C (default/loop start +$09/+$0A): if the byte's bit 7 is clear it is used as-is and the pointer advances; if set, it is a 7-bit end-of-sequence delta and the pointer resets to +$09/+$0A for next time. (note + offset) indexes the 2-byte-per-note tone-period table at EFBC, giving the base tone period in DE. 3. EEFC-$EF4B: vibrato. Only runs if +$1D bit 6 is set (skips to phase 4 otherwise). +$1C is a triangle-wave phase counter that ping-pongs between 0 and (+$1A)*2 by +/-(+$1B) each call, direction tracked in +$1D bit 5 (with bit 7 set, the half-rate mode, the phase is left alone on calls where status bit 0 is set, at EF09-$EF12). The phase is centred (-depth..+depth), sign-extended, then left-shifted a note-dependent number of times (the $EF3D-$EF47 loop, incrementing a counter seeded from the note index by $18 until it overflows) to scale a linear vibrato depth into the tone-period domain, where pitch and period are inversely related. The scaled offset is added onto the phase-2 tone period. 4. ts_music_service_15-$EF76: portamento/slide. Status bit 0 (+$00) is unconditionally toggled every call. If status bit 2 was set (slide active, pcmd_set_slide_target), a countdown in +$0E ticks down; when it reaches zero it reloads and the signed step (+$0D) is sign-extended into BC and accumulated into +$07/+$08, which is then added onto the tone period. 5. ts_music_service_18-$EFAE: mixer finalisation. When status bits 0 and 1 are both set (bit 1 from command $8D, bit 0 alternating, so every other frame), sets the noise pitch ($ECC6) to the echoed note ($EC79) XOR 8 and merges $07 (noise only) into the shared mixer cache at $EFB6 under this channel's mask (+$24); otherwise merges the mixer setting from $EF7A, as set by pcmd_set_mixer_bits_low3-pcmd_clear_mixer_bits. If +$1F has bit 7 set (pcmd_mute_channel, renewed at each row end by EE2E), plays a one-frame noise click: clears bit 7 so it fires once per row, enables this channel's noise in the $EFB6 cache and sets the noise pitch to $41 (register 6 keeps five bits, so 1). Returns the phase-3/4 tone period in HL and the phase-1 volume (+$13) in A.
|
||||
| compute_channel_ay_registers | EE9E | LD C,(IX+$00) | ||
| EEA1 | BIT 5,C | |||
| EEA3 | JR Z,ts_music_service_6 | |||
| EEA5 | LD A,(IX+$19) | |||
| EEA8 | SUB $01 | |||
| EEAA | LD (IX+$19),A | |||
| EEAD | JR NC,ts_music_service_5 | |||
| EEAF | LD A,(IX+$0F) | |||
| EEB2 | LD (IX+$19),A | |||
| EEB5 | LD L,(IX+$16) | |||
| EEB8 | LD H,(IX+$17) | |||
| EEBB | INC HL | |||
| EEBC | LD A,(HL) | |||
| EEBD | AND A | |||
| EEBE | JP M,ts_music_service_5 | |||
| EEC1 | LD (IX+$16),L | |||
| EEC4 | LD (IX+$17),H | |||
| EEC7 | LD (IX+$18),A | |||
| ts_music_service_5 | EECA | LD A,(IX+$18) | ||
| EECD | LD (IX+$13),A | |||
| ts_music_service_6 | EED0 | LD A,$00 | ||
| EED2 | ADD A,(IX+$12) | |||
| EED5 | LD B,A | |||
| EED6 | LD L,(IX+$0B) | |||
| EED9 | LD H,(IX+$0C) | |||
| EEDC | LD A,(HL) | |||
| EEDD | INC HL | |||
| EEDE | AND A | |||
| EEDF | JP P,ts_music_service_7 | |||
| EEE2 | LD L,(IX+$09) | |||
| EEE5 | LD H,(IX+$0A) | |||
| EEE8 | AND $7F | |||
| ts_music_service_7 | EEEA | LD (IX+$0B),L | ||
| EEED | LD (IX+$0C),H | |||
| EEF0 | ADD A,B | |||
| EEF1 | LD HL,$EFBC | |||
| EEF4 | LD D,$00 | |||
| EEF6 | ADD A,A | |||
| EEF7 | LD E,A | |||
| EEF8 | ADD HL,DE | |||
| EEF9 | LD E,(HL) | |||
| EEFA | INC HL | |||
| EEFB | LD D,(HL) | |||
| EEFC | LD L,(IX+$1D) | |||
| EEFF | BIT 6,L | |||
| EF01 | JR Z,ts_music_service_15 | |||
| EF03 | LD H,A | |||
| EF04 | LD B,(IX+$1A) | |||
| EF07 | SLA B | |||
| EF09 | BIT 7,L | |||
| EF0B | LD A,(IX+$1C) | |||
| EF0E | JR Z,ts_music_service_8 | |||
| EF10 | BIT 0,C | |||
| EF12 | JR NZ,ts_music_service_11 | |||
| ts_music_service_8 | EF14 | BIT 5,L | ||
| EF16 | JR NZ,ts_music_service_9 | |||
| EF18 | SUB (IX+$1B) | |||
| EF1B | JR NC,ts_music_service_10 | |||
| EF1D | SET 5,(IX+$1D) | |||
| EF21 | SUB A | |||
| EF22 | JR ts_music_service_10 | |||
| ts_music_service_9 | EF24 | ADD A,(IX+$1B) | ||
| EF27 | CP B | |||
| EF28 | JR C,ts_music_service_10 | |||
| EF2A | RES 5,(IX+$1D) | |||
| EF2E | LD A,B | |||
| ts_music_service_10 | EF2F | LD (IX+$1C),A | ||
| ts_music_service_11 | EF32 | EX DE,HL | ||
| EF33 | SRL B | |||
| EF35 | SUB B | |||
| EF36 | LD E,A | |||
| EF37 | LD A,D | |||
| EF38 | LD D,$00 | |||
| EF3A | JR NC,ts_music_service_12 | |||
| EF3C | DEC D | |||
| ts_music_service_12 | EF3D | ADD A,$A0 | ||
| EF3F | JR C,ts_music_service_14 | |||
| ts_music_service_13 | EF41 | SLA E | ||
| EF43 | RL D | |||
| EF45 | ADD A,$18 | |||
| EF47 | JR NC,ts_music_service_13 | |||
| ts_music_service_14 | EF49 | ADD HL,DE | ||
| EF4A | EX DE,HL | |||
| ts_music_service_15 | EF4B | LD A,C | ||
| EF4C | XOR $01 | |||
| EF4E | LD (IX+$00),A | |||
| EF51 | BIT 2,C | |||
| EF53 | JR Z,ts_music_service_18 | |||
| EF55 | LD B,(IX+$0E) | |||
| EF58 | DJNZ ts_music_service_17 | |||
| EF5A | LD C,(IX+$0D) | |||
| EF5D | BIT 7,C | |||
| EF5F | JR Z,ts_music_service_16 | |||
| EF61 | DEC B | |||
| ts_music_service_16 | EF62 | LD L,(IX+$07) | ||
| EF65 | LD H,(IX+$08) | |||
| EF68 | ADD HL,BC | |||
| EF69 | LD (IX+$07),L | |||
| EF6C | LD (IX+$08),H | |||
| EF6F | ADD HL,DE | |||
| EF70 | EX DE,HL | |||
| EF71 | JR ts_music_service_18 | |||
| ts_music_service_17 | EF73 | LD (IX+$0E),B | ||
| ts_music_service_18 | EF76 | CPL | ||
| EF77 | AND $03 | |||
| EF79 | LD A,$00 | |||
| EF7B | JR NZ,ts_music_service_19 | |||
| EF7D | LD A,($EC79) | |||
| EF80 | XOR $08 | |||
| EF82 | LD ($ECC6),A | |||
| EF85 | LD A,$07 | |||
| ts_music_service_19 | EF87 | LD HL,$EFB6 | ||
| EF8A | XOR (HL) | |||
| EF8B | AND (IX+$24) | |||
| EF8E | XOR (HL) | |||
| EF8F | LD (HL),A | |||
| EF90 | LD A,(IX+$1F) | |||
| EF93 | AND A | |||
| EF94 | JP P,ts_music_service_20 | |||
| EF97 | AND $7F | |||
| EF99 | LD (IX+$1F),A | |||
| EF9C | LD A,(IX+$24) | |||
| EF9F | AND $38 | |||
| EFA1 | XOR $FF | |||
| EFA3 | AND (HL) | |||
| EFA4 | LD (HL),A | |||
| EFA5 | LD A,$41 | |||
| EFA7 | LD ($ECC6),A | |||
| ts_music_service_20 | EFAA | EX DE,HL | ||
| EFAB | LD A,(IX+$13) | |||
| EFAE | RET | |||
| Prev: EC01 | Up: Map | Next: EFAF |