src/mess/drivers/fm7.c
| r4968 | r4969 | |
| 212 | 212 | */ |
| 213 | 213 | READ8_HANDLER( fm7_irq_cause_r ) |
| 214 | 214 | { |
| 215 | | UINT8 ret = irq_flags; |
| 215 | UINT8 ret = ~irq_flags; |
| 216 | 216 | |
| 217 | 217 | irq_flags = 0; // clear flags |
| 218 | 218 | logerror("IRQ flags read: 0x%02x\n",ret); |
| r4968 | r4969 | |
| 584 | 584 | |
| 585 | 585 | static READ8_HANDLER( fm7_psg_select_r ) |
| 586 | 586 | { |
| 587 | logerror("PSG: select register read\n"); |
| 587 | 588 | return 0xff; |
| 588 | 589 | } |
| 589 | 590 | |
| r4968 | r4969 | |
| 591 | 592 | { |
| 592 | 593 | fm7_psg_regsel = data & 0x03; |
| 593 | 594 | fm7_update_psg(space->machine); |
| 595 | logerror("PSG: select register write 0x%02x\n",data); |
| 594 | 596 | } |
| 595 | 597 | |
| 596 | 598 | static READ8_HANDLER( fm7_psg_data_r ) |
| 597 | 599 | { |
| 598 | 600 | fm7_update_psg(space->machine); |
| 601 | logerror("PSG: data register read\n"); |
| 599 | 602 | return psg_data; |
| 600 | 603 | } |
| 601 | 604 | |
| r4968 | r4969 | |
| 603 | 606 | { |
| 604 | 607 | psg_data = data; |
| 605 | 608 | fm7_update_psg(space->machine); |
| 609 | logerror("PSG: data register write 0x%02x\n",data); |
| 606 | 610 | } |
| 607 | 611 | |
| 608 | 612 | // Shared RAM is only usable on the main CPU if the sub CPU is halted |