forgot to resolve callback

This commit is contained in:
Michaël Banaan Ananas 2014-06-23 09:52:53 +00:00
parent 87f4e1fcae
commit 676af85696
2 changed files with 5 additions and 4 deletions

View File

@ -130,8 +130,11 @@ void lr35902_cpu_device::device_start()
m_device = this;
m_program = &space(AS_PROGRAM);
// resolve callbacks
m_timer_func.resolve_safe();
m_incdec16_func.resolve_safe();
// register for save states
save_item(NAME(m_A));
save_item(NAME(m_F));
save_item(NAME(m_B));

View File

@ -24,16 +24,14 @@
{ \
register UINT16 r = x << 8 | y; \
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) \
{ \
register UINT16 r = x << 8 | y; \
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) \