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: import net.sf.jdec.util.Constants;
07:
08: public class LxorCommand extends AbstractInstructionCommand {
09:
10: public LxorCommand(Behaviour context) {
11: super (context);
12:
13: }
14:
15: public int getSkipBytes() {
16: return 0;
17: }
18:
19: public void execute() {
20: OperandStack opStack = getStack();
21: Operand operand1 = opStack.getTopOfStack();
22: Operand operand2 = opStack.getTopOfStack();
23:
24: java.lang.String result = "(" + operand2.getOperandValue()
25: + "^" + operand1.getOperandValue() + ")";
26: Operand op = new Operand();
27: op.setOperandType(Constants.IS_CONSTANT_LONG);
28: op.setOperandValue(result);
29: boolean r = false;// checkIFLoadInstIsPartOFTernaryCond(currentForIndex);
30: if (r) {
31: if (opStack.size() > 0) {
32: java.lang.String str = opStack.getTopOfStack()
33: .getOperandValue();
34: str = str + op.getOperandValue();
35: op.setOperandValue(str);
36: }
37: }
38: opStack.push(op);
39: }
40:
41: }
|