mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
renamed sm510/sm510op.inc to sm510/sm510op.c
This commit is contained in:
parent
d19922bd32
commit
4b6e31f51d
@ -15,8 +15,6 @@
|
|||||||
#include "sm510.h"
|
#include "sm510.h"
|
||||||
#include "debugger.h"
|
#include "debugger.h"
|
||||||
|
|
||||||
#include "sm510op.inc"
|
|
||||||
|
|
||||||
// MCU types
|
// MCU types
|
||||||
|
|
||||||
const device_type SM510 = &device_creator<sm510_device>;
|
const device_type SM510 = &device_creator<sm510_device>;
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
// SM510 opcode handlers
|
// SM510 opcode handlers
|
||||||
|
|
||||||
|
#include "sm510.h"
|
||||||
|
|
||||||
|
|
||||||
// internal helpers
|
// internal helpers
|
||||||
|
|
||||||
inline UINT8 sm510_base_device::ram_r()
|
inline UINT8 sm510_base_device::ram_r()
|
||||||
@ -33,7 +36,7 @@ void sm510_base_device::push_stack()
|
|||||||
m_stack[0] = m_pc;
|
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)
|
// set new PC(Pu/Pm/Pl)
|
||||||
m_pc = ((pu << 10 & 0xc00) | (pm << 6 & 0x3c0) | (pl & 0x03f)) & m_prgmask;
|
m_pc = ((pu << 10 & 0xc00) | (pm << 6 & 0x3c0) | (pl & 0x03f)) & m_prgmask;
|
Loading…
Reference in New Issue
Block a user