src/mess/machine/wangpc_wdc.c
| r15382 | r15383 | |
| 18 | 18 | |
| 19 | 19 | #define OPTION_ID 0x01 |
| 20 | 20 | |
| 21 | | #define Z80_TAG "z80" |
| 21 | #define Z80_TAG "l53" |
| 22 | #define MK3882_TAG "l07" |
| 22 | 23 | #define SASIBUS_TAG "sasi" |
| 23 | 24 | |
| 24 | 25 | |
| r15382 | r15383 | |
| 40 | 41 | |
| 41 | 42 | ROM_REGION( 0x1000, "address", 0 ) |
| 42 | 43 | ROM_LOAD( "378-9041.l54", 0x0000, 0x1000, CRC(94e9a17d) SHA1(060c576d70069ece2d0dbce86ffc448df2b169e7) ) |
| 44 | |
| 45 | ROM_REGION( 0x100, "prom", 0 ) |
| 46 | ROM_LOAD( "376-8002.l66", 0x000, 0x100, NO_DUMP ) // DL2212-105 |
| 43 | 47 | ROM_END |
| 44 | 48 | |
| 45 | 49 | |
| r15382 | r15383 | |
| 80 | 84 | |
| 81 | 85 | |
| 82 | 86 | //------------------------------------------------- |
| 87 | // Z80CTC_INTERFACE( ctc_intf ) |
| 88 | //------------------------------------------------- |
| 89 | |
| 90 | static Z80CTC_INTERFACE( ctc_intf ) |
| 91 | { |
| 92 | 0, // timer disables |
| 93 | DEVCB_CPU_INPUT_LINE(Z80_TAG, INPUT_LINE_IRQ0), // interrupt handler |
| 94 | DEVCB_NULL, // ZC/TO0 callback |
| 95 | DEVCB_NULL, // ZC/TO1 callback |
| 96 | DEVCB_NULL // ZC/TO2 callback |
| 97 | }; |
| 98 | |
| 99 | |
| 100 | //------------------------------------------------- |
| 83 | 101 | // SCSIBus_interface sasi_intf |
| 84 | 102 | //------------------------------------------------- |
| 85 | 103 | |
| r15382 | r15383 | |
| 110 | 128 | //------------------------------------------------- |
| 111 | 129 | |
| 112 | 130 | static MACHINE_CONFIG_FRAGMENT( wangpc_wdc ) |
| 113 | | MCFG_CPU_ADD(Z80_TAG, Z80, 2000000) |
| 131 | MCFG_CPU_ADD(Z80_TAG, Z80, 2000000) // XTAL_10MHz / ? |
| 114 | 132 | //MCFG_CPU_CONFIG(wangpc_wdc_daisy_chain) |
| 115 | 133 | MCFG_CPU_PROGRAM_MAP(wangpc_wdc_mem) |
| 116 | 134 | MCFG_CPU_IO_MAP(wangpc_wdc_io) |
| 117 | 135 | |
| 136 | MCFG_Z80CTC_ADD(MK3882_TAG, 2000000, ctc_intf) |
| 137 | |
| 118 | 138 | MCFG_SCSIBUS_ADD(SASIBUS_TAG, sasi_intf) |
| 119 | 139 | MCFG_DEVICE_ADD("harddisk0", SCSIHD, 0) |
| 120 | 140 | MACHINE_CONFIG_END |
| r15382 | r15383 | |
| 166 | 186 | device_t(mconfig, WANGPC_WDC, "Wang PC-PM001", tag, owner, clock), |
| 167 | 187 | device_wangpcbus_card_interface(mconfig, *this), |
| 168 | 188 | m_maincpu(*this, Z80_TAG), |
| 189 | m_ctc(*this, MK3882_TAG), |
| 169 | 190 | m_sasibus(*this, SASIBUS_TAG) |
| 170 | 191 | { |
| 171 | 192 | } |