package name.panitz.fun4u.machine;

public class Sub 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(op2-op1));
		kellermaschine.pc=kellermaschine.pc+1;

	}

}
