summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-09-22 10:49:14 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-09-22 10:50:11 -0400
commit7d0951b662cb407b2e853b34e7fe2f9d39e30047 (patch)
tree47f756bb13691420d87c03861bed8b80f3bd406f
parent5738e3459604ce9f52b481617852864cebb69090 (diff)
dp83932c.cpp: Use swapendian_int16
-rw-r--r--src/devices/machine/dp83932c.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/machine/dp83932c.cpp b/src/devices/machine/dp83932c.cpp
index e6ddf1c11c3..f956d8da8ea 100644
--- a/src/devices/machine/dp83932c.cpp
+++ b/src/devices/machine/dp83932c.cpp
@@ -490,8 +490,9 @@ void dp83932c_device::load_cam()
cep, u8(cap0), cap0 >> 8, u8(cap1), cap1 >> 8, u8(cap2), cap2 >> 8);
m_cam[cep] =
- (u64(u8(cap0 >> 0)) << 40) | (u64(u8(cap0 >> 8)) << 32) | (u64(u8(cap1 >> 0)) << 24) |
- (u64(u8(cap1 >> 8)) << 16) | (u64(u8(cap2 >> 0)) << 8) | (u64(u8(cap2 >> 8)) << 0);
+ (u64(swapendian_int16(cap0)) << 32) |
+ (u64(swapendian_int16(cap1)) << 16) |
+ (u64(swapendian_int16(cap2)) << 0);
m_reg[CDP] += 4 * width;
m_reg[CDC]--;