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