Beispiel #1
0
void pic16c62x_device::tris()
{
	switch(m_opcode.b.l & 0x7)
	{
		case 05:    STORE_REGFILE(0x85, m_W); break;
		case 06:    STORE_REGFILE(0x86, m_W); break;
		default:    illegal(); break;
	}
}
Beispiel #2
0
void pic16c62x_device::STORE_RESULT(offs_t addr, UINT8 data)
{
	if (m_opcode.b.l & 0x80)
	{
		STORE_REGFILE(addr, data);
	}
	else
	{
		m_W = data;
	}
}
Beispiel #3
0
INLINE void STORE_RESULT(offs_t addr, UINT8 data)
{
	if (R.opcode.b.l & 0x20)
	{
		STORE_REGFILE(addr, data);
	}
	else
	{
		R.W = data;
	}
}
Beispiel #4
0
void pic16c62x_device::movwf()
{
	STORE_REGFILE(ADDR, m_W);
}
Beispiel #5
0
void pic16c62x_device::clrf()
{
	STORE_REGFILE(ADDR, 0);
	SET(STATUS, Z_FLAG);
}
Beispiel #6
0
void pic16c62x_device::bsf()
{
	m_ALU = GET_REGFILE(ADDR);
	m_ALU |= bit_set[POS];
	STORE_REGFILE(ADDR, m_ALU);
}
Beispiel #7
0
void pic16c62x_device::bcf()
{
	m_ALU = GET_REGFILE(ADDR);
	m_ALU &= bit_clr[POS];
	STORE_REGFILE(ADDR, m_ALU);
}
Beispiel #8
0
static void movwf(void)
{
	STORE_REGFILE(ADDR, R.W);
}
Beispiel #9
0
static void clrf(void)
{
	STORE_REGFILE(ADDR, 0);
	SET(Z_FLAG);
}
Beispiel #10
0
static void bsf(void)
{
	R.ALU = GET_REGFILE(ADDR);
	R.ALU |= bit_set[POS];
	STORE_REGFILE(ADDR, R.ALU);
}
Beispiel #11
0
static void bcf(void)
{
	R.ALU = GET_REGFILE(ADDR);
	R.ALU &= bit_clr[POS];
	STORE_REGFILE(ADDR, R.ALU);
}