diff options
author | Vas Crabb <vas@vastheman.com> | 2018-09-23 12:22:35 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-09-23 12:22:35 +1000 |
commit | 250c06a4d716d63fa1691bb8d0514b426dccbbc5 (patch) | |
tree | 99259dfcff73d107f9c398c8f385610b47899247 /src/mame/drivers/luckybal.cpp | |
parent | cb6194cac0f2a4009deb49e629ba946af8267de9 (diff) |
srcclean (nw)
Diffstat (limited to 'src/mame/drivers/luckybal.cpp')
-rw-r--r-- | src/mame/drivers/luckybal.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/mame/drivers/luckybal.cpp b/src/mame/drivers/luckybal.cpp index 929525648b7..2f198250492 100644 --- a/src/mame/drivers/luckybal.cpp +++ b/src/mame/drivers/luckybal.cpp @@ -262,7 +262,7 @@ *********************************************************************/ -#define CPU_CLOCK XTAL(12'000'000) // 12MHz. from schematics. +#define CPU_CLOCK XTAL(12'000'000) // 12MHz. from schematics. #define MCU_CLOCK XTAL(8'000'000) #define VID_CLOCK XTAL(21'477'272) @@ -341,7 +341,7 @@ private: void luckybal_state::main_map(address_map &map) { map(0x0000, 0xbfff).rom(); - map(0xc000, 0xdfff).bankr("bank1"); // Banked ROM. + map(0xc000, 0xdfff).bankr("bank1"); // Banked ROM. map(0xe000, 0xffff).ram().share("nvram"); // 6264 SRAM } @@ -434,15 +434,15 @@ READ8_MEMBER(luckybal_state::input_port_c_r) bit5 = BIT(m_aux->read(), sel_line & 0x07) ? 0xff : 0xdf; // Operator & Page. bit6 = 0xff; - for (int i = 0; 6 > i; ++i) - { - if (!BIT(mux_player, i) && !BIT(m_keymx[i]->read(), sel_line & 0x07)) // Player buttons. - bit6 &= 0xbf; - } + for (int i = 0; 6 > i; ++i) + { + if (!BIT(mux_player, i) && !BIT(m_keymx[i]->read(), sel_line & 0x07)) // Player buttons. + bit6 &= 0xbf; + } bit7 = BIT(m_dsw->read(), sel_line & 0x07) ? 0xff : 0x7f; // Dip Switch. - if ((sel_line & 0x07) == 6) m_lamps[37] = (bit5 == 0xff) ? 0 : 1; // Operator lamp. + if ((sel_line & 0x07) == 6) m_lamps[37] = (bit5 == 0xff) ? 0 : 1; // Operator lamp. ret = bit7 & bit6 & bit5; return ret; @@ -450,7 +450,7 @@ READ8_MEMBER(luckybal_state::input_port_c_r) WRITE8_MEMBER(luckybal_state::output_port_c_w) { -/* Writes 0xF0/0xF1 constantly at the begining... like a watchdog. +/* Writes 0xF0/0xF1 constantly at the begining... like a watchdog. After a while, just stop (when roulette LEDs are transmitted). */ } @@ -468,7 +468,7 @@ static INPUT_PORTS_START( luckybal ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Q) PORT_NAME("Player 1 - Bet") PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_Z) PORT_NAME("Player 1 - Credits OUT") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_CODE(KEYCODE_D) PORT_NAME("Player 1 - Right") - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_CODE(KEYCODE_S) PORT_NAME("Player 1 - Down") + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_CODE(KEYCODE_S) PORT_NAME("Player 1 - Down") PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // 'Player 1 - Coins' in the schematics. Maybe for another game. PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_CODE(KEYCODE_A) PORT_NAME("Player 1 - Left") @@ -478,7 +478,7 @@ static INPUT_PORTS_START( luckybal ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_R) PORT_NAME("Player 2 - Bet") PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_X) PORT_NAME("Player 2 - Credits OUT") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_CODE(KEYCODE_H) PORT_NAME("Player 2 - Right") - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_CODE(KEYCODE_G) PORT_NAME("Player 2 - Down") + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_CODE(KEYCODE_G) PORT_NAME("Player 2 - Down") PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // 'Player 2 - Coins' in the schematics. Maybe for another game. PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_CODE(KEYCODE_F) PORT_NAME("Player 2 - Left") @@ -488,7 +488,7 @@ static INPUT_PORTS_START( luckybal ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_U) PORT_NAME("Player 3 - Bet") PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_C) PORT_NAME("Player 3 - Credits OUT") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) PORT_CODE(KEYCODE_L) PORT_NAME("Player 3 - Right") - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) PORT_CODE(KEYCODE_K) PORT_NAME("Player 3 - Down") + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) PORT_CODE(KEYCODE_K) PORT_NAME("Player 3 - Down") PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // 'Player 3 - Coins' in the schematics. Maybe for another game. PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) PORT_CODE(KEYCODE_J) PORT_NAME("Player 3 - Left") @@ -498,7 +498,7 @@ static INPUT_PORTS_START( luckybal ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_LALT) PORT_NAME("Player 4 - Bet") PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_V) PORT_NAME("Player 4 - Credits OUT") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) PORT_CODE(KEYCODE_7) PORT_NAME("Player 4 - Right") - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Player 4 - Down") + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Player 4 - Down") PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // 'Player 4 - Coins' in the schematics. Maybe for another game. PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) PORT_CODE(KEYCODE_8) PORT_NAME("Player 4 - Left") @@ -508,7 +508,7 @@ static INPUT_PORTS_START( luckybal ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_LCONTROL) PORT_NAME("Player 5 - Bet") PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_B) PORT_NAME("Player 5 - Credits OUT") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(5) PORT_CODE(KEYCODE_LEFT) PORT_NAME("Player 5 - Right") - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(5) PORT_CODE(KEYCODE_UP) PORT_NAME("Player 5 - Down") + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(5) PORT_CODE(KEYCODE_UP) PORT_NAME("Player 5 - Down") PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // 'Player 5 - Coins' in the schematics. Maybe for another game. PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(5) PORT_CODE(KEYCODE_RIGHT) PORT_NAME("Player 5 - Left") @@ -518,7 +518,7 @@ static INPUT_PORTS_START( luckybal ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_CODE(KEYCODE_7_PAD) PORT_NAME("Player 6 - Bet") PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_N) PORT_NAME("Player 6 - Credits OUT") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(6) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("Player 6 - Right") - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(6) PORT_CODE(KEYCODE_8_PAD) PORT_NAME("Player 6 - Down") + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(6) PORT_CODE(KEYCODE_8_PAD) PORT_NAME("Player 6 - Down") PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) // 'Player 6 - Coins' in the schematics. Maybe for another game. PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("Player 6 - Left") @@ -673,17 +673,17 @@ void luckybal_state::init_luckybala() } /* The following patches are to avoid hardware verifications through - the unemulated synchronic serial comm of the z180... - */ - rom[0x571] = 0x68; //31 - rom[0x572] = 0xE8; //4C - rom[0x573] = 0x18; //42 - rom[0x574] = 0x98; //39 - rom[0x575] = 0x58; //36 - rom[0x16E1] = 0x0D; //OC - rom[0x1D65] = 0x0E; //0C - rom[0x4499] = 0x00; //FF <------- Checksum. - rom[0x4AB6] = 0xAF; //B9 + the unemulated synchronic serial comm of the z180... + */ + rom[0x571] = 0x68; //31 + rom[0x572] = 0xE8; //4C + rom[0x573] = 0x18; //42 + rom[0x574] = 0x98; //39 + rom[0x575] = 0x58; //36 + rom[0x16E1] = 0x0D; //OC + rom[0x1D65] = 0x0E; //0C + rom[0x4499] = 0x00; //FF <------- Checksum. + rom[0x4AB6] = 0xAF; //B9 membank("bank1")->configure_entries(0, 0x40, &rom[0x10000], 0x2000); } @@ -700,17 +700,17 @@ void luckybal_state::init_luckybald() } /* The following patches are to avoid hardware verifications through - the unemulated synchronic serial comm of the z180... - */ - rom[0x571] = 0x68; //31 - rom[0x572] = 0xE8; //4C - rom[0x573] = 0x18; //42 - rom[0x574] = 0x98; //39 - rom[0x575] = 0x58; //36 - rom[0x16C1] = 0x0D; //OC - rom[0x1D45] = 0x0E; //0C - rom[0x44A9] = 0x00; //FF <------- Checksum. - rom[0x4AC6] = 0xAF; //B9 + the unemulated synchronic serial comm of the z180... + */ + rom[0x571] = 0x68; //31 + rom[0x572] = 0xE8; //4C + rom[0x573] = 0x18; //42 + rom[0x574] = 0x98; //39 + rom[0x575] = 0x58; //36 + rom[0x16C1] = 0x0D; //OC + rom[0x1D45] = 0x0E; //0C + rom[0x44A9] = 0x00; //FF <------- Checksum. + rom[0x4AC6] = 0xAF; //B9 membank("bank1")->configure_entries(0, 0x40, &rom[0x10000], 0x2000); } |