mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 12:35:27 +00:00
Fix assembly of 16-bit immediates.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1732 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
232fe74536
commit
dbd9d5fb2d
@ -832,7 +832,7 @@ enum NormalSSEOps
|
|||||||
(operand.scale == SCALE_IMM32 && bits == 64))
|
(operand.scale == SCALE_IMM32 && bits == 64))
|
||||||
{
|
{
|
||||||
emit->Write8(nops[op].imm32);
|
emit->Write8(nops[op].imm32);
|
||||||
immToWrite = 32;
|
immToWrite = bits == 16 ? 16 : 32;
|
||||||
}
|
}
|
||||||
else if ((operand.scale == SCALE_IMM8 && bits == 16) ||
|
else if ((operand.scale == SCALE_IMM8 && bits == 16) ||
|
||||||
(operand.scale == SCALE_IMM8 && bits == 32) ||
|
(operand.scale == SCALE_IMM8 && bits == 32) ||
|
||||||
@ -881,6 +881,9 @@ enum NormalSSEOps
|
|||||||
case 8:
|
case 8:
|
||||||
emit->Write8((u8)operand.offset);
|
emit->Write8((u8)operand.offset);
|
||||||
break;
|
break;
|
||||||
|
case 16:
|
||||||
|
emit->Write16((u16)operand.offset);
|
||||||
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
emit->Write32((u32)operand.offset);
|
emit->Write32((u32)operand.offset);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user