View Javadoc
1 package jrre.instructionset.pop.localvariable; 2 3 import jrre.*; 4 5 public class IStore extends jrre.instructionset.Instruction { 6 7 int operandOne; 8 9 public IStore(int operandOne){ 10 11 this.operandOne = operandOne; 12 13 name = "istore operand"; 14 description = "foo foo moo poo"; 15 length = 1; 16 } 17 18 /*** 19 * Executes the <strong><code>istore</code></strong> instruction. 20 * 21 */ 22 public void execute(){ 23 24 //System.out.println("IStore: "+operandOne); 25 Stack.setLocalVariable(operandOne, Stack.popOperand()); 26 27 } 28 29 public String toString(){ 30 StringBuffer toReturn = new StringBuffer(); 31 toReturn.append("istore"); 32 return toReturn.toString(); 33 } 34 }

This page was automatically generated by Maven