trunk/src/mame/drivers/model2.c
| r29646 | r29647 | |
| 1425 | 1425 | model2_3d_set_zclip( machine(), data & 0xFF ); |
| 1426 | 1426 | } |
| 1427 | 1427 | |
| 1428 | | READ32_MEMBER(model2_state::tgpid_r) |
| 1428 | /* Top Skater reads here, and (I assume) isn't happy otherwise */ |
| 1429 | READ8_MEMBER(model2_state::tgpid_r) |
| 1429 | 1430 | { |
| 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]; |
| 1432 | 1434 | } |
| 1433 | 1435 | |
| 1434 | 1436 | /* common map for all Model 2 versions */ |
| r29646 | r29647 | |
| 1449 | 1451 | |
| 1450 | 1452 | AM_RANGE(0x00980004, 0x00980007) AM_READ(fifoctl_r) |
| 1451 | 1453 | 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) |
| 1453 | 1455 | |
| 1454 | 1456 | AM_RANGE(0x00e80000, 0x00e80007) AM_READWRITE(model2_irq_r, model2_irq_w) |
| 1455 | 1457 | |
| r29646 | r29647 | |
| 1545 | 1547 | AM_RANGE(0x00200000, 0x0023ffff) AM_RAM |
| 1546 | 1548 | |
| 1547 | 1549 | 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) |
| 1550 | 1550 | AM_RANGE(0x00880000, 0x00883fff) AM_WRITE(copro_function_port_w) |
| 1551 | 1551 | AM_RANGE(0x00884000, 0x00887fff) AM_READWRITE(copro_fifo_r, copro_fifo_w) |
| 1552 | 1552 | |
| r29646 | r29647 | |
| 1903 | 1903 | PORT_BIT( 0x0000ffff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "IN1") |
| 1904 | 1904 | PORT_BIT( 0xffff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "IN2") |
| 1905 | 1905 | |
| 1906 | PORT_START("1c0000c") |
| 1907 | PORT_BIT( 0xffffffff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1908 | |
| 1906 | 1909 | PORT_START("1c00010") |
| 1907 | 1910 | PORT_BIT( 0x0000ffff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "IN0") |
| 1908 | 1911 | PORT_BIT( 0xffff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "IN1") |