mirror of https://github.com/icedland/iced.git
Impl Java `Instruction.toString()` (masm formatter)
This commit is contained in:
parent
252c32a568
commit
f15991baba
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue