> _setxxop1 equ 4613h > _setxxop2 equ 4617h > _CPOP1OP2 equ 41FBh > > ld a,(var1) > call _setxxop1 ;Store into Op1 > ld a,(var2) > call _setxxop2 ;Store into Op2 > call _CPOP1OP2 ;Compare Op1/Op2 > jp z,equal > jp nz,less > jp c,greater actually u would change the nz and the c around because it would go to less even if it was greater also