Part 4: Analysis of loop program structure and control of flow changes (1pt each
ID: 3583132 • Letter: P
Question
Part 4: Analysis of loop program structure and control of flow changes (1pt each answer) 20 points Figure 4Conditional flow program (same program as Fig. 3). Mov AX, 2000 SI, 0100 Mov DI,0120 MOV CX, 010 [S11 REPEAT Mov D11 AH SI DI CX (a) cts 100 114 Instruction 1 1374:0100 B80020 Mov Ax, 2000 D5 1374:0103 BED8 Instruction 2 Instruction 3 1374:0105 BB0101 Mov BX, 0110 Instruction 4 1374 0108 8A27 Instruction 5 1374:010A 886740 Mov IBx +40 All Instruction 6 1374 0100 43 INC BX 0130 Instruction 7 1374:010E 81 FB3001 oMP Bx, B 1374:0112 75F4 0108 Instructio 1374:0114 Instruction The program in 4(a) was nun in Lab Exercise 3 to observe its operation and then redesigned to Fig meet an alemate set of requirements. The code sequence in Fig 40b) performs essentially the same Block Move (Copy) as the of it a different design, processes a different operation destination at different size array ofdata, source and amays are located problem the interpretation of the operation of this altemate program and a comparison to the program in Fig (a) About the structure of the loop program in Fig 40b 1. Identify the range of logical addresses that comespond to the instructions that perform initialization prior to entry ofthe body ofthe loop. 2 what is the number of through of e instruction the represents the entry point of the body the loop? 3 Identity the range of logical addresses that correspond to the instructions that are repeated as part of the loop operation (the body of the loop). through Ans,Explanation / Answer
Ans.1. 0100 to 010A
Ans.2. Instruction 4
Ans.3. 0101 to 0112
Ans.5. Instruction 8
Ans.6. Post test. Similar to a do loop since the condition is checked at the end of the loop.