mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Missing files from last commit (nw)
This commit is contained in:
parent
bd964a7db3
commit
205d8d3fd3
@ -1396,6 +1396,7 @@ files {
|
||||
MAME_DIR .. "src/mame/drivers/lisa.cpp",
|
||||
MAME_DIR .. "src/mame/includes/lisa.h",
|
||||
MAME_DIR .. "src/mame/machine/lisa.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/mac128.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/mac.cpp",
|
||||
MAME_DIR .. "src/mame/includes/mac.h",
|
||||
MAME_DIR .. "src/mame/machine/egret.cpp",
|
||||
|
@ -617,6 +617,49 @@ WRITE8_MEMBER( z80scc_device::zbus_w )
|
||||
return;
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// cd_ab_r - Universal Bus read
|
||||
//-------------------------------------------------
|
||||
READ8_MEMBER( z80scc_device::cd_ab_r )
|
||||
{
|
||||
int ba = BIT(offset, 0);
|
||||
int cd = BIT(offset, 1);
|
||||
z80scc_channel *channel = ba ? m_chanA : m_chanB;
|
||||
|
||||
/* Expell non-Universal Bus variants */
|
||||
if ( !(m_variant & SET_Z85X3X))
|
||||
{
|
||||
logerror(" cd_ab_r not supported by this device variant, you should probably use combinations of c*_r/w and d*_r/w (see z80scc.h)\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// LOG(("z80scc_device::cd_ba_r ba:%02x cd:%02x\n", ba, cd));
|
||||
return cd ? channel->data_read() : channel->control_read();
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// cd_ab_w - Universal Bus write
|
||||
//-------------------------------------------------
|
||||
WRITE8_MEMBER( z80scc_device::cd_ab_w )
|
||||
{
|
||||
int ba = BIT(offset, 0);
|
||||
int cd = BIT(offset, 1);
|
||||
z80scc_channel *channel = ba ? m_chanA : m_chanB;
|
||||
|
||||
/* Expell non-Universal Bus variants */
|
||||
if ( !(m_variant & SET_Z85X3X) )
|
||||
{
|
||||
logerror(" cd_ab_w not supported by this device variant, you should probably use combinations of c*_r/w and d*_r/w (see z80scc.h)\n");
|
||||
return;
|
||||
}
|
||||
|
||||
LOG((" cd_ab_w %02x => ba:%02x cd:%02x (ofs %d)\n", data, ba, cd, offset&3));
|
||||
if (cd)
|
||||
channel->data_write(data);
|
||||
else
|
||||
channel->control_write(data);
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// cd_ba_r - Universal Bus read
|
||||
//-------------------------------------------------
|
||||
|
@ -643,6 +643,8 @@ public:
|
||||
dev.m_txcb = txb;
|
||||
}
|
||||
|
||||
DECLARE_READ8_MEMBER( cd_ab_r );
|
||||
DECLARE_WRITE8_MEMBER( cd_ab_w );
|
||||
DECLARE_READ8_MEMBER( cd_ba_r );
|
||||
DECLARE_WRITE8_MEMBER( cd_ba_w );
|
||||
DECLARE_READ8_MEMBER( ba_cd_r );
|
||||
|
Loading…
Reference in New Issue
Block a user