package name.panitz.fun4u.machine;

public class Lt 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;
		
		if (op1<op2)
			kellermaschine.keller.push(kellermaschine.store(1));
		else 
			kellermaschine.keller.push(kellermaschine.store(0));
		kellermaschine.pc=kellermaschine.pc+1;
	}

}
