MCPcopy Create free account
hub / github.com/WheretIB/nullc / GenCodeCmdMovDorL

Function GenCodeCmdMovDorL

NULLC/CodeGen_X86.cpp:1499–1521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1497}
1498
1499void GenCodeCmdMovDorL(VMCmd cmd)
1500{
1501 EMIT_COMMENT("MOV DorL");
1502
1503#ifdef NULLC_OPTIMIZE_X86
1504 if(EMIT_POP_DOUBLE(cmd.flag == ADDRESS_ABOLUTE ? rNONE : rEBP, cmd.argument+paramBase))
1505 return;
1506#endif
1507
1508 EMIT_OP_REG_RPTR(o_mov, rEBX, sDWORD, rESP, 0);
1509 if(cmd.flag == ADDRESS_ABOLUTE)
1510 EMIT_OP_ADDR_REG(o_mov, sDWORD, cmd.argument+paramBase, rEBX);
1511 else
1512 EMIT_OP_RPTR_REG(o_mov, sDWORD, rEBP, cmd.argument+paramBase, rEBX);
1513 KILL_REG(rEBX);
1514
1515 EMIT_OP_REG_RPTR(o_mov, rEBX, sDWORD, rESP, 4);
1516 if(cmd.flag == ADDRESS_ABOLUTE)
1517 EMIT_OP_ADDR_REG(o_mov, sDWORD, cmd.argument+paramBase + 4, rEBX);
1518 else
1519 EMIT_OP_RPTR_REG(o_mov, sDWORD, rEBP, cmd.argument+paramBase + 4, rEBX);
1520 KILL_REG(rEBX);
1521}
1522
1523void GenCodeCmdMovCmplx(VMCmd cmd)
1524{

Callers

nothing calls this directly

Calls 5

EMIT_COMMENTFunction · 0.85
EMIT_POP_DOUBLEFunction · 0.85
EMIT_OP_REG_RPTRFunction · 0.85
EMIT_OP_ADDR_REGFunction · 0.85
EMIT_OP_RPTR_REGFunction · 0.85

Tested by

no test coverage detected