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 DaloadCommad extends AbstractInstructionCommand {
08:
09: public DaloadCommad(Behaviour context) {
10: super (context);
11:
12: }
13:
14: public int getSkipBytes() {
15: return 0;
16: }
17:
18: public void execute() {
19: OperandStack stack = getStack();
20: Operand op = (Operand) stack.pop();
21: Operand op1 = (Operand) stack.pop();
22: Operand op2 = new Operand();
23: op2.setOperandValue(op1.getOperandValue() + "["
24: + op.getOperandValue() + "]");
25: boolean r = false;//checkIFLoadInstIsPartOFTernaryCond(currentForIndex);
26: if (r) {
27: if (stack.size() > 0) {
28: java.lang.String str = stack.getTopOfStack()
29: .getOperandValue();
30: str = str + op2.getOperandValue();
31: op2.setOperandValue(str);
32: }
33: }
34: stack.push(op2);
35: }
36:
37: }
|