src/mess/drivers/pc8801.c
| r15772 | r15773 | |
| 2 | 2 | |
| 3 | 3 | PC-8801 (c) 1981 NEC |
| 4 | 4 | |
| 5 | | preliminary driver by Angelo Salese, original MESS PC-88SR driver by ??? |
| 5 | driver by Angelo Salese, original MESS PC-88SR driver by ??? |
| 6 | 6 | |
| 7 | 7 | TODO: |
| 8 | 8 | - implement proper i8214 routing, also add irq latch mechanism; |
| r15772 | r15773 | |
| 22 | 22 | - clean-ups, banking and video in particular (i.e. hook-ups with memory region should go away and device models should be used instead) |
| 23 | 23 | |
| 24 | 24 | per-game specific TODO: |
| 25 | - 100yen Disk 2 / Jumper 2: Sound BGM dies pretty soon; |
| 26 | - 100yen Soft 8 Revival Special: tight loop with vblank bit, but vblank irq takes too much time to execute its code; |
| 25 | 27 | - 177: gameplay is too fast (parent pc8801 only); |
| 28 | - 1942: missing sound, enables a masked irq; |
| 26 | 29 | - Acro Jet: hangs waiting for an irq (floppy issue); |
| 27 | 30 | - Advanced Fantasian: wants an irq that can't happen (I is equal to 0x3f) |
| 28 | 31 | - American Success: reads the light pen? |
| r15772 | r15773 | |
| 60 | 63 | - Tobira wo Akete (random crashes in parent pc8801 only) |
| 61 | 64 | |
| 62 | 65 | games that needs to NOT have write-protect floppies (BTANBs): |
| 66 | - 100 Yen Disk 7: (doesn't boot in V2 mode) |
| 63 | 67 | - Balance of Power |
| 64 | 68 | - Blue Moon Story: moans with a kanji msg;. |
| 65 | 69 | - Tobira wo Akete (hangs at title screen) |
| r15772 | r15773 | |
| 1603 | 1607 | DEVCB_HANDLER(fdc_8255_c_w) // Port C write |
| 1604 | 1608 | }; |
| 1605 | 1609 | |
| 1610 | |
| 1606 | 1611 | static ADDRESS_MAP_START( pc8801fdc_mem, AS_PROGRAM, 8, pc8801_state ) |
| 1607 | 1612 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 1608 | 1613 | AM_RANGE(0x4000, 0x7fff) AM_RAM |
| r15772 | r15773 | |
| 1636 | 1641 | |
| 1637 | 1642 | WRITE8_MEMBER(pc8801_state::fdc_irq_vector_w) |
| 1638 | 1643 | { |
| 1644 | popmessage("Write to FDC IRQ vector I/O %02x, contact MESSdev\n",data); |
| 1639 | 1645 | m_fdc_irq_opcode = data; |
| 1640 | 1646 | } |
| 1641 | 1647 | |
| r15772 | r15773 | |
| 2100 | 2106 | static void pc8801_sound_irq( device_t *device, int irq ) |
| 2101 | 2107 | { |
| 2102 | 2108 | pc8801_state *state = device->machine().driver_data<pc8801_state>(); |
| 2109 | |
| 2110 | // printf("%02x %02x %02x\n",state->m_sound_irq_mask,state->m_i8214_irq_level,irq); |
| 2103 | 2111 | if(state->m_sound_irq_mask && state->m_i8214_irq_level >= 5 && irq) |
| 2104 | 2112 | { |
| 2105 | 2113 | state->m_sound_irq_latch = 1; |