Commit b2e8c4c5 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[dx9asm] Handle mov and mova more correctly for conversions.

parent 2115b896
Pipeline #47 passed with stage
in 1 minute and 36 seconds
......@@ -111,7 +111,7 @@ namespace dxup {
const DX9Operand* dst = operation.getOperandByType(optype::Dst);
const DX9Operand* src0 = operation.getOperandByType(optype::Src0);
if (dst->getRegType() == D3DSPR_ADDR)
if (src0->getRegType() != D3DSPR_CONSTINT && dst->getRegType() == D3DSPR_ADDR && getMajorVersion() == 1 && getMinorVersion() == 1)
return handleMova(operation);
DXBCOperand dstOp = { *this, operation, *dst, 0 };
......@@ -129,6 +129,9 @@ namespace dxup {
const DX9Operand* dst = operation.getOperandByType(optype::Dst);
const DX9Operand* src0 = operation.getOperandByType(optype::Src0);
if (src0->getRegType() == D3DSPR_CONSTINT)
return handleMov(operation);
DXBCOperand dstOp = { *this, operation, *dst, 0 };
DXBCOperand srcOp = { *this, operation, *src0, 0 };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment