renamed sm510/sm510op.inc to sm510/sm510op.c

This commit is contained in:
hap 2015-07-03 19:29:38 +02:00
parent d19922bd32
commit 4b6e31f51d
2 changed files with 4 additions and 3 deletions

View File

@ -15,8 +15,6 @@
#include "sm510.h"
#include "debugger.h"
#include "sm510op.inc"
// MCU types
const device_type SM510 = &device_creator<sm510_device>;

View File

@ -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;