mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
forgot to resolve callback
This commit is contained in:
parent
87f4e1fcae
commit
676af85696
@ -130,8 +130,11 @@ void lr35902_cpu_device::device_start()
|
|||||||
m_device = this;
|
m_device = this;
|
||||||
m_program = &space(AS_PROGRAM);
|
m_program = &space(AS_PROGRAM);
|
||||||
|
|
||||||
|
// resolve callbacks
|
||||||
m_timer_func.resolve_safe();
|
m_timer_func.resolve_safe();
|
||||||
|
m_incdec16_func.resolve_safe();
|
||||||
|
|
||||||
|
// register for save states
|
||||||
save_item(NAME(m_A));
|
save_item(NAME(m_A));
|
||||||
save_item(NAME(m_F));
|
save_item(NAME(m_F));
|
||||||
save_item(NAME(m_B));
|
save_item(NAME(m_B));
|
||||||
|
@ -24,16 +24,14 @@
|
|||||||
{ \
|
{ \
|
||||||
register UINT16 r = x << 8 | y; \
|
register UINT16 r = x << 8 | y; \
|
||||||
if (++y == 0) x++; \
|
if (++y == 0) x++; \
|
||||||
if (!m_incdec16_func.isnull()) \
|
m_incdec16_func(r << 16 | x << 8 | y); \
|
||||||
m_incdec16_func(r << 16 | x << 8 | y); \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DEC_16BIT(x,y) \
|
#define DEC_16BIT(x,y) \
|
||||||
{ \
|
{ \
|
||||||
register UINT16 r = x << 8 | y; \
|
register UINT16 r = x << 8 | y; \
|
||||||
if (--y == 0xff) x--; \
|
if (--y == 0xff) x--; \
|
||||||
if (!m_incdec16_func.isnull()) \
|
m_incdec16_func(r << 16 | x << 8 | y); \
|
||||||
m_incdec16_func(r << 16 | x << 8 | y); \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ADD_HL_RR(x) \
|
#define ADD_HL_RR(x) \
|
||||||
|
Loading…
Reference in New Issue
Block a user