Previous 199869 Revisions Next

r29647 Tuesday 15th April, 2014 at 01:31:34 UTC by Angelo Salese
Wave Runner reads at TGP ID, hook it up
[src/mame/drivers]model2.c
[src/mame/includes]model2.h

trunk/src/mame/drivers/model2.c
r29646r29647
14251425   model2_3d_set_zclip( machine(), data & 0xFF );
14261426}
14271427
1428READ32_MEMBER(model2_state::tgpid_r)
1428/* Top Skater reads here, and (I assume) isn't happy otherwise */
1429READ8_MEMBER(model2_state::tgpid_r)
14291430{
1430   popmessage("Read from TGP ID, contact MAMEdev");
1431   return 0;
1431   unsigned char ID[]={0,'T','A','H',0,'A','K','O',0,'Z','A','K',0,'M','T','K'};
1432
1433   return ID[offset];
14321434}
14331435
14341436/* common map for all Model 2 versions */
r29646r29647
14491451
14501452   AM_RANGE(0x00980004, 0x00980007) AM_READ(fifoctl_r)
14511453   AM_RANGE(0x0098000c, 0x0098000f) AM_READWRITE(videoctl_r,videoctl_w)
1452   AM_RANGE(0x00980030, 0x0098005f) AM_READ(tgpid_r)
1454   AM_RANGE(0x00980030, 0x0098003f) AM_READ8(tgpid_r,0xffffffff)
14531455
14541456   AM_RANGE(0x00e80000, 0x00e80007) AM_READWRITE(model2_irq_r, model2_irq_w)
14551457
r29646r29647
15451547   AM_RANGE(0x00200000, 0x0023ffff) AM_RAM
15461548
15471549   AM_RANGE(0x00804000, 0x00807fff) AM_READWRITE(geo_prg_r, geo_prg_w)
1548
1549   AM_RANGE(0x00804000, 0x00807fff) AM_READWRITE(geo_prg_r, geo_prg_w)
15501550   AM_RANGE(0x00880000, 0x00883fff) AM_WRITE(copro_function_port_w)
15511551   AM_RANGE(0x00884000, 0x00887fff) AM_READWRITE(copro_fifo_r, copro_fifo_w)
15521552
r29646r29647
19031903   PORT_BIT( 0x0000ffff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "IN1")
19041904   PORT_BIT( 0xffff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "IN2")
19051905
1906   PORT_START("1c0000c")
1907   PORT_BIT( 0xffffffff, IP_ACTIVE_LOW, IPT_UNKNOWN )
1908
19061909   PORT_START("1c00010")
19071910   PORT_BIT( 0x0000ffff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "IN0")
19081911   PORT_BIT( 0xffff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "IN1")
trunk/src/mame/includes/model2.h
r29646r29647
167167   DECLARE_WRITE32_MEMBER(copro_sharc_buffer_w);
168168   DECLARE_READ32_MEMBER(copro_tgp_buffer_r);
169169   DECLARE_WRITE32_MEMBER(copro_tgp_buffer_w);
170   DECLARE_READ32_MEMBER(tgpid_r);
170   DECLARE_READ8_MEMBER(tgpid_r);
171171   DECLARE_READ8_MEMBER(driveio_port_r);
172172   DECLARE_WRITE8_MEMBER(driveio_port_w);
173173   DECLARE_READ8_MEMBER(driveio_port_str_r);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team