mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
1942: correct default lives dipswitch,
igor: lcd battery segment is unused
This commit is contained in:
parent
5b50e61af3
commit
700ed63aee
@ -243,7 +243,7 @@ static int kc_kcc_fill_wave(int16_t *buffer, int sample_count, uint8_t *bytes)
|
||||
********************************************************************/
|
||||
static int kc_kcc_to_wav_size(const uint8_t *casdata, int caslen)
|
||||
{
|
||||
kc_image_size = caslen ;
|
||||
kc_image_size = caslen;
|
||||
|
||||
return kc_handle_kcc( nullptr, casdata );
|
||||
}
|
||||
@ -295,7 +295,7 @@ static int kc_tap_fill_wave(int16_t *buffer, int sample_count, uint8_t *bytes)
|
||||
********************************************************************/
|
||||
static int kc_tap_to_wav_size(const uint8_t *casdata, int caslen)
|
||||
{
|
||||
kc_image_size = caslen ;
|
||||
kc_image_size = caslen;
|
||||
|
||||
return kc_handle_tap( nullptr, casdata );
|
||||
}
|
||||
@ -347,7 +347,7 @@ static int kc_sss_fill_wave(int16_t *buffer, int sample_count, uint8_t *bytes)
|
||||
********************************************************************/
|
||||
static int kc_sss_to_wav_size(const uint8_t *casdata, int caslen)
|
||||
{
|
||||
kc_image_size = caslen ;
|
||||
kc_image_size = caslen;
|
||||
|
||||
return kc_handle_sss( nullptr, casdata );
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
||||
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( 1984, 1942p, 1942, _1942p, 1942p, _1942p_state, driver_init, ROT270, "bootleg", "1942 (Tecfri PCB, bootleg?)", MACHINE_SUPPORTS_SAVE )
|
||||
// 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( 1984, 1942p, 1942, _1942p, 1942p, _1942p_state, driver_init, ROT270, "bootleg", "1942 (Tecfri PCB, bootleg?)", MACHINE_SUPPORTS_SAVE )
|
||||
|
@ -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,13 +915,15 @@ void _1943_state::init_1943()
|
||||
|
||||
|
||||
/* Game Drivers */
|
||||
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 )
|
||||
GAME( 1987, 1943j, 1943, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: Midway Kaisen (Japan, Rev B)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943ja, 1943, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: Midway Kaisen (Japan)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943jah, 1943, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: Midway Kaisen (Japan, no protection hack)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943b, 1943, _1943b, 1943, _1943_state, init_1943, ROT270, "bootleg", "1943: Battle of Midway (bootleg, hack of Japan set)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943bj, 1943, _1943b, 1943, _1943_state, init_1943, ROT270, "bootleg", "1943: Midway Kaisen (bootleg)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943kai, 0, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943 Kai: Midway Kaisen (Japan)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943mii, 0, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: The Battle of Midway Mark II (US)", MACHINE_SUPPORTS_SAVE )
|
||||
|
||||
// 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 )
|
||||
GAME( 1987, 1943j, 1943, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: Midway Kaisen (Japan, Rev B)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943ja, 1943, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: Midway Kaisen (Japan)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943jah, 1943, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: Midway Kaisen (Japan, no protection hack)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943b, 1943, _1943b, 1943, _1943_state, init_1943, ROT270, "bootleg", "1943: Battle of Midway (bootleg, hack of Japan set)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943bj, 1943, _1943b, 1943, _1943_state, init_1943, ROT270, "bootleg", "1943: Midway Kaisen (bootleg)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943kai, 0, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943 Kai: Midway Kaisen (Japan)", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1987, 1943mii, 0, _1943, 1943, _1943_state, init_1943, ROT270, "Capcom", "1943: The Battle of Midway Mark II (US)", MACHINE_SUPPORTS_SAVE )
|
||||
|
@ -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?
|
||||
|
||||
*******************************************************************************/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user