drc: fix wrong writes
authornotaz <notasas@gmail.com>
Sun, 23 Feb 2025 02:20:09 +0000 (04:20 +0200)
committernotaz <notasas@gmail.com>
Sun, 23 Feb 2025 02:20:09 +0000 (04:20 +0200)
libpcsxcore/new_dynarec/pcsxmem.c

index 67a6531..98e2c6b 100644 (file)
@@ -85,16 +85,12 @@ static u32 io_read_sio32()
 
 static void io_write_sio16(u32 value)
 {
-       sioWrite8((unsigned char)value);
-       sioWrite8((unsigned char)(value>>8));
+       sioWrite8(value);
 }
 
 static void io_write_sio32(u32 value)
 {
-       sioWrite8((unsigned char)value);
-       sioWrite8((unsigned char)(value >>  8));
-       sioWrite8((unsigned char)(value >> 16));
-       sioWrite8((unsigned char)(value >> 24));
+       sioWrite8(value);
 }
 
 #if !defined(DRC_DBG) && defined(__arm__)