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

Function GenCodeCmdAdd

NULLC/CodeGen_X86.cpp:2327–2336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2325}
2326
2327void GenCodeCmdAdd(VMCmd cmd)
2328{
2329 (void)cmd;
2330 EMIT_COMMENT("ADD int");
2331 EMIT_OP_REG(o_pop, rEAX);
2332 EMIT_OP_REG(o_pop, rEDX);
2333 EMIT_OP_REG_REG(o_add, rEAX, rEDX);
2334 EMIT_OP_REG(o_push, rEAX);
2335 KILL_REG(rEDX);
2336}
2337
2338void GenCodeCmdSub(VMCmd cmd)
2339{

Callers

nothing calls this directly

Calls 3

EMIT_COMMENTFunction · 0.85
EMIT_OP_REGFunction · 0.85
EMIT_OP_REG_REGFunction · 0.85

Tested by

no test coverage detected