summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/axc51/axc51extops.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/axc51/axc51extops.hxx')
-rw-r--r--src/devices/cpu/axc51/axc51extops.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/axc51/axc51extops.hxx b/src/devices/cpu/axc51/axc51extops.hxx
index 49d74711df1..4ff83d15880 100644
--- a/src/devices/cpu/axc51/axc51extops.hxx
+++ b/src/devices/cpu/axc51/axc51extops.hxx
@@ -427,7 +427,7 @@ void axc51base_cpu_device::axc51_extended_a5(uint8_t r)
// SWAP16 ERn
uint8_t n = (prm & 0x0c) >> 2;
uint16_t val = get_erx(n);
- uint16_t newval = (val << 8) | (val >> 8);
+ uint16_t newval = swapendian_int16(val);
set_erx(n, newval);
break;
}