src/mess/drivers/fm7.c
| r4974 | r4975 | |
| 273 | 273 | if(sub_busy != 0 || sub_halt != 0) |
| 274 | 274 | ret |= 0x80; |
| 275 | 275 | |
| 276 | ret |= 0x01; // EXTDET (not implemented yet) |
| 277 | |
| 276 | 278 | return ret; |
| 277 | 279 | } |
| 278 | 280 | |
| 279 | 281 | WRITE8_HANDLER( fm7_subintf_w ) |
| 280 | 282 | { |
| 281 | 283 | sub_halt = data & 0x80; |
| 284 | if(data & 0x80) |
| 285 | sub_busy = data & 0x80; |
| 286 | |
| 282 | 287 | cputag_set_input_line(space->machine,"sub",INPUT_LINE_HALT,(data & 0x80) ? ASSERT_LINE : CLEAR_LINE); |
| 283 | 288 | if(data & 0x40) |
| 284 | 289 | cputag_set_input_line(space->machine,"sub",M6809_IRQ_LINE,ASSERT_LINE); |
| r4974 | r4975 | |
| 584 | 589 | |
| 585 | 590 | static READ8_HANDLER( fm7_psg_select_r ) |
| 586 | 591 | { |
| 587 | | logerror("PSG: select register read\n"); |
| 588 | 592 | return 0xff; |
| 589 | 593 | } |
| 590 | 594 | |
| r4974 | r4975 | |
| 592 | 596 | { |
| 593 | 597 | fm7_psg_regsel = data & 0x03; |
| 594 | 598 | fm7_update_psg(space->machine); |
| 595 | | logerror("PSG: select register write 0x%02x\n",data); |
| 596 | 599 | } |
| 597 | 600 | |
| 598 | 601 | static READ8_HANDLER( fm7_psg_data_r ) |
| 599 | 602 | { |
| 600 | 603 | fm7_update_psg(space->machine); |
| 601 | | logerror("PSG: data register read\n"); |
| 602 | 604 | return psg_data; |
| 603 | 605 | } |
| 604 | 606 | |
| r4974 | r4975 | |
| 606 | 608 | { |
| 607 | 609 | psg_data = data; |
| 608 | 610 | fm7_update_psg(space->machine); |
| 609 | | logerror("PSG: data register write 0x%02x\n",data); |
| 610 | 611 | } |
| 611 | 612 | |
| 612 | 613 | // Shared RAM is only usable on the main CPU if the sub CPU is halted |