Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur mov ax 05h mov bx,06h cmp bx,ax js loop1 SF=1 ZF=1 JUMP WILL OCCUR SF=0 ZF=O JUMP WILL NOT OCCUR SF=O ZF-1 JUMP WILL NOT OCCUR SF=1 ZF=O JUMP WILL OCCUR Question 3 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur Mb O EN Question 1 (10 points) Saved Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur? mov ax,Oh cmp ax,Ofh jns loop1 SF=0 ZF=1 JUMP WILL NOT OCCUR SF=1 ZF=0 JUMP WILL OCCUR *SF=1 ZF=0 JUMP WILL NOT OCCUR SF=0 ZF=0 JUMP WILL OCCUR Question 3 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur mov ax,Ofh cmp ax, Oh jns loop1 SF=O ZF=1 JUMP WILL NOT OCCUR SF=1 ZF=O JUMP WILL OCCUR SF=0 ZFEO JUMP WILL OCCUR SF=1 ZF=1 JUMP WILL OCCUR Question 4 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur mov ax, 9fffh mov bx, 8fffh cmp ax, bx js LOOPX SF=O ZF=O JUMP WILL NOT OCCUR SF=1 ZF=1 JUMP WILL OCCUR SF=1 ZF=O JUMP WILL OCCUR SF=0 ZF=1 JUMP WILL OCCUR Question 5 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur mov ax, 7fffh mov bx, 8fffh cmp bx, ax js LOOPX SF=1 ZF=O JUMP WILL NOT OCCUR SF=O ZF=0 JUMP WILL NOT OCCUR SF=1 ZFEO JUMP WILL OCCUR SF=0 ZF=1 JUMP WILL OCCUR Question 6 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur : mov 01h to ax (16 bits) ; mov 01h to bx (16 bits) mov ax, 01h mov bx, 01h cmp bx,ax jns LOOPX SF=0 ZF=1 JUMP WILL OCCUR SF=1 ZF=0 JUMP WILL OCCUR SF=1 ZF=O JUMP WILL NOT OCCUR SF-0 ZF=0 JUMP WILL NOT OCCUR Question 7 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur ; move FFFFh to ax (16 bits) ; move O to bx mov ax, Offffh mov bx, Oh cmp bx,ax js LOOPX SF=0 ZF-1 JUMP WILL OCCUR SF-1 ZF=0 JUMP WILL NOT OCCUR SF-0 ZF=O JUMP WILL NOT OCCUR SF-1 ZF-O JUMP WILL OCCUR Choose the correct Assembly Language code below that does the following: If cat is less than dog THEN go to LOOP A ELSE go to LOOP_B if(cat mouse)) goto LOOP A else goto LOOP_B: -- a EXPLANATION: If (dog is LESS THAN or EQUAL to cat) OR (dog is GREATER THAN mouse) THEN go to LOOP A ELSE go to LOOP_B cmp dog.cat is LOOP_X iz LOOP_X jmp LOOP A LOOP_X: mov ax dog cmp ax,mouse iz LOOP A js LOOP A jmp LOOP A mov ax,dog cmp ax.cat js LOOP B jz LOOP B jmp LOOP X LOOP_X: mov ax,dog cmp ax, mouse iz LOOP A js LOOP A th jmp LOOP_B mov ax,dog cmp ax.cat js LOOP A iz LOOP_A LOOP_X: mov ax,dog cmp ax,mouse iz LOOP B js LOOP B imp LOOP A mov ax,dog cmp ax,cat js LOOP B jz LOOP_B jmp LOOPA LOOP_X: mov ax,dog cmp ax,mouse iz LOOP A js LOOP A jmp LOOP B