Impl Java `Instruction.toString()` (masm formatter)

This commit is contained in:
wtfsck 2022-06-19 19:21:32 +02:00
parent 252c32a568
commit f15991baba
1 changed files with 4 additions and 1 deletions

View File

@ -195,7 +195,10 @@ public final class Instruction {
*/
@Override
public String toString() {
throw new UnsupportedOperationException(); // TODO:
com.github.icedland.iced.x86.fmt.masm.MasmFormatter formatter = new com.github.icedland.iced.x86.fmt.masm.MasmFormatter();
com.github.icedland.iced.x86.fmt.StringOutput output = new com.github.icedland.iced.x86.fmt.StringOutput();
formatter.format(this, output);
return output.toString();
}
/**