From 7d0951b662cb407b2e853b34e7fe2f9d39e30047 Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 22 Sep 2022 10:49:14 -0400 Subject: [PATCH] dp83932c.cpp: Use swapendian_int16 --- src/devices/machine/dp83932c.cpp | 5 +++-- 1 file 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]--;