Previous 15994 Revisions Next

r15383 Saturday 2nd June, 2012 at 10:07:12 UTC by Curt Coder
[WANGPC] WDC WIP. (nw)
[src/mess/machine]wangpc_wdc.c wangpc_wdc.h

src/mess/machine/wangpc_wdc.c
r15382r15383
1818
1919#define OPTION_ID      0x01
2020
21#define Z80_TAG         "z80"
21#define Z80_TAG         "l53"
22#define MK3882_TAG      "l07"
2223#define SASIBUS_TAG      "sasi"
2324
2425
r15382r15383
4041
4142   ROM_REGION( 0x1000, "address", 0 )
4243   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
4347ROM_END
4448
4549
r15382r15383
8084
8185
8286//-------------------------------------------------
87//  Z80CTC_INTERFACE( ctc_intf )
88//-------------------------------------------------
89
90static 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//-------------------------------------------------
83101//  SCSIBus_interface sasi_intf
84102//-------------------------------------------------
85103
r15382r15383
110128//-------------------------------------------------
111129
112130static MACHINE_CONFIG_FRAGMENT( wangpc_wdc )
113   MCFG_CPU_ADD(Z80_TAG, Z80, 2000000)
131   MCFG_CPU_ADD(Z80_TAG, Z80, 2000000) // XTAL_10MHz / ?
114132   //MCFG_CPU_CONFIG(wangpc_wdc_daisy_chain)
115133   MCFG_CPU_PROGRAM_MAP(wangpc_wdc_mem)
116134   MCFG_CPU_IO_MAP(wangpc_wdc_io)
117135
136   MCFG_Z80CTC_ADD(MK3882_TAG, 2000000, ctc_intf)
137
118138   MCFG_SCSIBUS_ADD(SASIBUS_TAG, sasi_intf)
119139   MCFG_DEVICE_ADD("harddisk0", SCSIHD, 0)
120140MACHINE_CONFIG_END
r15382r15383
166186   device_t(mconfig, WANGPC_WDC, "Wang PC-PM001", tag, owner, clock),
167187   device_wangpcbus_card_interface(mconfig, *this),
168188   m_maincpu(*this, Z80_TAG),
189   m_ctc(*this, MK3882_TAG),
169190   m_sasibus(*this, SASIBUS_TAG)
170191{
171192}
src/mess/machine/wangpc_wdc.h
r15382r15383
1818#include "imagedev/harddriv.h"
1919#include "machine/scsibus.h"
2020#include "machine/wangpcbus.h"
21#include "machine/z80ctc.h"
2122
2223
2324
r15382r15383
6061   inline void set_irq(int state);
6162
6263   required_device<cpu_device> m_maincpu;
64   required_device<z80ctc_device> m_ctc;
6365   required_device<device_t> m_sasibus;
6466
6567   UINT8 m_status;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team