add a,b puts a+b into "a" ;a holds the value lbl1: cp (Whatever) jr z,aistrue ;CODE FOR NOT TRUE aistrue: ld a,b cp (Whatever) ret nz ;CODE FOR BOTH TRUE