diff options
author | 2022-10-29 19:40:44 -0400 | |
---|---|---|
committer | 2022-10-29 19:40:44 -0400 | |
commit | 1af48b762c29e0f0a5dfddd1e5500623dc5baa99 (patch) | |
tree | 4685912bb16d53f87aa3380d62cfd686cc5ebb07 /src/devices/cpu/upd7725/upd7725.cpp | |
parent | 0747f93602e155ab411deaf8d35c88ea18cbffa2 (diff) |
Update various source files to use swapendian_int16
Diffstat (limited to 'src/devices/cpu/upd7725/upd7725.cpp')
-rw-r--r-- | src/devices/cpu/upd7725/upd7725.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/upd7725/upd7725.cpp b/src/devices/cpu/upd7725/upd7725.cpp index cb63995abb3..51c2faf3b6a 100644 --- a/src/devices/cpu/upd7725/upd7725.cpp +++ b/src/devices/cpu/upd7725/upd7725.cpp @@ -437,7 +437,7 @@ void necdsp_device::exec_op(uint32_t opcode) { case 12: r = (q << 1) | (c ? 1 : 0); break; //SHL1 (ROL) case 13: r = (q << 2) | 3; break; //SHL2 case 14: r = (q << 4) | 15; break; //SHL4 - case 15: r = (q << 8) | (q >> 8); break; //XCHG + case 15: r = swapendian_int16(q); break; //XCHG } flag.s0 = (r & 0x8000); |