Previous 199869 Revisions Next

r18491 Friday 12th October, 2012 at 15:38:54 UTC by hap
fix qbertqub coincounter
[src/mame/drivers]gottlieb.c
[src/mame/includes]gottlieb.h
[src/mame/video]gottlieb.c

trunk/src/mame/video/gottlieb.c
r18490r18491
6363      flip_screen_y_set(data & 0x04);
6464      machine().tilemap().mark_all_dirty();
6565   }
66
67   /* in Q*Bert Qubes only, bit 4 controls the sprite bank */
68   m_spritebank = (data & 0x10) >> 4;
6966}
7067
7168
7269WRITE8_MEMBER(gottlieb_state::gottlieb_laserdisc_video_control_w)
7370{
74
7571   /* bit 0 works like the other games */
7672   gottlieb_video_control_w(space, offset, data & 0x01);
7773
trunk/src/mame/includes/gottlieb.h
r18490r18491
241241        m_r2_sound(*this, "r2sound"),
242242        m_videoram(*this, "videoram"),
243243        m_charram(*this, "charram"),
244        m_spriteram(*this, "spriteram") { }
244        m_spriteram(*this, "spriteram")
245   { }
245246
246247   // devices
247248   required_device<i8088_device> m_maincpu;
r18490r18491
275276   UINT8 m_transparent0;
276277   tilemap_t *m_bg_tilemap;
277278   double m_weights[4];
279
278280   DECLARE_WRITE8_MEMBER(gottlieb_analog_reset_w);
279281   DECLARE_WRITE8_MEMBER(general_output_w);
280282   DECLARE_WRITE8_MEMBER(reactor_output_w);
281283   DECLARE_WRITE8_MEMBER(stooges_output_w);
284   DECLARE_WRITE8_MEMBER(qbertqub_output_w);
282285   DECLARE_READ8_MEMBER(laserdisc_status_r);
283286   DECLARE_WRITE8_MEMBER(laserdisc_select_w);
284287   DECLARE_WRITE8_MEMBER(laserdisc_command_w);
r18490r18491
295298   DECLARE_DRIVER_INIT(vidvince);
296299   DECLARE_DRIVER_INIT(ramtiles);
297300   DECLARE_DRIVER_INIT(stooges);
301   DECLARE_DRIVER_INIT(qbertqub);
298302   TILE_GET_INFO_MEMBER(get_bg_tile_info);
299303   TILE_GET_INFO_MEMBER(get_screwloo_bg_tile_info);
300304   virtual void machine_start();
trunk/src/mame/drivers/gottlieb.c
r18490r18491
324324   /* bit 7 controls the optional coin lockout; it appears that no games used this */
325325}
326326
327
327// custom overrides
328328WRITE8_MEMBER(gottlieb_state::reactor_output_w)
329329{
330330   general_output_w(space, offset, data & ~0xe0);
331
331332   set_led_status(machine(), 0, data & 0x20);
332333   set_led_status(machine(), 1, data & 0x40);
333334   set_led_status(machine(), 2, data & 0x80);
334335}
335336
337WRITE8_MEMBER(gottlieb_state::qbertqub_output_w)
338{
339   // coincounter is on bit 5 instead
340   general_output_w(space, offset, (data >> 1 & 0x10) | (data & ~0x30));
336341
342   // bit 4 controls the sprite bank
343   m_spritebank = (data & 0x10) >> 4;
344}
345
337346WRITE8_MEMBER(gottlieb_state::stooges_output_w)
338347{
339348   general_output_w(space, offset, data & ~0x60);
349
350   // bit 5,6: joystick input multiplexer
340351   m_joystick_select = (data >> 5) & 0x03;
341352}
342353
r18490r18491
24302441}
24312442
24322443
2444DRIVER_INIT_MEMBER(gottlieb_state,qbertqub)
2445{
2446   DRIVER_INIT_CALL(romtiles);
2447   machine().device("maincpu")->memory().space(AS_PROGRAM).install_write_handler(0x5803, 0x5803, 0, 0x07f8, write8_delegate(FUNC(gottlieb_state::qbertqub_output_w),this));
2448}
2449
2450
24332451DRIVER_INIT_MEMBER(gottlieb_state,stooges)
24342452{
24352453   DRIVER_INIT_CALL(ramtiles);
2436   machine().device("maincpu")->memory().space(AS_PROGRAM).install_write_handler(0x05803, 0x05803, 0, 0x07f8, write8_delegate(FUNC(gottlieb_state::stooges_output_w),this));
2454   machine().device("maincpu")->memory().space(AS_PROGRAM).install_write_handler(0x5803, 0x5803, 0, 0x07f8, write8_delegate(FUNC(gottlieb_state::stooges_output_w),this));
24372455}
24382456
24392457
r18490r18491
24742492GAME( 1983, krull,     0,        gottlieb1, krull,    gottlieb_state, ramtiles, ROT270, "Gottlieb", "Krull", 0 )
24752493GAME( 1983, kngtmare,  0,        gottlieb1, kngtmare, gottlieb_state, romtiles, ROT0,   "Gottlieb", "Knightmare (prototype)", GAME_NO_SOUND )
24762494GAME( 1983, sqbert,    0,        qbert,     qbert,    gottlieb_state, romtiles, ROT270, "Mylstar", "Faster, Harder, More Challenging Q*bert (prototype)", GAME_IMPERFECT_SOUND )
2477GAME( 1983, qbertqub,  0,        qbert,     qbertqub, gottlieb_state, romtiles, ROT270, "Mylstar", "Q*bert's Qubes", GAME_IMPERFECT_SOUND )
2495GAME( 1983, qbertqub,  0,        qbert,     qbertqub, gottlieb_state, qbertqub, ROT270, "Mylstar", "Q*bert's Qubes", GAME_IMPERFECT_SOUND )
24782496GAME( 1984, curvebal,  0,        gottlieb1, curvebal, gottlieb_state, romtiles, ROT270, "Mylstar", "Curve Ball", 0 )
24792497
24802498/* games using rev 2 sound board */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team