| 1746 | } |
| 1747 | |
| 1748 | static void logRE16(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1749 | out.append(inst->name); |
| 1750 | out.append(" "); |
| 1751 | if (inst->width==32) { |
| 1752 | outR32(op->reg, out); |
| 1753 | out.append(","); |
| 1754 | outE16(op, out); |
| 1755 | } else if (inst->width==16) { |
| 1756 | outR16(op->reg, out); |
| 1757 | out.append(","); |
| 1758 | outE16(op, out); |
| 1759 | } else if (inst->width==8) { |
| 1760 | outR8(op->reg, out); |
| 1761 | out.append(","); |
| 1762 | outE16(op, out); |
| 1763 | } else { |
| 1764 | kpanic_fmt("unknown width: %d in logRE16", inst->width); |
| 1765 | } |
| 1766 | } |
| 1767 | |
| 1768 | static void logRR16(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1769 | out.append(inst->name); |