summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-12-16 01:05:00 -0800
committerMichael Pavone <pavone@retrodev.com>2014-12-16 01:05:00 -0800
commit07f9e99eefacb94e2847af379dcf37ecfd871b34 (patch)
tree46d2e34bb4b1207fde4cc555c4e3af308e48084a
parentb100269776335ff82349bb83871dd415e92a0799 (diff)
Set the busy flag after a YM-2612 address write
-rw-r--r--ym2612.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ym2612.c b/ym2612.c
index 3e43b63..2d3404a 100644
--- a/ym2612.c
+++ b/ym2612.c
@@ -521,6 +521,7 @@ void ym_address_write_part1(ym2612_context * context, uint8_t address)
context->selected_part = 0;
context->write_cycle = context->current_cycle;
context->busy_cycles = BUSY_CYCLES_ADDRESS;
+ context->status |= 0x80;
}
void ym_address_write_part2(ym2612_context * context, uint8_t address)
@@ -530,6 +531,7 @@ void ym_address_write_part2(ym2612_context * context, uint8_t address)
context->selected_part = 1;
context->write_cycle = context->current_cycle;
context->busy_cycles = BUSY_CYCLES_ADDRESS;
+ context->status |= 0x80;
}
uint8_t fnum_to_keycode[] = {