Replaced loadShort/saveShort functions with applicable endian macros
svn-id: r41097
This commit is contained in:
parent
5bb449b2bf
commit
2abbcd54a4
4 changed files with 3 additions and 13 deletions
|
@ -95,7 +95,7 @@ int32 opcodeType0(void) {
|
|||
|
||||
if (size == 1) {
|
||||
address += index;
|
||||
pushVar(loadShort(address));
|
||||
pushVar((int16)READ_BE_UINT16(address));
|
||||
return (0);
|
||||
} else if (size == 2) {
|
||||
pushVar(*address);
|
||||
|
@ -186,7 +186,7 @@ int32 opcodeType1(void) {
|
|||
|
||||
switch (type2) {
|
||||
case 1: {
|
||||
saveShort(ptr + var_A + offset * 2, var);
|
||||
WRITE_BE_UINT16(ptr + var_A + offset * 2, var);
|
||||
return 0;
|
||||
}
|
||||
case 2: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue