| 1706 | } |
| 1707 | |
| 1708 | static void logRE8(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1709 | out.append(inst->name); |
| 1710 | out.append(" "); |
| 1711 | if (inst->width==32) { |
| 1712 | outR32(op->reg, out); |
| 1713 | out.append(","); |
| 1714 | outE8(op, out); |
| 1715 | } else if (inst->width==16) { |
| 1716 | outR16(op->reg, out); |
| 1717 | out.append(","); |
| 1718 | outE8(op, out); |
| 1719 | } else if (inst->width==8) { |
| 1720 | outR8(op->reg, out); |
| 1721 | out.append(","); |
| 1722 | outE8(op, out); |
| 1723 | } else { |
| 1724 | kpanic_fmt("unknown width: %d in logRE8", inst->width); |
| 1725 | } |
| 1726 | } |
| 1727 | |
| 1728 | static void logRR8(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1729 | out.append(inst->name); |