1942: correct default lives dipswitch,

igor: lcd battery segment is unused
This commit is contained in:
hap 2024-04-12 14:51:45 +02:00
parent 5b50e61af3
commit 700ed63aee
4 changed files with 31 additions and 26 deletions

View File

@ -181,6 +181,7 @@ constexpr XTAL MASTER_CLOCK(12_MHz_XTAL);
constexpr XTAL MAIN_CPU_CLOCK(MASTER_CLOCK/4);
constexpr XTAL SOUND_CPU_CLOCK(MASTER_CLOCK/4);
constexpr XTAL AUDIO_CLOCK(MASTER_CLOCK/8);
/* 20mhz OSC - both Z80s are 4 MHz */
constexpr XTAL MASTER_CLOCK_1942P(20_MHz_XTAL);
constexpr XTAL MAIN_CPU_CLOCK_1942P(MASTER_CLOCK_1942P/5);
@ -189,6 +190,7 @@ constexpr XTAL AUDIO_CLOCK_1942P(MASTER_CLOCK_1942P/16);
} // anonymous namespace
void _1942_state::_1942_bankswitch_w(uint8_t data)
{
membank("bank1")->set_entry(data & 0x03);
@ -218,8 +220,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(_1942_state::_1942_scanline)
}
void _1942_state::_1942_map(address_map &map)
{
map(0x0000, 0x7fff).rom();
@ -359,7 +359,7 @@ static INPUT_PORTS_START( 1942 )
PORT_DIPSETTING( 0x20, "20K 100K 100K+" )
PORT_DIPSETTING( 0x10, "30K 80K 80K+" )
PORT_DIPSETTING( 0x00, "30K 100K 100K+" )
PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:2,1")
PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:2,1")
PORT_DIPSETTING( 0x80, "1" )
PORT_DIPSETTING( 0x40, "2" )
PORT_DIPSETTING( 0xc0, "3" )
@ -468,7 +468,7 @@ static INPUT_PORTS_START( 1942p )
PORT_DIPSETTING( 0x20, "20K 100K 100K+" )
PORT_DIPSETTING( 0x10, "30K 80K 80K+" )
PORT_DIPSETTING( 0x00, "30K 100K 100K+" )
PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:2,1")
PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:2,1")
PORT_DIPSETTING( 0x80, "1" )
PORT_DIPSETTING( 0x40, "2" )
PORT_DIPSETTING( 0xc0, "3" )
@ -990,7 +990,6 @@ ROM_START( 1942w )
ROM_END
ROM_START( 1942p )
ROM_REGION( 0x20000, "maincpu", ROMREGION_ERASEFF ) /* 64k for code + 3*16k for the banked ROMs images */
ROM_LOAD( "1.bin", 0x00000, 0x8000, CRC(d8506aee) SHA1(aebdce3203e7743d70a8465a5e5766f9f47cb33f) ) // sldh
@ -1027,10 +1026,11 @@ void _1942_state::driver_init()
}
// YEAR NAME PARENT MACHINE INPUT CLASS INIT ROT COMPANY, FULLNAME, FLAGS
GAME( 1984, 1942, 0, _1942, 1942, _1942_state, driver_init, ROT270, "Capcom", "1942 (Revision B)", MACHINE_SUPPORTS_SAVE)
GAME( 1984, 1942a, 1942, _1942, 1942, _1942_state, driver_init, ROT270, "Capcom", "1942 (Revision A)", MACHINE_SUPPORTS_SAVE)
GAME( 1984, 1942abl, 1942, _1942, 1942, _1942_state, driver_init, ROT270, "bootleg", "1942 (Revision A, bootleg)", MACHINE_SUPPORTS_SAVE) // data is the same as 1942a set, different rom format
GAME( 1991, 1942h, 1942, _1942, 1942, _1942_state, driver_init, ROT270, "hack (Two Bit Score)", "Supercharger 1942", MACHINE_SUPPORTS_SAVE) // v1.28A of hack
GAME( 1984, 1942b, 1942, _1942, 1942, _1942_state, driver_init, ROT270, "Capcom", "1942 (First Version)", MACHINE_SUPPORTS_SAVE)
GAME( 1985, 1942w, 1942, _1942, 1942, _1942_state, driver_init, ROT270, "Capcom (Williams Electronics license)", "1942 (Williams Electronics license)", MACHINE_SUPPORTS_SAVE) /* Based on 1942 (Revision B) */
GAME( 1985, 1942w, 1942, _1942, 1942, _1942_state, driver_init, ROT270, "Capcom (Williams Electronics license)", "1942 (Williams Electronics license)", MACHINE_SUPPORTS_SAVE) // based on 1942 (Revision B)
GAME( 1984, 1942p, 1942, _1942p, 1942p, _1942p_state, driver_init, ROT270, "bootleg", "1942 (Tecfri PCB, bootleg?)", MACHINE_SUPPORTS_SAVE )

View File

@ -114,6 +114,7 @@ void _1943_state::sound_map(address_map &map)
map(0xe002, 0xe003).w("ym2", FUNC(ym2203_device::write));
}
/* Input Ports */
static INPUT_PORTS_START( 1943 )
@ -200,6 +201,7 @@ static INPUT_PORTS_START( 1943 )
PORT_DIPSETTING( 0x80, DEF_STR( On ) )
INPUT_PORTS_END
/* Graphics Layouts */
static const gfx_layout charlayout =
@ -325,6 +327,7 @@ void _1943_state::_1943b(machine_config &config)
config.device_remove("mcu");
}
/* ROMs */
ROM_START( 1943 )
@ -912,6 +915,8 @@ void _1943_state::init_1943()
/* Game Drivers */
// YEAR NAME PARENT MACHINE INPUT CLASS INIT ROT COMPANY FULLNAME, FLAGS
GAME( 1987, 1943, 0, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: The Battle of Midway (Euro)", MACHINE_SUPPORTS_SAVE )
GAME( 1987, 1943u, 1943, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: The Battle of Midway (US, Rev C)", MACHINE_SUPPORTS_SAVE )
GAME( 1987, 1943ua, 1943, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: The Battle of Midway (US)", MACHINE_SUPPORTS_SAVE )

View File

@ -10,6 +10,7 @@ Hardware notes:
- Hitachi H8/3214 MCU, 12MHz XTAL
- small daughterboard (27C080 pinout) with a 128KB ROM under epoxy
- 8-bit DAC (Yageo 10L503G resistor array), KA8602 amplifier
- LCD with 5 7segs and custom segments (BAT segment unused)
- no LEDs, button sensors chessboard
There's also a newer version from 2000 (model 711E-2) on much weaker hardware,
@ -18,7 +19,6 @@ it has a Samsung KS57C2308 MCU instead.
TODO:
- it does a cold boot at every reset, so nvram won't work properly unless MAME
adds some kind of auxillary autosave state feature at power-off
- where is the low battery signal?
*******************************************************************************/