GdromProtocol/packetCommand: putU2 short
This commit is contained in:
parent
f08610d494
commit
99b7346a1b
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user