m4bjsm, m4bjsma: Add RTC; system boots now

This commit is contained in:
AJR 2022-07-07 11:37:33 -04:00
parent 76a8173e62
commit 5ed7ac0f56

View File

@ -17,6 +17,8 @@
#include "emu.h"
#include "mpu4.h"
#include "machine/timekpr.h"
namespace {
class mpu4mod2_machines_state : public mpu4_state
@ -28,14 +30,33 @@ public:
{
}
template<const uint8_t* Table> void mod2_cheatchr_pal_rtc(machine_config &config)
{
mod2_cheatchr_pal<Table>(config);
m_maincpu->set_addrmap(AS_PROGRAM, &mpu4mod2_machines_state::mpu4_memmap_characteriser_rtc);
M48T02(config, "rtc");
}
void init_connect4();
void init_m4actpak();
void init_m4alladv();
void init_m4alpha();
void init_m4actclb();
void init_m4test();
private:
void mpu4_memmap_characteriser_rtc(address_map &map);
};
void mpu4mod2_machines_state::mpu4_memmap_characteriser_rtc(address_map &map)
{
mpu4_memmap_characteriser(map);
map(0x1000, 0x17ff).rw("rtc", FUNC(timekeeper_device::read), FUNC(timekeeper_device::write));
}
#include "m4actclb.lh"
#include "m4actpak.lh"
#include "m4alladv.lh"
@ -1880,9 +1901,8 @@ GAMEL(199?, m4alpha, 0, mod2_cheatchr_pal<mpu4_characteriser_pal::m435
GAME(199?, m4bjack, 0, mod2_cheatchr_pal<mpu4_characteriser_pal::phr_characteriser_prot>, mpu4, mpu4mod2_machines_state, init_m4default, ROT0, "Barcrest","Black Jack (Barcrest) (MPU4) (B2J 2.2)",GAME_FLAGS )
GAME(199?, m4bjacka, m4bjack, mod2_cheatchr_pal<mpu4_characteriser_pal::phr_characteriser_prot>, mpu4, mpu4mod2_machines_state, init_m4default, ROT0, "Barcrest","Black Jack (Barcrest) (MPU4) (BLA 2.0)",GAME_FLAGS )
GAME(199?, m4bjsm, 0, mod2_cheatchr_pal<mpu4_characteriser_pal::sunsetb_characteriser_prot>, mpu4, mpu4mod2_machines_state, init_m4default_five_rev, ROT0, "Barcrest","Blackjack Super Multi (Barcrest) (German) (MPU4) (SM H1.6)",GAME_FLAGS )
// RTC BAT FAIL, before any protection check
GAME(199?, m4bjsma, m4bjsm, mod2_cheatchr, mpu4, mpu4mod2_machines_state, init_m4default_five_rev, ROT0, "Barcrest","Blackjack Super Multi (Barcrest) (MPU4) (SM 1.6)",GAME_FLAGS ) // complains about battery, is this a different game?
GAME(199?, m4bjsm, 0, mod2_cheatchr_pal_rtc<mpu4_characteriser_pal::sunsetb_characteriser_prot>, mpu4, mpu4mod2_machines_state, init_m4default_five_rev, ROT0, "Barcrest","Blackjack Super Multi (Barcrest) (German) (MPU4) (SM H1.6)",GAME_FLAGS )
GAME(199?, m4bjsma, m4bjsm, mod2_cheatchr_pal_rtc<mpu4_characteriser_pal::sunsetb_characteriser_prot>, mpu4, mpu4mod2_machines_state, init_m4default_five_rev, ROT0, "Barcrest","Blackjack Super Multi (Barcrest) (MPU4) (SM 1.6)",GAME_FLAGS ) // is this a different game?
GAME(198?, m4supsl, 0, mod2_cheatchr_pal<mpu4_characteriser_pal::nifty_characteriser_prot>, mpu4, mpu4mod2_machines_state, init_m4default, ROT0, "Barcrest", "Supa Silva (Barcrest) (MPU4) (SS2V 1.0)",GAME_FLAGS )