example, to see if var1 is bigger than var2: whichisbigger: ld a,(var2) ld b,a ;var2 is in 'b' ld a,(var1) ;var1 is in 'a' cp b ;a minus b or var1-var2 jp c,var2bigger var1bigger: ..... code ..... var2bigger: ..... code ..... .end END