MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / logRR

Function logRR

source/emulation/cpu/decoder.cpp:1648–1666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1646}
1647
1648static void logRR(const LogInstruction* inst, DecodedOp* op, BString& out) {
1649 out.append(inst->name);
1650 out.append(" ");
1651 if (inst->width==32) {
1652 outR32(op->reg, out);
1653 out.append(",");
1654 outR32(op->rm, out);
1655 } else if (inst->width==16) {
1656 outR16(op->reg, out);
1657 out.append(",");
1658 outR16(op->rm, out);
1659 } else if (inst->width==8) {
1660 outR8(op->reg, out);
1661 out.append(",");
1662 outR8(op->rm, out);
1663 } else {
1664 kpanic_fmt("unknown width: %d in logRR", inst->width);
1665 }
1666}
1667
1668static void logRE(const LogInstruction* inst, DecodedOp* op, BString& out) {
1669 out.append(inst->name);

Callers

nothing calls this directly

Calls 5

outR32Function · 0.85
outR16Function · 0.85
outR8Function · 0.85
kpanic_fmtFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected