Previous 15994 Revisions Next

r4035 Wednesday 31st December, 2008 at 17:24:08 UTC by Miodrag Milanović
[AMIGA] CDTV regression fixed
[src/mess/drivers]amiga.c

src/mess/drivers/amiga.c
r4034r4035
3737
3838
3939static UINT8 amiga_cia_0_portA_r(const device_config *device);
40static UINT8 amiga_cia_0_cdtv_portA_r(const device_config *device);
4041static void amiga_cia_0_portA_w(const device_config *device, UINT8 data);
4142
4243/***************************************************************************
r4034r4035
5152
5253
5354static WRITE16_HANDLER( amiga_clock_w )
54{
55{
5556   const device_config *rtc = device_list_find_by_tag(space->machine->config->devicelist, MSM6242, "rtc");
5657   msm6242_w(rtc, offset / 2, data);
5758}
r4034r4035
196197   PORT_INCLUDE( amiga_common )
197198INPUT_PORTS_END
198199
199
200200/***************************************************************************
201201  Machine drivers
202202***************************************************************************/
r4034r4035
256256   amiga_cia_0_irq,                           /* irq_func */
257257   0,                                       /* tod_clock */
258258   {
259      { amiga_cia_0_portA_r, amiga_cia_0_portA_w },   /* port A */
259      { amiga_cia_0_cdtv_portA_r, amiga_cia_0_portA_w },   /* port A */
260260      { NULL, NULL }                           /* port B */
261261   }
262262};
r4034r4035
267267   0,                                       /* tod_clock */
268268   {
269269      { NULL, NULL, },                        /* port A */
270      { NULL, amiga_fdc_control_w }               /* port B */
270      { NULL, NULL }               /* port B */
271271   }
272272};
273273
r4034r4035
410410   return ret;
411411}
412412
413
414static UINT8 amiga_cia_0_cdtv_portA_r(const device_config *device)
415{
416   return input_port_read(device->machine, "CIA0PORTA") & 0xc0;   /* Gameport 1 and 0 buttons */
417}
418
419
413420static void amiga_cia_0_portA_w(const device_config *device, UINT8 data)
414421{
415422   /* switch banks as appropriate */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team