Previous 15994 Revisions Next

r3344 Sunday 28th September, 2008 at 15:49:22 UTC by Wilbert Pol
[NASCOM1/2] Added z80pio device.
[src/mess/drivers]nascom1.c

src/mess/drivers/nascom1.c
r3343r3344
8888   AM_RANGE(0x00, 0x00) AM_READWRITE(nascom1_port_00_r, nascom1_port_00_w)
8989   AM_RANGE(0x01, 0x01) AM_READWRITE(nascom1_port_01_r, nascom1_port_01_w)
9090   AM_RANGE(0x02, 0x02) AM_READ(nascom1_port_02_r)
91//   AM_RANGE(0x04, 0x07) AM_READWRITE( z80pio_0_r, z80pio_0_w )
91   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE( Z80PIO, "z80pio", z80pio_r, z80pio_w )
9292ADDRESS_MAP_END
9393
9494
r3343r3344
9797   AM_RANGE(0x00, 0x00) AM_READWRITE(nascom1_port_00_r, nascom1_port_00_w)
9898   AM_RANGE(0x01, 0x01) AM_READWRITE(nascom1_port_01_r, nascom1_port_01_w)
9999   AM_RANGE(0x02, 0x02) AM_READ(nascom1_port_02_r)
100//   AM_RANGE(0x04, 0x07) AM_READWRITE( z80_pio_0_r, z80pio_0_w )
100   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE( Z80PIO, "z80pio", z80pio_r, z80pio_w )
101101   AM_RANGE(0xe0, 0xe3) AM_READWRITE(wd17xx_r, wd17xx_w)
102102   AM_RANGE(0xe4, 0xe4) AM_READWRITE(nascom2_fdc_select_r, nascom2_fdc_select_w)
103103   AM_RANGE(0xe5, 0xe5) AM_READ(nascom2_fdc_status_r)
r3343r3344
262262};
263263
264264
265static const z80pio_interface nascom1_z80pio_intf =
266{
267   NULL,
268   NULL,
269   NULL,
270   NULL,
271   NULL,
272   NULL,
273   NULL
274};
275
276
265277static MACHINE_DRIVER_START( nascom1 )
266278   /* basic machine hardware */
267279   MDRV_CPU_ADD("main", Z80, XTAL_16MHz/8)
r3343r3344
285297
286298   MDRV_AY31015_ADD( "hd6402", nascom1_ay31015_config )
287299
300   MDRV_Z80PIO_ADD( "z80pio", nascom1_z80pio_intf )
301
288302   /* devices */
289303   MDRV_SNAPSHOT_ADD(nascom1, "nas", 0.5)
290304

Previous 15994 Revisions Next


© 1998-2018 The MESS Team