| 1766 | } |
| 1767 | |
| 1768 | static void logRR16(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1769 | out.append(inst->name); |
| 1770 | out.append(" "); |
| 1771 | if (inst->width==32) { |
| 1772 | outR32(op->reg, out); |
| 1773 | out.append(","); |
| 1774 | outR16(op->rm, out); |
| 1775 | } else if (inst->width==16) { |
| 1776 | outR16(op->reg, out); |
| 1777 | out.append(","); |
| 1778 | outR16(op->rm, out); |
| 1779 | } else if (inst->width==8) { |
| 1780 | outR8(op->reg, out); |
| 1781 | out.append(","); |
| 1782 | outR16(op->rm, out); |
| 1783 | } else { |
| 1784 | kpanic_fmt("unknown width: %d in logRR16", inst->width); |
| 1785 | } |
| 1786 | } |
| 1787 | |
| 1788 | static void logR(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1789 | out.append(inst->name); |
nothing calls this directly
no test coverage detected