mirror of
https://github.com/holub/mame
synced 2025-05-28 08:33:05 +03:00
z80scc: Fix vector modification in high bits
This commit is contained in:
parent
bb64dd17bc
commit
2908f3b1cd
@ -724,6 +724,7 @@ uint8_t z80scc_device::modify_vector(uint8_t vec, int i, uint8_t src)
|
||||
// Modify vector according to Hi/lo bit of WR9
|
||||
if (m_wr9 & WR9_BIT_SHSL) // Affect V4-V6
|
||||
{
|
||||
src = bitswap<4>(src, 3, 0, 1, 2); // order switched (see table above)
|
||||
vec &= 0x8f;
|
||||
vec |= src << 4;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user