mirror of
https://github.com/holub/mame
synced 2025-06-23 21:06:38 +03:00
(MESS) apple2: fixed recent regressions (crash and missing text drawing) (nw)
nw: why is rgb_t::white actually black? I couldn't immediately find where it's defined in the core.
This commit is contained in:
parent
326f3b698d
commit
32575c5f9a
@ -129,7 +129,8 @@ a2bus_ssc_device::a2bus_ssc_device(const machine_config &mconfig, const char *ta
|
|||||||
device_a2bus_card_interface(mconfig, *this),
|
device_a2bus_card_interface(mconfig, *this),
|
||||||
m_dsw1(*this, "DSW1"),
|
m_dsw1(*this, "DSW1"),
|
||||||
m_dsw2(*this, "DSW2"),
|
m_dsw2(*this, "DSW2"),
|
||||||
m_acia(*this, SSC_ACIA_TAG)
|
m_acia(*this, SSC_ACIA_TAG),
|
||||||
|
m_started(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,7 +139,8 @@ a2bus_ssc_device::a2bus_ssc_device(const machine_config &mconfig, device_type ty
|
|||||||
device_a2bus_card_interface(mconfig, *this),
|
device_a2bus_card_interface(mconfig, *this),
|
||||||
m_dsw1(*this, "DSW1"),
|
m_dsw1(*this, "DSW1"),
|
||||||
m_dsw2(*this, "DSW2"),
|
m_dsw2(*this, "DSW2"),
|
||||||
m_acia(*this, SSC_ACIA_TAG)
|
m_acia(*this, SSC_ACIA_TAG),
|
||||||
|
m_started(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,6 +159,7 @@ void a2bus_ssc_device::device_start()
|
|||||||
|
|
||||||
void a2bus_ssc_device::device_reset()
|
void a2bus_ssc_device::device_reset()
|
||||||
{
|
{
|
||||||
|
m_started = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------------
|
/*-------------------------------------------------
|
||||||
@ -222,6 +225,8 @@ void a2bus_ssc_device::write_c0nx(address_space &space, UINT8 offset, UINT8 data
|
|||||||
|
|
||||||
WRITE_LINE_MEMBER( a2bus_ssc_device::acia_irq_w )
|
WRITE_LINE_MEMBER( a2bus_ssc_device::acia_irq_w )
|
||||||
{
|
{
|
||||||
|
if (m_started)
|
||||||
|
{
|
||||||
if (!(m_dsw2->read() & 4))
|
if (!(m_dsw2->read() & 4))
|
||||||
{
|
{
|
||||||
if (state)
|
if (state)
|
||||||
@ -233,4 +238,5 @@ WRITE_LINE_MEMBER( a2bus_ssc_device::acia_irq_w )
|
|||||||
lower_slot_irq();
|
lower_slot_irq();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
UINT8 *m_rom;
|
UINT8 *m_rom;
|
||||||
|
bool m_started;
|
||||||
};
|
};
|
||||||
|
|
||||||
// device type definition
|
// device type definition
|
||||||
|
@ -927,7 +927,7 @@ static const rgb_t apple2_palette[] =
|
|||||||
rgb_t(0x14, 0xF5, 0x3C), /* Light Green */
|
rgb_t(0x14, 0xF5, 0x3C), /* Light Green */
|
||||||
rgb_t(0xD0, 0xDD, 0x8D), /* Yellow */
|
rgb_t(0xD0, 0xDD, 0x8D), /* Yellow */
|
||||||
rgb_t(0x72, 0xFF, 0xD0), /* Aquamarine */
|
rgb_t(0x72, 0xFF, 0xD0), /* Aquamarine */
|
||||||
rgb_t::white
|
rgb_t(0xFF, 0xFF, 0xFF) /* White */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Initialize the palette */
|
/* Initialize the palette */
|
||||||
|
Loading…
Reference in New Issue
Block a user