trunk/src/mame/drivers/equites.c
| r250136 | r250137 | |
| 63 | 63 | 5) 'hvoltage' |
| 64 | 64 | |
| 65 | 65 | - There is sort of "debug mode" that you can access if 0x000038.w returns 0x0000 |
| 66 | | instead of 0xffff. To enable it, turn HVOLTAGE_DEBUG to 1 then enable the fake |
| 67 | | Dip Switch. |
| 66 | instead of 0xffff. To enable it, use the MAME debugger or cheats. |
| 68 | 67 | - When you are in "debug mode", the Inputs and Dip Switches have special features. |
| 69 | 68 | Here is IMO the full list : |
| 70 | 69 | |
| r250136 | r250137 | |
| 364 | 363 | #include "machine/nvram.h" |
| 365 | 364 | #include "includes/equites.h" |
| 366 | 365 | |
| 367 | | #define HVOLTAGE_DEBUG 0 |
| 368 | | |
| 369 | 366 | #define FRQ_ADJUSTER_TAG "FRQ" |
| 370 | 367 | |
| 371 | 368 | // MSM5232 clock is generated by a transistor oscillator circuit, not by the pcb xtal |
| r250136 | r250137 | |
| 378 | 375 | |
| 379 | 376 | |
| 380 | 377 | |
| 381 | | |
| 382 | 378 | /******************************************************************************/ |
| 383 | 379 | // Sound |
| 384 | 380 | |
| r250136 | r250137 | |
| 602 | 598 | /******************************************************************************/ |
| 603 | 599 | // Main CPU Handlers |
| 604 | 600 | |
| 605 | | #if HVOLTAGE_DEBUG |
| 606 | | READ16_MEMBER(equites_state::hvoltage_debug_r) |
| 607 | | { |
| 608 | | return(ioport("FAKE")->read()); |
| 609 | | } |
| 610 | | #endif |
| 611 | | |
| 612 | | |
| 613 | 601 | CUSTOM_INPUT_MEMBER(equites_state::gekisou_unknown_status) |
| 614 | 602 | { |
| 615 | 603 | return m_unknown_bit; |
| r250136 | r250137 | |
| 945 | 933 | PORT_START("IN1") |
| 946 | 934 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 947 | 935 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 948 | | #if HVOLTAGE_DEBUG |
| 949 | | PORT_DIPNAME( 0x0400, 0x0000, "Invulnerability" ) PORT_DIPLOCATION("SW:!6") |
| 950 | | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 951 | | PORT_DIPSETTING( 0x0400, DEF_STR( On ) ) |
| 952 | | PORT_DIPNAME( 0x0800, 0x0000, "Need to kill Bosses" ) PORT_DIPLOCATION("SW:!5") |
| 953 | | PORT_DIPSETTING( 0x0800, DEF_STR( No ) ) |
| 954 | | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) |
| 955 | | #else |
| 956 | 936 | PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR ( Difficulty ) ) PORT_DIPLOCATION("SW:!6,!5") |
| 957 | 937 | PORT_DIPSETTING( 0x0400, DEF_STR( Easy ) ) |
| 958 | 938 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) |
| 959 | 939 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 960 | 940 | PORT_DIPSETTING( 0x0c00, DEF_STR( Hardest ) ) |
| 961 | | #endif |
| 962 | 941 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR ( Lives ) ) PORT_DIPLOCATION("SW:!4") // See notes |
| 963 | 942 | PORT_DIPSETTING( 0x0000, "3" ) |
| 964 | 943 | PORT_DIPSETTING( 0x1000, "5" ) |
| r250136 | r250137 | |
| 971 | 950 | PORT_DIPSETTING( 0x4000, "A 1C/2C B 1C/4C" ) |
| 972 | 951 | PORT_DIPSETTING( 0x8000, "A 1C/3C B 1C/6C" ) |
| 973 | 952 | |
| 974 | | #if HVOLTAGE_DEBUG |
| 975 | | /* Fake port to handle debug mode */ |
| 976 | | PORT_START("FAKE") |
| 977 | | PORT_DIPNAME( 0xffff, 0xffff, "Debug Mode" ) |
| 978 | | PORT_DIPSETTING( 0xffff, DEF_STR( Off ) ) |
| 979 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 980 | | #endif |
| 981 | | |
| 982 | 953 | /* this is actually a variable resistor */ |
| 983 | 954 | PORT_START(FRQ_ADJUSTER_TAG) |
| 984 | 955 | PORT_ADJUSTER(27, "MSM5232 Clock") |
| r250136 | r250137 | |
| 1852 | 1823 | unpack_region("gfx3"); |
| 1853 | 1824 | } |
| 1854 | 1825 | |
| 1855 | | DRIVER_INIT_MEMBER(equites_state,hvoltage) |
| 1856 | | { |
| 1857 | | unpack_region("gfx3"); |
| 1858 | 1826 | |
| 1859 | | #if HVOLTAGE_DEBUG |
| 1860 | | m_maincpu->space(AS_PROGRAM).install_read_handler(0x000038, 0x000039, read16_delegate(FUNC(equites_state::hvoltage_debug_r),this)); |
| 1861 | | #endif |
| 1862 | | } |
| 1863 | 1827 | |
| 1864 | | |
| 1865 | | |
| 1866 | 1828 | /******************************************************************************/ |
| 1867 | 1829 | |
| 1868 | 1830 | // Game Entries |
| r250136 | r250137 | |
| 1877 | 1839 | |
| 1878 | 1840 | // Splendor Blast Hardware |
| 1879 | 1841 | GAME( 1985, splndrbt, 0, splndrbt, splndrbt, equites_state, splndrbt, ROT0, "Alpha Denshi Co.", "Splendor Blast", MACHINE_IMPERFECT_SOUND | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE ) |
| 1880 | | GAME( 1985, hvoltage, 0, hvoltage, hvoltage, equites_state, hvoltage, ROT0, "Alpha Denshi Co.", "High Voltage", MACHINE_UNEMULATED_PROTECTION | MACHINE_IMPERFECT_SOUND | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE ) |
| 1842 | GAME( 1985, hvoltage, 0, hvoltage, hvoltage, equites_state, splndrbt, ROT0, "Alpha Denshi Co.", "High Voltage", MACHINE_UNEMULATED_PROTECTION | MACHINE_IMPERFECT_SOUND | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE ) |