Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Part 5: I-Then-Else Program Structure 1. Answer the questions that follow about

ID: 3583133 • Letter: P

Question

Part 5: I-Then-Else Program Structure 1. Answer the questions that follow about the structure and operation of the program that follows. pts-1 through 7 equals 1pt each an and 8 through 11 2pts each. Mov Ax, Value A MOV BX, Value B Mov CX, Value c I4 CMP BX, AX JC FALSE 16 ADD AX, BX CX, AX 18 JMP NEXT FALSE SUB AX, BX 110 MOV CX, AX 111 NEXT NOP 1. Does instruction 5 represent a conditional or unconditional jump operation? 2. Does instruction 8 represent a conditional or unconditional jump operation? 3. Write a numeric expression in terms of symbols value A, value B, and/or Value C that represents the computation that instruction 4 performs to create the conditional test criteria in the flags. Ans: Value A 4. What is the "criteria" that will make the conditional jump to be "taken" (express the answer in terms of a state (0 or 1) of a specific flag (CF.ZF.SF.PF. etc.) -ie. ?F 5. Which instruction(s) represent the "Then path." Just list the I numbers: 12, 12, etc.) Ans: 6. Which instruction(s) represent the "Else path. Just list the numbers. Il 12, etc.) Ans: this result a byte-wide, or word- In which register is the result produced? Is wide number?

Explanation / Answer

Ans.4. CF = 1 when the carry flag is set to 1.

Ans.5. I9 : Then path

Ans.6. I6: Else path