From a383d3684946efb17ff40ccf9191f54e930faacf Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sun, 6 Aug 2023 07:07:00 +0200 Subject: misc/norautp.cpp: made noraut3a and noraut3b boot. May be working, need someone who knows this type of games to check --- src/mame/misc/norautp.cpp | 27 +++++++++++++++++++++++++-- src/mame/misc/norautp.h | 3 +++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/mame/misc/norautp.cpp b/src/mame/misc/norautp.cpp index 30448b08b86..e4a7dfd6f8e 100644 --- a/src/mame/misc/norautp.cpp +++ b/src/mame/misc/norautp.cpp @@ -900,6 +900,19 @@ void norautp_state::norautx8_map(address_map &map) } #endif +void norautp_state::noraut3_map(address_map &map) +{ + map(0x0000, 0x3fff).rom().region("maincpu", 0x4000); + map(0x6000, 0x67ff).ram().share("nvram"); /* 6116 */ + map(0x8000, 0xbfff).rom().region("maincpu", 0xc000); +} + +void norautp_state::noraut3_decrypted_opcodes_map(address_map &map) +{ + map(0x0000, 0x3fff).rom().region("maincpu", 0x0000); + map(0x8000, 0xbfff).rom().region("maincpu", 0x8000); +} + void norautp_state::kimble_map(address_map &map) { map(0x0000, 0xbfff).rom(); @@ -1432,6 +1445,16 @@ void norautp_state::norautx8(machine_config &config) } #endif +void norautp_state::noraut3(machine_config &config) +{ + noraut_base(config); + + /* basic machine hardware */ + m_maincpu->set_addrmap(AS_PROGRAM, &norautp_state::noraut3_map); + m_maincpu->set_addrmap(AS_OPCODES, &norautp_state::noraut3_decrypted_opcodes_map); + m_maincpu->set_vblank_int("screen", FUNC(norautp_state::irq0_line_hold)); +} + void norautp_state::kimble(machine_config &config) { noraut_base(config); @@ -4457,8 +4480,8 @@ GAMEL( 1988, norautjp, norautp, norautp, norautp, norautp_state, empty_init, R GAMEL( 1988, norautrh, 0, norautp, norautrh, norautp_state, empty_init, ROT0, "Noraut Ltd.", "Noraut Red Hot Joker Poker", 0, layout_noraut12 ) GAMEL( 198?, norautra, 0, norautp, norautrh, norautp_state, empty_init, ROT0, "Noraut Ltd.", "Noraut Red Hot Joker Poker (alt HW)", 0, layout_noraut12 ) // 1-bet?? where??... GAME( 1988, norautu, 0, norautxp, norautp, norautp_state, empty_init, ROT0, "Noraut Ltd.", "Noraut Poker (NTX10A)", MACHINE_NOT_WORKING ) -GAME( 2002, noraut3a, 0, norautxp, norautp, norautp_state, empty_init, ROT0, "Noraut Ltd.", "Noraut Joker Poker (V3.010a)", MACHINE_NOT_WORKING ) -GAME( 2003, noraut3b, 0, norautxp, norautp, norautp_state, empty_init, ROT0, "Noraut Ltd.", "Noraut Joker Poker (V3.011a)", MACHINE_NOT_WORKING ) +GAME( 2002, noraut3a, 0, noraut3, norautp, norautp_state, empty_init, ROT0, "Noraut Ltd.", "Noraut Joker Poker (V3.010a)", MACHINE_NOT_WORKING ) +GAME( 2003, noraut3b, 0, noraut3, norautp, norautp_state, empty_init, ROT0, "Noraut Ltd.", "Noraut Joker Poker (V3.011a)", MACHINE_NOT_WORKING ) GAMEL( 198?, norautua, 0, norautu, norautp, norautp_state, init_enc, ROT0, "Noraut Ltd.", "Noraut Joker Poker (console, set 1)", MACHINE_NOT_WORKING, layout_noraut12 ) GAMEL( 198?, norautub, 0, norautu, norautp, norautp_state, init_enc, ROT0, "Noraut Ltd.", "Noraut Joker Poker (console, set 2)", MACHINE_NOT_WORKING, layout_noraut12 ) GAMEL( 198?, mainline, 0, norautp, mainline, norautp_state, empty_init, ROT0, "Mainline London", "Mainline Double Joker Poker", 0, layout_noraut12 ) diff --git a/src/mame/misc/norautp.h b/src/mame/misc/norautp.h index 39e8f3e6ac1..bf69f1a7c9c 100644 --- a/src/mame/misc/norautp.h +++ b/src/mame/misc/norautp.h @@ -46,6 +46,7 @@ public: void dphla(machine_config &config); void drhl(machine_config &config); void norautxp(machine_config &config); + void noraut3(machine_config &config); void cgidjp(machine_config &config); void cdrawpkr(machine_config &config); @@ -76,6 +77,8 @@ private: void kimbldhl_map(address_map &map); void kimble_map(address_map &map); void newhilop_map(address_map &map); + void noraut3_map(address_map &map); + void noraut3_decrypted_opcodes_map(address_map &map); void norautp_map(address_map &map); void norautp_portmap(address_map &map); void norautx4_map(address_map &map); -- cgit v1.2.3