mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
vsmile.cpp: Fix for vsmilem exception when starting without a cartridge image (per Ryan Holtz) (nw)
This commit is contained in:
parent
14f7e58562
commit
0137a8205d
@ -121,7 +121,7 @@ uint16_t vsmile_state::portb_r()
|
||||
void vsmile_state::portb_w(offs_t offset, uint16_t data, uint16_t mem_mask)
|
||||
{
|
||||
LOG("%s: portb_w: %04x & %04x (bit 1: %d & %d)\n", machine().describe_context(), data, mem_mask, BIT(data, 1), BIT(mem_mask, 1));
|
||||
if (BIT(mem_mask, 1) && m_cart)
|
||||
if (BIT(mem_mask, 1) && m_cart && m_cart->exists())
|
||||
m_cart->set_cs2(BIT(~data, 1));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user