comparison ym2612.c @ 650:55b550fe8891

Set the busy flag after a YM-2612 address write
author Michael Pavone <pavone@retrodev.com>
date Tue, 16 Dec 2014 01:05:00 -0800
parents aaa77e351c24
children 8972378e314f
comparison
equal deleted inserted replaced
649:c86f27f5c5a6 650:55b550fe8891
519 //printf("address_write_part1: %X\n", address); 519 //printf("address_write_part1: %X\n", address);
520 context->selected_reg = address; 520 context->selected_reg = address;
521 context->selected_part = 0; 521 context->selected_part = 0;
522 context->write_cycle = context->current_cycle; 522 context->write_cycle = context->current_cycle;
523 context->busy_cycles = BUSY_CYCLES_ADDRESS; 523 context->busy_cycles = BUSY_CYCLES_ADDRESS;
524 context->status |= 0x80;
524 } 525 }
525 526
526 void ym_address_write_part2(ym2612_context * context, uint8_t address) 527 void ym_address_write_part2(ym2612_context * context, uint8_t address)
527 { 528 {
528 //printf("address_write_part2: %X\n", address); 529 //printf("address_write_part2: %X\n", address);
529 context->selected_reg = address; 530 context->selected_reg = address;
530 context->selected_part = 1; 531 context->selected_part = 1;
531 context->write_cycle = context->current_cycle; 532 context->write_cycle = context->current_cycle;
532 context->busy_cycles = BUSY_CYCLES_ADDRESS; 533 context->busy_cycles = BUSY_CYCLES_ADDRESS;
534 context->status |= 0x80;
533 } 535 }
534 536
535 uint8_t fnum_to_keycode[] = { 537 uint8_t fnum_to_keycode[] = {
536 //F11 = 0 538 //F11 = 0
537 0,0,0,0,0,0,0,1, 539 0,0,0,0,0,0,0,1,