mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
cosmic.cpp: Cosmic Guerilla is in another driver now
This commit is contained in:
parent
d90099fc75
commit
4064a88af9
@ -4,7 +4,6 @@
|
||||
|
||||
Universal board numbers (found on the schematics)
|
||||
|
||||
Cosmic Guerilla - 7907A
|
||||
Cosmic Alien - 7910
|
||||
Magical Spot - 8013
|
||||
Magical Spot II - 8013
|
||||
@ -792,8 +791,6 @@ static const char *const panic_sample_names[] =
|
||||
void cosmic_state::machine_start()
|
||||
{
|
||||
save_item(NAME(m_sound_enabled));
|
||||
save_item(NAME(m_march_select));
|
||||
save_item(NAME(m_gun_die_select));
|
||||
save_item(NAME(m_dive_bomb_b_select));
|
||||
|
||||
save_item(NAME(m_background_enable));
|
||||
|
@ -196,7 +196,7 @@ MC6845_UPDATE_ROW(cosmicg_state::draw_scanline)
|
||||
while (x_count-- != 0)
|
||||
{
|
||||
u16 offs = (~ma & 0x001f) | (~ra & 1) << 5 | (~ma & 0x0fe0) << 1;
|
||||
u8 data = (offs >= m_videoram.length()) ? 0 : m_videoram[offs];
|
||||
u8 data = m_videoram[offs];
|
||||
u8 color = colors[(~offs & 0x1e00) >> 5 | (~offs & 0x001e) >> 1] >> 4;
|
||||
for (int n = 8; n != 0; n--)
|
||||
{
|
||||
@ -211,7 +211,7 @@ MC6845_UPDATE_ROW(cosmicg_state::draw_scanline)
|
||||
while (x_count-- != 0)
|
||||
{
|
||||
u16 offs = (ma & 0x001f) | (ra & 1) << 5 | (ma & 0x0fe0) << 1;
|
||||
u8 data = (offs >= m_videoram.length()) ? 0 : m_videoram[offs];
|
||||
u8 data = m_videoram[offs];
|
||||
u8 color = colors[(offs & 0x1e00) >> 5 | (offs & 0x001e) >> 1] & 0x0f;
|
||||
for (int n = 8; n != 0; n--)
|
||||
{
|
||||
@ -322,6 +322,10 @@ static const char *const cosmicg_sample_names[] =
|
||||
|
||||
void cosmicg_state::machine_start()
|
||||
{
|
||||
m_sound_enabled = 0;
|
||||
m_march_select = 0;
|
||||
m_gun_die_select = 0;
|
||||
|
||||
save_item(NAME(m_sound_enabled));
|
||||
save_item(NAME(m_march_select));
|
||||
save_item(NAME(m_gun_die_select));
|
||||
@ -422,10 +426,6 @@ void cosmicg_state::init_cosmicg()
|
||||
|
||||
rom[offs] = normal;
|
||||
}
|
||||
|
||||
m_sound_enabled = 0;
|
||||
m_march_select = 0;
|
||||
m_gun_die_select = 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -26,6 +26,7 @@ public:
|
||||
driver_device(mconfig, type, tag),
|
||||
m_videoram(*this, "videoram"),
|
||||
m_spriteram(*this, "spriteram"),
|
||||
m_sound_enabled(0),
|
||||
m_in_ports(*this, "IN%u", 0),
|
||||
m_dsw(*this, "DSW"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
@ -71,8 +72,6 @@ private:
|
||||
|
||||
/* sound-related */
|
||||
int m_sound_enabled;
|
||||
int m_march_select;
|
||||
int m_gun_die_select;
|
||||
int m_dive_bomb_b_select;
|
||||
|
||||
/* misc */
|
||||
|
Loading…
Reference in New Issue
Block a user