diff --git a/src/emu/cpu/sm510/sm510.c b/src/emu/cpu/sm510/sm510.c index c91f152fa77..502eb41b7f6 100644 --- a/src/emu/cpu/sm510/sm510.c +++ b/src/emu/cpu/sm510/sm510.c @@ -15,8 +15,6 @@ #include "sm510.h" #include "debugger.h" -#include "sm510op.inc" - // MCU types const device_type SM510 = &device_creator; diff --git a/src/emu/cpu/sm510/sm510op.inc b/src/emu/cpu/sm510/sm510op.c similarity index 98% rename from src/emu/cpu/sm510/sm510op.inc rename to src/emu/cpu/sm510/sm510op.c index b9583694849..d0aaffd224d 100644 --- a/src/emu/cpu/sm510/sm510op.inc +++ b/src/emu/cpu/sm510/sm510op.c @@ -3,6 +3,9 @@ // SM510 opcode handlers +#include "sm510.h" + + // internal helpers inline UINT8 sm510_base_device::ram_r() @@ -33,7 +36,7 @@ void sm510_base_device::push_stack() m_stack[0] = m_pc; } -inline void sm510_base_device::do_branch(UINT8 pu, UINT8 pm, UINT8 pl) +void sm510_base_device::do_branch(UINT8 pu, UINT8 pm, UINT8 pl) { // set new PC(Pu/Pm/Pl) m_pc = ((pu << 10 & 0xc00) | (pm << 6 & 0x3c0) | (pl & 0x03f)) & m_prgmask;