diff options
| author | 2020-10-02 14:34:47 +0200 | |
|---|---|---|
| committer | 2020-10-03 10:14:32 +0200 | |
| commit | 2908f3b1cdcfab3fbd105ca908d97bf0ef67eb3a (patch) | |
| tree | 0ddb9d971fa0119f17a408b0f6b39058e8a2b0dc | |
| parent | bb64dd17bccfa1765a883426e562c2bd8af5c1fc (diff) | |
z80scc: Fix vector modification in high bits
| -rw-r--r-- | src/devices/machine/z80scc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/machine/z80scc.cpp b/src/devices/machine/z80scc.cpp index 0259fb5d0b0..e3a7c8a1d00 100644 --- a/src/devices/machine/z80scc.cpp +++ b/src/devices/machine/z80scc.cpp @@ -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; } |
