Previous 199869 Revisions Next

r32706 Monday 13th October, 2014 at 15:43:12 UTC by Tafoid
naomi.c:
- Atomiswave controller type register [MetalliC]
- Added InitialD Ver3 Cycraft PIC key [anonymous, MetalliC]
[src/mame/drivers]naomi.c
[src/mame/includes]naomi.h

trunk/src/mame/includes/naomi.h
r32705r32706
6767   int jvsboard_type;
6868   UINT16 actel_id;
6969
70   UINT8 aw_ctrl_type;
71
7072   UINT8 asciihex_to_dec(UINT8 in);
7173   void create_pic_from_retdat();
7274
trunk/src/mame/drivers/naomi.c
r32705r32706
17801780      }
17811781
17821782      return U64(0xffffffffffffffff);
1783   }
1783   } else
1784      if (reg == 0x284/4)
1785         return U64(0xffffffffffffff00) | aw_ctrl_type;
1786   
17841787
17851788   osd_printf_verbose("MODEM:  Unmapped read %08x\n", 0x600000+reg*4);
17861789   return 0;
r32705r32706
17941797
17951798   reg = decode_reg32_64(offset, mem_mask, &shift);
17961799   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
17971813   osd_printf_verbose("MODEM: [%08x=%x] write %" I64FMT "x to %x, mask %" I64FMT "x\n", 0x600000+reg*4, dat, data, offset, mem_mask);
17981814}
17991815
r32705r32706
83468362   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
83478363   //PIC16C621A (317-0406-COM)
83488364   //(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) )
83508366ROM_END
83518367
83528368
r32705r32706
83628378
83638379   // patch out long startup delay
83648380   ROM[0x98e/8] = (ROM[0x98e/8] & U64(0xffffffffffff)) | (UINT64)0x0009<<48;
8381
8382   aw_ctrl_type = 0;
83658383}
83668384
83678385ROM_START( fotns )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team