trunk/src/mame/drivers/naomi.c
r32705 | r32706 | |
1780 | 1780 | } |
1781 | 1781 | |
1782 | 1782 | return U64(0xffffffffffffffff); |
1783 | | } |
| 1783 | } else |
| 1784 | if (reg == 0x284/4) |
| 1785 | return U64(0xffffffffffffff00) | aw_ctrl_type; |
| 1786 | |
1784 | 1787 | |
1785 | 1788 | osd_printf_verbose("MODEM: Unmapped read %08x\n", 0x600000+reg*4); |
1786 | 1789 | return 0; |
r32705 | r32706 | |
1794 | 1797 | |
1795 | 1798 | reg = decode_reg32_64(offset, mem_mask, &shift); |
1796 | 1799 | dat = (UINT32)(data >> shift); |
| 1800 | if (reg == 0x284/4) |
| 1801 | { |
| 1802 | /* |
| 1803 | 0x00600284 rw ddccbbaa |
| 1804 | aa/bb/cc/dd - set type of Maple devices at ports 0/1/2/3 |
| 1805 | 0 - regular DC controller, but with 4 analogue channels (default) |
| 1806 | 1 - DC lightgun |
| 1807 | 2 - DC mouse/trackball |
| 1808 | TODO: hook this then MAME have such devices emulated |
| 1809 | */ |
| 1810 | aw_ctrl_type = dat & 0xFF; |
| 1811 | } |
| 1812 | |
1797 | 1813 | osd_printf_verbose("MODEM: [%08x=%x] write %" I64FMT "x to %x, mask %" I64FMT "x\n", 0x600000+reg*4, dat, data, offset, mem_mask); |
1798 | 1814 | } |
1799 | 1815 | |
r32705 | r32706 | |
8346 | 8362 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
8347 | 8363 | //PIC16C621A (317-0406-COM) |
8348 | 8364 | //(sticker 253-5508-0406) |
8349 | | ROM_LOAD("317-0406-com.pic", 0x00, 0x4000, NO_DUMP ) |
| 8365 | ROM_LOAD("317-0406-com.pic", 0x00, 0x4000, CRC(fe91a7af) SHA1(3562d8d454ac6e5b73a24d4dc8928ef24687cdf7) ) |
8350 | 8366 | ROM_END |
8351 | 8367 | |
8352 | 8368 | |
r32705 | r32706 | |
8362 | 8378 | |
8363 | 8379 | // patch out long startup delay |
8364 | 8380 | ROM[0x98e/8] = (ROM[0x98e/8] & U64(0xffffffffffff)) | (UINT64)0x0009<<48; |
| 8381 | |
| 8382 | aw_ctrl_type = 0; |
8365 | 8383 | } |
8366 | 8384 | |
8367 | 8385 | ROM_START( fotns ) |