Previous 199869 Revisions Next

r26276 Monday 18th November, 2013 at 21:31:41 UTC by Angelo Salese
Fixed ADC irq generation in Chase Bombers, fixes proto and marked it as such. Sports lots of gfx bugs tho (ROM_LOADing issue(s), alpha / color blending et al.).
[src/mame/drivers]undrfire.c
[src/mame/includes]undrfire.h

trunk/src/mame/includes/undrfire.h
r26275r26276
5757   DECLARE_WRITE32_MEMBER(motor_control_w);
5858   DECLARE_WRITE32_MEMBER(cbombers_cpua_ctrl_w);
5959   DECLARE_READ32_MEMBER(cbombers_adc_r);
60   DECLARE_WRITE32_MEMBER(cbombers_adc_w);
60   DECLARE_WRITE8_MEMBER(cbombers_adc_w);
6161   DECLARE_CUSTOM_INPUT_MEMBER(frame_counter_r);
6262   DECLARE_DRIVER_INIT(undrfire);
6363   DECLARE_DRIVER_INIT(cbombers);
trunk/src/mame/drivers/undrfire.c
r26275r26276
6262    Todo
6363    ----
6464
65    This game needs a fake aim target!
66
6765    What does the 0xb00000 area do... alpha blending ??
6866
6967    What is the unknown hardware at 0x600000... an alternative
r26275r26276
7371    seen changing except in game inits. Perhaps only used
7472    in later levels?
7573
74    Chase Bombers title screen has wrong Taito logo;
7675
76    Chase Bombers proto sports lots of gfx bugs;
77
7778    Gun calibration
7879    ---------------
7980
r26275r26276
449450   return (ioport("STEER")->read() << 24);
450451}
451452
452WRITE32_MEMBER(undrfire_state::cbombers_adc_w)
453WRITE8_MEMBER(undrfire_state::cbombers_adc_w)
453454{
454455   /* One interrupt per input port (4 per frame, though only 2 used).
455456       1000 cycle delay is arbitrary */
456   timer_set(downcast<cpu_device *>(&space.device())->cycles_to_attotime(1000), TIMER_INTERRUPT5);
457   /* TODO: hook it up to offset 0 only otherwise cbomber proto keeps sending irqs.
458            Could or could not be right. */
459   if(offset == 0)
460      timer_set(downcast<cpu_device *>(&space.device())->cycles_to_attotime(1000), TIMER_INTERRUPT5);
457461}
458462
459463/***********************************************************
r26275r26276
487491   AM_RANGE(0x300000, 0x303fff) AM_RAM AM_SHARE("spriteram")
488492   AM_RANGE(0x400000, 0x400003) AM_WRITE(cbombers_cpua_ctrl_w)
489493   AM_RANGE(0x500000, 0x500007) AM_READWRITE(undrfire_input_r, undrfire_input_w)
490   AM_RANGE(0x600000, 0x600007) AM_READWRITE(cbombers_adc_r, cbombers_adc_w)
494   AM_RANGE(0x600000, 0x600007) AM_READ(cbombers_adc_r) AM_WRITE8(cbombers_adc_w,0xffffffff)
491495   AM_RANGE(0x700000, 0x7007ff) AM_RAM AM_SHARE("snd_shared")
492496   AM_RANGE(0x800000, 0x80ffff) AM_DEVREADWRITE("tc0480scp", tc0480scp_device, long_r, long_w)        /* tilemaps */
493497   AM_RANGE(0x830000, 0x83002f) AM_DEVREADWRITE("tc0480scp", tc0480scp_device, ctrl_long_r, ctrl_long_w)
r26275r26276
10331037   ROM_LOAD32_BYTE( "scp1hh_ic36.bin",         0x200003, 0x80000, CRC(24f545d8) SHA1(c5ae0e714ed4765f3416cb58bc9cfccfbf78081c) )
10341038
10351039   ROM_REGION( 0x1800000, "gfx2", 0 )
1036   // tiles 0x00000 - 0x07fff
1040   // tiles 0x00000 - 0x07fff
10371041   ROMX_LOAD( "obj0l_ic29.bin",   0x0000003, 0x80000, CRC(4b954950) SHA1(cafd9ba3128aa2e7dbde959a705aff8db6c311fa) , ROM_SKIP(7) ) // bp 1
10381042   ROMX_LOAD( "obj16l_ic20.bin",  0x0000002, 0x80000, CRC(b53932c0) SHA1(94ea6ccc29bd7b7e94d7494aaf0cc19b67c4ce72) , ROM_SKIP(7) ) // bp 2
10391043   ROMX_LOAD( "obj32l_ic51.bin",  0x0000001, 0x80000, CRC(f23f7253) SHA1(cbff5aee79d1b4990a35d5fc55e348aa81b2b5d3) , ROM_SKIP(7) ) // bp 3
r26275r26276
10661070   ROMX_LOAD( "ic80_d511.bin",    0x0800004, 0x80000, CRC(37da5baf) SHA1(a78ac413de08a1ff70ab14561b75df633a9e5be8) , ROM_SKIP(7) ) // bp 4
10671071   ROMX_LOAD( "ic81_e150.bin",    0x1400000, 0x80000, CRC(48dbc4fb) SHA1(acec207d05a8ea615f27216fbfd567cc630e5191) , ROM_SKIP(7) ) // bp 5
10681072   ROMX_LOAD( "ic82_3d3d.bin",    0x1400004, 0x80000, CRC(3e62970e) SHA1(82970accb4ce29034e7b97b74c831ec0314c5a8f) , ROM_SKIP(7) ) // bp 5
1069   
1073
10701074   ROM_REGION( 0x400000, "gfx3", 0 )
10711075   ROM_LOAD16_BYTE( "ic44_scc1.bin",  0x000001, 0x080000, CRC(868d0d3d) SHA1(29251d545548856296b5ae32a96f2eeef2418dc4) )
10721076   ROM_LOAD16_BYTE( "ic43_scc4.bin",  0x000000, 0x080000, CRC(2f170ee4) SHA1(2b8f07186c9f7589e1af131b8c377443a29bd149) )
r26275r26276
11671171GAME( 1993, undrfire,  0,        undrfire, undrfire, undrfire_state, undrfire, ROT0, "Taito Corporation Japan",   "Under Fire (World)", 0 )
11681172GAME( 1993, undrfireu, undrfire, undrfire, undrfire, undrfire_state, undrfire, ROT0, "Taito America Corporation", "Under Fire (US)", 0 )
11691173GAME( 1993, undrfirej, undrfire, undrfire, undrfire, undrfire_state, undrfire, ROT0, "Taito Corporation",         "Under Fire (Japan)", 0 )
1170GAMEL(1994, cbombers,  0,        cbombers, cbombers, undrfire_state, cbombers, ROT0, "Taito Corporation Japan",   "Chase Bombers (World)", GAME_IMPERFECT_GRAPHICS, layout_cbombers )
1171GAMEL(1994, cbombersj, cbombers, cbombers, cbombers, undrfire_state, cbombers, ROT0, "Taito Corporation",         "Chase Bombers (Japan)", GAME_IMPERFECT_GRAPHICS, layout_cbombers )
1172GAMEL(1994, cbombersp, cbombers, cbombers, cbombers, undrfire_state, cbombers, ROT0, "Taito Corporation",         "Chase Bombers (prototype)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS, layout_cbombers )
1174GAMEL(1994, cbombers,  0,        cbombers, cbombers, undrfire_state, cbombers, ROT0, "Taito Corporation Japan",   "Chase Bombers (World)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS, layout_cbombers )
1175GAMEL(1994, cbombersj, cbombers, cbombers, cbombers, undrfire_state, cbombers, ROT0, "Taito Corporation",         "Chase Bombers (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS, layout_cbombers )
1176GAMEL(1994, cbombersp, cbombers, cbombers, cbombers, undrfire_state, cbombers, ROT0, "Taito Corporation",         "Chase Bombers (Japan Prototype)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS, layout_cbombers )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team