Previous 199869 Revisions Next

r41625 Friday 6th November, 2015 at 19:33:19 UTC by hap
get rid of HVOLTAGE_DEBUG
[src/mame/drivers]equites.c
[src/mame/includes]equites.h

trunk/src/mame/drivers/equites.c
r250136r250137
63635) 'hvoltage'
6464
6565  - 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.
6867  - When you are in "debug mode", the Inputs and Dip Switches have special features.
6968    Here is IMO the full list :
7069
r250136r250137
364363#include "machine/nvram.h"
365364#include "includes/equites.h"
366365
367#define HVOLTAGE_DEBUG  0
368
369366#define FRQ_ADJUSTER_TAG    "FRQ"
370367
371368// MSM5232 clock is generated by a transistor oscillator circuit, not by the pcb xtal
r250136r250137
378375
379376
380377
381
382378/******************************************************************************/
383379// Sound
384380
r250136r250137
602598/******************************************************************************/
603599// Main CPU Handlers
604600
605#if HVOLTAGE_DEBUG
606READ16_MEMBER(equites_state::hvoltage_debug_r)
607{
608   return(ioport("FAKE")->read());
609}
610#endif
611
612
613601CUSTOM_INPUT_MEMBER(equites_state::gekisou_unknown_status)
614602{
615603   return m_unknown_bit;
r250136r250137
945933   PORT_START("IN1")
946934   PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_COIN1 )
947935   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
956936   PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR ( Difficulty ) ) PORT_DIPLOCATION("SW:!6,!5")
957937   PORT_DIPSETTING(      0x0400, DEF_STR( Easy ) )
958938   PORT_DIPSETTING(      0x0000, DEF_STR( Normal ) )
959939   PORT_DIPSETTING(      0x0800, DEF_STR( Hard ) )
960940   PORT_DIPSETTING(      0x0c00, DEF_STR( Hardest ) )
961#endif
962941   PORT_DIPNAME( 0x1000, 0x0000, DEF_STR ( Lives ) ) PORT_DIPLOCATION("SW:!4") // See notes
963942   PORT_DIPSETTING(      0x0000, "3" )
964943   PORT_DIPSETTING(      0x1000, "5" )
r250136r250137
971950   PORT_DIPSETTING(      0x4000, "A 1C/2C B 1C/4C" )
972951   PORT_DIPSETTING(      0x8000, "A 1C/3C B 1C/6C" )
973952
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
982953   /* this is actually a variable resistor */
983954   PORT_START(FRQ_ADJUSTER_TAG)
984955   PORT_ADJUSTER(27, "MSM5232 Clock")
r250136r250137
18521823   unpack_region("gfx3");
18531824}
18541825
1855DRIVER_INIT_MEMBER(equites_state,hvoltage)
1856{
1857   unpack_region("gfx3");
18581826
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}
18631827
1864
1865
18661828/******************************************************************************/
18671829
18681830// Game Entries
r250136r250137
18771839
18781840// Splendor Blast Hardware
18791841GAME( 1985, splndrbt, 0,        splndrbt, splndrbt, equites_state, splndrbt, ROT0,  "Alpha Denshi Co.", "Splendor Blast", MACHINE_IMPERFECT_SOUND | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
1880GAME( 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 )
1842GAME( 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 )
trunk/src/mame/includes/equites.h
r250136r250137
8585   DECLARE_WRITE8_MEMBER(equites_dac_latch_w);
8686   DECLARE_WRITE8_MEMBER(equites_8155_portb_w);
8787   DECLARE_WRITE8_MEMBER(equites_8155_w);
88   DECLARE_READ16_MEMBER(hvoltage_debug_r);
8988   DECLARE_WRITE16_MEMBER(gekisou_unknown_0_w);
9089   DECLARE_WRITE16_MEMBER(gekisou_unknown_1_w);
9190   DECLARE_READ16_MEMBER(equites_spriteram_kludge_r);
r250136r250137
111110   DECLARE_WRITE8_MEMBER(equites_8910portb_w);
112111   DECLARE_DRIVER_INIT(bullfgtr);
113112   DECLARE_DRIVER_INIT(kouyakyu);
114   DECLARE_DRIVER_INIT(hvoltage);
115113   DECLARE_DRIVER_INIT(gekisou);
116114   DECLARE_DRIVER_INIT(splndrbt);
117115   DECLARE_DRIVER_INIT(equites);


Previous 199869 Revisions Next


© 1997-2024 The MAME Team