trunk/src/mess/machine/superpet.c
| r21096 | r21097 | |
| 16 | 16 | //************************************************************************** |
| 17 | 17 | |
| 18 | 18 | #define M6809_TAG "u4" |
| 19 | | #define M6551_TAG "u23" |
| 19 | #define MOS6551_TAG "u23" |
| 20 | 20 | #define MOS6702_TAG "u2" |
| 21 | #define RS232_TAG "rs232" |
| 21 | 22 | |
| 22 | 23 | |
| 23 | 24 | |
| r21096 | r21097 | |
| 54 | 55 | |
| 55 | 56 | |
| 56 | 57 | //------------------------------------------------- |
| 58 | // rs232_port_interface rs232_intf |
| 59 | //------------------------------------------------- |
| 60 | |
| 61 | static const rs232_port_interface rs232_intf = |
| 62 | { |
| 63 | DEVCB_DEVICE_LINE_MEMBER(MOS6551_TAG, mos6551_device, rxd_w), |
| 64 | DEVCB_DEVICE_LINE_MEMBER(MOS6551_TAG, mos6551_device, dcd_w), |
| 65 | DEVCB_DEVICE_LINE_MEMBER(MOS6551_TAG, mos6551_device, dsr_w), |
| 66 | DEVCB_NULL, |
| 67 | DEVCB_DEVICE_LINE_MEMBER(MOS6551_TAG, mos6551_device, cts_w) |
| 68 | }; |
| 69 | |
| 70 | |
| 71 | //------------------------------------------------- |
| 57 | 72 | // ADDRESS_MAP( superpet_mem ) |
| 58 | 73 | //------------------------------------------------- |
| 59 | 74 | |
| r21096 | r21097 | |
| 70 | 85 | MCFG_CPU_ADD(M6809_TAG, M6809, XTAL_16MHz/16) |
| 71 | 86 | MCFG_CPU_PROGRAM_MAP(superpet_mem) |
| 72 | 87 | |
| 73 | | MCFG_MOS6551_ADD(M6551_TAG, XTAL_1_8432MHz, DEVWRITELINE(DEVICE_SELF, superpet_device, acia_irq_w)) |
| 74 | 88 | MCFG_MOS6702_ADD(MOS6702_TAG, XTAL_16MHz/16) |
| 89 | |
| 90 | MCFG_MOS6551_ADD(MOS6551_TAG, XTAL_1_8432MHz, DEVWRITELINE(DEVICE_SELF, superpet_device, acia_irq_w)) |
| 91 | MCFG_MOS6551_RXD_TXD_CALLBACKS(NULL, DEVWRITELINE(RS232_TAG, rs232_port_device, tx)) |
| 92 | |
| 93 | MCFG_RS232_PORT_ADD(RS232_TAG, rs232_intf, default_rs232_devices, NULL, NULL) |
| 75 | 94 | MACHINE_CONFIG_END |
| 76 | 95 | |
| 77 | 96 | |
| r21096 | r21097 | |
| 146 | 165 | device_t(mconfig, SUPERPET, "SuperPET", tag, owner, clock), |
| 147 | 166 | device_pet_expansion_card_interface(mconfig, *this), |
| 148 | 167 | m_maincpu(*this, M6809_TAG), |
| 149 | | m_acia(*this, M6551_TAG), |
| 168 | m_acia(*this, MOS6551_TAG), |
| 150 | 169 | m_dongle(*this, MOS6702_TAG), |
| 151 | 170 | m_rom(*this, M6809_TAG), |
| 152 | 171 | m_ram(*this, "ram"), |