Exemplo n.º 1
0
void nscsi_callback_device::scsi_ctrl_changed()
{
	m_ctrl = scsi_bus->ctrl_r();

	m_write_rst((m_ctrl & S_RST) ? 1 : 0);
	m_write_atn((m_ctrl & S_ATN) ? 1 : 0);
	m_write_ack((m_ctrl & S_ACK) ? 1 : 0);
	m_write_req((m_ctrl & S_REQ) ? 1 : 0);
	m_write_msg((m_ctrl & S_MSG) ? 1 : 0);
	m_write_io((m_ctrl & S_INP) ? 1 : 0);
	m_write_cd((m_ctrl & S_CTL) ? 1 : 0);
	m_write_sel((m_ctrl & S_SEL) ? 1 : 0);
	m_write_bsy((m_ctrl & S_BSY) ? 1 : 0);
}
Exemplo n.º 2
0
//normal memory write
static INLINE void WrMem(unsigned int A, uint8 V)
{
	//BWrite[A](A,V);
	//#ifdef _S9XLUA_H
	//CallRegisteredLuaMemHook(A, 1, V, LUAMEMHOOK_WRITE);
	//#endif
	if (A < (uint16_t)0x2000)		// 3 Mirrors of $0000-$0800
		XRAM[A & 0x07FF] = V;
	else if (A < (uint16_t)0x8000)
		m_write_io(A, V);
	else
	{
		printf("X6502 Write val $%02x to addr : $%04x\n", V, A);
		if (A == 0xEAEA)
			finished = 1;
	}
}