package name.panitz.fun4u.machine;

public class Add implements Instruction {

	@Override
	public void execute(Kellermaschine kellermaschine) {
		int op1 
		 = ((IntO)(kellermaschine.heap
			 [kellermaschine.keller.pop()])).n;
		int op2 
		 = ((IntO)(kellermaschine.heap
			 [kellermaschine.keller.pop()])).n;
		kellermaschine.keller.push(kellermaschine.store(op1+op2));
		kellermaschine.pc=kellermaschine.pc+1;
	}

}
