diff options
Diffstat (limited to 'src/de/fernflower/code/instructions/GOTO_W.java')
-rw-r--r-- | src/de/fernflower/code/instructions/GOTO_W.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/de/fernflower/code/instructions/GOTO_W.java b/src/de/fernflower/code/instructions/GOTO_W.java new file mode 100644 index 0000000..b347f91 --- /dev/null +++ b/src/de/fernflower/code/instructions/GOTO_W.java @@ -0,0 +1,19 @@ +package de.fernflower.code.instructions; + +import java.io.DataOutputStream; +import java.io.IOException; + +import de.fernflower.code.JumpInstruction; + +public class GOTO_W extends JumpInstruction { + + public void writeToStream(DataOutputStream out, int offset) throws IOException { + out.writeByte(opc_goto_w); + out.writeInt(getOperand(0)); + } + + public int length() { + return 5; + } + +} |