GdromProtocol/packetCommand: putU2 short

This commit is contained in:
Zack Buhman 2025-01-21 00:45:38 -06:00
parent f08610d494
commit 99b7346a1b

View File

@ -42,8 +42,7 @@ public class GdromProtocol {
int i1 = command.getByte(i * 2 + 1); int i1 = command.getByte(i * 2 + 1);
// little endian // little endian
int word = ((i1 & 0xff) << 8) | (i0 & 0xff); int word = ((i1 & 0xff) << 8) | (i0 & 0xff);
//System.out.println(word); Memory.putU2(Gdrom.data, (short)word);
Memory.putU2(Gdrom.data, (byte)word);
} }
/* /*