01: package net.sf.jdec.jvminstructions.commands;
02:
03: import net.sf.jdec.core.Operand;
04: import net.sf.jdec.core.OperandStack;
05: import net.sf.jdec.reflection.Behaviour;
06:
07: public class L2dCommand extends AbstractInstructionCommand {
08:
09: public L2dCommand(Behaviour context) {
10: super (context);
11:
12: }
13:
14: public int getSkipBytes() {
15: return 0;
16: }
17:
18: public void execute() {
19: OperandStack opStack = getStack();
20: Operand operand = (Operand) opStack.pop();
21: operand.setOperandValue(operand.getOperandValue());
22:
23: boolean r = false;// checkIFLoadInstIsPartOFTernaryCond(currentForIndex);
24: if (r) {
25: if (opStack.size() > 0) {
26: java.lang.String str = opStack.getTopOfStack()
27: .getOperandValue();
28: str = str + operand.getOperandValue();
29: operand.setOperandValue(str);
30: }
31: }
32: opStack.push(operand);
33: }
34:
35: }
|