Previous 15994 Revisions Next

r3361 Wednesday 1st October, 2008 at 18:00:35 UTC by Wilbert Pol
Moved z80_daisy_chain configurations to the driver files.
[src/mess/drivers]kc.c mbee.c
[src/mess/includes]kc.h mbee.h
[src/mess/machine]kc.c mbee.c

src/mess/includes/kc.h
r3360r3361
7373
7474extern const z80pio_interface kc85_pio_intf;
7575extern const z80ctc_interface kc85_ctc_intf;
76extern const z80_daisy_chain kc85_daisy_chain[];
7776
7877
7978/*** MODULE SYSTEM ***/
src/mess/includes/mbee.h
r3360r3361
1515MACHINE_START( mbee );
1616
1717extern UINT8 *mbee_workram;
18extern const z80_daisy_chain mbee_daisy_chain[];
1918
2019INTERRUPT_GEN( mbee_interrupt );
2120
src/mess/machine/mbee.c
r3360r3361
3535UINT8 *mbee_workram;
3636
3737
38const z80_daisy_chain mbee_daisy_chain[] =
39{
40   { Z80PIO, "z80pio" },
41   { NULL }
42};
43
44
4538/*
4639  On reset or power on, a circuit forces rom 8000-8FFF to appear at 0000-0FFF, while ram is disabled.
4740  It gets set back to normal on the first attempt to write to memory. (/WR line goes active).
src/mess/machine/kc.c
r3360r3361
17701770};
17711771
17721772
1773/* pio is last in chain and therefore has highest priority */
1774
1775const z80_daisy_chain kc85_daisy_chain[] =
1776{
1777   { Z80PIO, "z80pio" },
1778   { Z80CTC, "z80ctc" },
1779   { NULL }
1780};
1781
17821773/* used in cassette write -> K0 */
17831774static WRITE8_DEVICE_HANDLER(kc85_zc0_callback)
17841775{
src/mess/drivers/mbee.c
r3360r3361
297297};
298298
299299
300static const z80_daisy_chain mbee_daisy_chain[] =
301{
302   { Z80PIO, "z80pio" },
303   { NULL }
304};
300305
306
301307static MACHINE_DRIVER_START( mbee )
302308   /* basic machine hardware */
303309   MDRV_CPU_ADD("main", Z80, XTAL_12MHz / 6)         /* 2 Mhz */
src/mess/drivers/kc.c
r3360r3361
303303INPUT_PORTS_END
304304
305305
306/* pio is last in chain and therefore has highest priority */
307
308static const z80_daisy_chain kc85_daisy_chain[] =
309{
310   { Z80PIO, "z80pio" },
311   { Z80CTC, "z80ctc" },
312   { NULL }
313};
314
315
306316/********************/
307317/** DISC INTERFACE **/
308318

Previous 15994 Revisions Next


© 1998-2018 The MESS Team