Previous 199869 Revisions Next

r29392 Monday 7th April, 2014 at 00:02:01 UTC by Alex Jackson
toaplan1.c: correct SCREEN_RAW_PARAMS for all games based on CRTC registers [Alex Jackson]
[src/mame/drivers]toaplan1.c

trunk/src/mame/drivers/toaplan1.c
r29391r29392
448448  - Spelling error on the Sound Check screen: "BUTTAN" instead of "BUTTON".
449449  - This set and 'outzonec' have a hidden use for the two "Unused" Dip Switches.
450450    If DSWA bit 0 ("Unused") and DSWB bit 7 (also "Unused") are both set to ON and
451    P2 joystick is held DOWN during startup, video registers 0x300008 and 0x340000
452    are loaded with different values than usual (code at 0x013868 and 0x013904).
453    Unfortunately, whatever difference this is supposed to make to the display is
454    not currently known nor emulated by MAME :(
451    P2 joystick is held DOWN during startup, the CRTC registers are programmed for a
452    smaller VTOTAL than usual, giving a higher frame rate but cutting off the edges
453    of the screen (the effect of this isn't correctly emulated yet)
455454  - Likewise, if DSWA bit 0 is ON and DSWB bit 7 is OFF, the game never starts up
456455    (it seems to infinitely repeat one of the RAM tests)
457456
r29391r29392
620619#include "includes/toaplan1.h"
621620#include "sound/3812intf.h"
622621
623#define PIXEL_CLOCK         (XTAL_28MHz/4)
624622
625/* freq      V Hz       H kHz
626Fire Shark   57.6132    14.82  -->  472.33 * 257.23 *note: H may be inaccurate
627Vimana       57.6125    14.78  -->  473.61 * 256.54 *note: H may be inaccurate
628
629** earlier measurements from another pcb owner, why are some of these off by 2Hz???
630Hellfire     57.59      ?
631Truxton      57.59      ?
632Rally Bike   55.14      ?
633Vimana       55.14      ?
634
635*/
636#define HTOTAL              (464)
637#define HBEND               (0)
638#define HBSTART             (320)
639
640#define VTOTAL              (262)
641#define VBEND               (0)
642#define VBSTART             (240)
643
644
645623/***************************** 68000 Memory Map *****************************/
646624
647625static ADDRESS_MAP_START( rallybik_main_map, AS_PROGRAM, 16, toaplan1_rallybik_state )
r29391r29392
17871765   m_audiocpu->set_input_line(0, state);
17881766}
17891767
1768#define PIXEL_CLOCK         (XTAL_28MHz/4)
17901769
1770// HTOTAL and VTOTAL taken from CRTC registers (toaplan1_bcu_control_w)
1771// rallybik, demonwld and outzone program a larger VTOTAL than the other
1772// games, giving them a lower frame rate
17911773
1774#define HTOTAL              ((224+1)*2)
1775#define HBEND               (0)
1776#define HBSTART             (320)
1777
1778#define VTOTAL              ((134+1)*2)
1779#define VTOTAL55            ((140+1)*2)
1780#define VBEND               (0)
1781#define VBSTART             (240)
1782
1783
17921784static MACHINE_CONFIG_START( rallybik, toaplan1_rallybik_state )
17931785
17941786   /* basic machine hardware */
r29391r29392
18071799   /* video hardware */
18081800   MCFG_SCREEN_ADD("screen", RASTER)
18091801   MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
1810   MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART)
1802   MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL55, VBEND, VBSTART)
18111803   MCFG_SCREEN_UPDATE_DRIVER(toaplan1_rallybik_state, screen_update_rallybik)
18121804   MCFG_SCREEN_VBLANK_DRIVER(toaplan1_rallybik_state, screen_eof_rallybik)
18131805   MCFG_SCREEN_PALETTE("palette")
r29391r29392
19651957   /* video hardware */
19661958   MCFG_SCREEN_ADD("screen", RASTER)
19671959   MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
1968   MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND+16, VBSTART+16)
1960   MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL55, VBEND+16, VBSTART+16)
19691961   MCFG_SCREEN_UPDATE_DRIVER(toaplan1_state, screen_update_toaplan1)
19701962   MCFG_SCREEN_VBLANK_DRIVER(toaplan1_state, screen_eof_toaplan1)
19711963   MCFG_SCREEN_PALETTE("palette")
r29391r29392
20392031   /* video hardware */
20402032   MCFG_SCREEN_ADD("screen", RASTER)
20412033   MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
2042   MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART)
2034   MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL55, VBEND, VBSTART)
20432035   MCFG_SCREEN_UPDATE_DRIVER(toaplan1_state, screen_update_toaplan1)
20442036   MCFG_SCREEN_VBLANK_DRIVER(toaplan1_state, screen_eof_toaplan1)
20452037   MCFG_SCREEN_PALETTE("palette")

Previous 199869 Revisions Next


© 1997-2024 The MAME Team