trunk/src/mame/drivers/toaplan1.c
| r29391 | r29392 | |
| 448 | 448 | - Spelling error on the Sound Check screen: "BUTTAN" instead of "BUTTON". |
| 449 | 449 | - This set and 'outzonec' have a hidden use for the two "Unused" Dip Switches. |
| 450 | 450 | 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) |
| 455 | 454 | - Likewise, if DSWA bit 0 is ON and DSWB bit 7 is OFF, the game never starts up |
| 456 | 455 | (it seems to infinitely repeat one of the RAM tests) |
| 457 | 456 | |
| r29391 | r29392 | |
| 620 | 619 | #include "includes/toaplan1.h" |
| 621 | 620 | #include "sound/3812intf.h" |
| 622 | 621 | |
| 623 | | #define PIXEL_CLOCK (XTAL_28MHz/4) |
| 624 | 622 | |
| 625 | | /* freq V Hz H kHz |
| 626 | | Fire Shark 57.6132 14.82 --> 472.33 * 257.23 *note: H may be inaccurate |
| 627 | | Vimana 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??? |
| 630 | | Hellfire 57.59 ? |
| 631 | | Truxton 57.59 ? |
| 632 | | Rally Bike 55.14 ? |
| 633 | | Vimana 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 | | |
| 645 | 623 | /***************************** 68000 Memory Map *****************************/ |
| 646 | 624 | |
| 647 | 625 | static ADDRESS_MAP_START( rallybik_main_map, AS_PROGRAM, 16, toaplan1_rallybik_state ) |
| r29391 | r29392 | |
| 1787 | 1765 | m_audiocpu->set_input_line(0, state); |
| 1788 | 1766 | } |
| 1789 | 1767 | |
| 1768 | #define PIXEL_CLOCK (XTAL_28MHz/4) |
| 1790 | 1769 | |
| 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 |
| 1791 | 1773 | |
| 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 | |
| 1792 | 1784 | static MACHINE_CONFIG_START( rallybik, toaplan1_rallybik_state ) |
| 1793 | 1785 | |
| 1794 | 1786 | /* basic machine hardware */ |
| r29391 | r29392 | |
| 1807 | 1799 | /* video hardware */ |
| 1808 | 1800 | MCFG_SCREEN_ADD("screen", RASTER) |
| 1809 | 1801 | 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) |
| 1811 | 1803 | MCFG_SCREEN_UPDATE_DRIVER(toaplan1_rallybik_state, screen_update_rallybik) |
| 1812 | 1804 | MCFG_SCREEN_VBLANK_DRIVER(toaplan1_rallybik_state, screen_eof_rallybik) |
| 1813 | 1805 | MCFG_SCREEN_PALETTE("palette") |
| r29391 | r29392 | |
| 1965 | 1957 | /* video hardware */ |
| 1966 | 1958 | MCFG_SCREEN_ADD("screen", RASTER) |
| 1967 | 1959 | 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) |
| 1969 | 1961 | MCFG_SCREEN_UPDATE_DRIVER(toaplan1_state, screen_update_toaplan1) |
| 1970 | 1962 | MCFG_SCREEN_VBLANK_DRIVER(toaplan1_state, screen_eof_toaplan1) |
| 1971 | 1963 | MCFG_SCREEN_PALETTE("palette") |
| r29391 | r29392 | |
| 2039 | 2031 | /* video hardware */ |
| 2040 | 2032 | MCFG_SCREEN_ADD("screen", RASTER) |
| 2041 | 2033 | 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) |
| 2043 | 2035 | MCFG_SCREEN_UPDATE_DRIVER(toaplan1_state, screen_update_toaplan1) |
| 2044 | 2036 | MCFG_SCREEN_VBLANK_DRIVER(toaplan1_state, screen_eof_toaplan1) |
| 2045 | 2037 | MCFG_SCREEN_PALETTE("palette") |