mirror of
https://github.com/holub/mame
synced 2025-05-13 09:28:13 +03:00
galaxold / scramble: Removed some unused code (nw)
This commit is contained in:
parent
b2288ca1b0
commit
5d5a89726c
@ -66,7 +66,6 @@ public:
|
|||||||
UINT8 m__4in1_bank;
|
UINT8 m__4in1_bank;
|
||||||
tilemap_t *m_bg_tilemap;
|
tilemap_t *m_bg_tilemap;
|
||||||
tilemap_t *m_rockclim_tilemap;
|
tilemap_t *m_rockclim_tilemap;
|
||||||
int m_mooncrst_gfxextend;
|
|
||||||
int m_spriteram2_present;
|
int m_spriteram2_present;
|
||||||
UINT8 m_gfxbank[5];
|
UINT8 m_gfxbank[5];
|
||||||
UINT8 m_flipscreen_x;
|
UINT8 m_flipscreen_x;
|
||||||
|
@ -22,8 +22,6 @@ public:
|
|||||||
optional_shared_ptr<UINT8> m_soundram;
|
optional_shared_ptr<UINT8> m_soundram;
|
||||||
|
|
||||||
UINT8 m_cavelon_bank;
|
UINT8 m_cavelon_bank;
|
||||||
UINT8 m_security_2B_counter;
|
|
||||||
UINT8 m_xb;
|
|
||||||
|
|
||||||
// harem
|
// harem
|
||||||
UINT8 m_harem_decrypt_mode;
|
UINT8 m_harem_decrypt_mode;
|
||||||
@ -83,8 +81,6 @@ public:
|
|||||||
DECLARE_DRIVER_INIT(billiard);
|
DECLARE_DRIVER_INIT(billiard);
|
||||||
DECLARE_MACHINE_RESET(scramble);
|
DECLARE_MACHINE_RESET(scramble);
|
||||||
DECLARE_MACHINE_RESET(explorer);
|
DECLARE_MACHINE_RESET(explorer);
|
||||||
DECLARE_WRITE8_MEMBER(scramble_protection_w);
|
|
||||||
DECLARE_READ8_MEMBER(scramble_protection_r);
|
|
||||||
DECLARE_WRITE_LINE_MEMBER(scramble_sh_7474_q_callback);
|
DECLARE_WRITE_LINE_MEMBER(scramble_sh_7474_q_callback);
|
||||||
void cavelon_banksw();
|
void cavelon_banksw();
|
||||||
inline int bit(int i,int n);
|
inline int bit(int i,int n);
|
||||||
|
@ -19,8 +19,6 @@ MACHINE_RESET_MEMBER(scramble_state,scramble)
|
|||||||
|
|
||||||
if (m_audiocpu != NULL)
|
if (m_audiocpu != NULL)
|
||||||
sh_init();
|
sh_init();
|
||||||
|
|
||||||
m_security_2B_counter = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_RESET_MEMBER(scramble_state,explorer)
|
MACHINE_RESET_MEMBER(scramble_state,explorer)
|
||||||
@ -49,29 +47,6 @@ CUSTOM_INPUT_MEMBER(scramble_state::darkplnt_custom_r)
|
|||||||
|
|
||||||
/* state of the security PAL (6J) */
|
/* state of the security PAL (6J) */
|
||||||
|
|
||||||
WRITE8_MEMBER(scramble_state::scramble_protection_w)
|
|
||||||
{
|
|
||||||
m_xb = data;
|
|
||||||
}
|
|
||||||
|
|
||||||
READ8_MEMBER(scramble_state::scramble_protection_r)
|
|
||||||
{
|
|
||||||
switch (m_maincpu->pc())
|
|
||||||
{
|
|
||||||
case 0x00a8: return 0xf0;
|
|
||||||
case 0x00be: return 0xb0;
|
|
||||||
case 0x0c1d: return 0xf0;
|
|
||||||
case 0x0c6a: return 0xb0;
|
|
||||||
case 0x0ceb: return 0x40;
|
|
||||||
case 0x0d37: return 0x60;
|
|
||||||
case 0x1ca2: return 0x00; /* I don't think it's checked */
|
|
||||||
case 0x1d7e: return 0xb0;
|
|
||||||
default:
|
|
||||||
logerror("%s: read protection\n",machine().describe_context());
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
READ8_MEMBER(scramble_state::mariner_protection_1_r )
|
READ8_MEMBER(scramble_state::mariner_protection_1_r )
|
||||||
{
|
{
|
||||||
|
@ -404,8 +404,6 @@ void galaxold_state::video_start_common()
|
|||||||
m_modify_color = 0;
|
m_modify_color = 0;
|
||||||
m_modify_ypos = 0;
|
m_modify_ypos = 0;
|
||||||
|
|
||||||
m_mooncrst_gfxextend = 0;
|
|
||||||
|
|
||||||
m_draw_bullets = 0;
|
m_draw_bullets = 0;
|
||||||
|
|
||||||
m_draw_background = &galaxold_state::galaxold_draw_background;
|
m_draw_background = &galaxold_state::galaxold_draw_background;
|
||||||
|
Loading…
Reference in New Issue
Block a user