12 After The Instructions Below Find Out Which Flags Are Set Mov Al 35h Ror Al 4 A Of Cf B Sf Pf 13 Structural 1 (115.92 KiB) Viewed 35 times
12 After The Instructions Below Find Out Which Flags Are Set Mov Al 35h Ror Al 4 A Of Cf B Sf Pf 13 Structural 2 (169.53 KiB) Viewed 35 times
12. After the instructions below, find out which flags are set? MOV AL, 35h ROR AL, 4 a) OF, CF b) SF, PF 13. Structural Hazards belong to which of the following definitions? a) SW cannot support this combination of instructions b) HW cannot support this combination of instructions c) Instruction depends on result of prior instruction still in the pipeline d) Pipelining of branches & other instructions that change the PC e) None of these 14. What kind of error will be obtained if the following instructions run? sub r1,r4, r3 add r1,r2,r3 mul r6,r1,r7 a) Read After Write b) Write After Read c) Write After Write d) Structural 15. Use 1-bit prediction scheme and determine accuracy rate by starting from TAKEN condition. ; a is a given vector for (i=0;i<100;i++) a=a+2; end ********* c) OF, AF d) CF, SF, PF e) CF, AF,PF f)None of these a) 100/100 b) 90/100 c) 98/100 d) 99/100 e) 97/100 f) None of these 16. Use 2-bits prediction scheme and determine accuracy rate by starting from WEAKLY NOT TAKEN condition if L1 loop is taken 10 times. L1: R1=0 R2=99 L2: BEQ R1,R2, L1 ADD R1, R1,1 JUMP L2 a) 985/1000 Predict Take 11 Predict Not 01 Taken b) 990/1000 c) 995/1000 NT T 10 NT NT T NT Saturated states Predict Taken d) 980/1000 e) 998/1000 f) 997/1000
Assembly-2: .DATA data1 dd 01234567h data2 dd ? .CODE MOV AX,@DATA MOV DS,AX MOV CX, 4 MOV SI, offset data1 MOV DI, offset data2+3 L1: MOV AL,[SI] MOV [DI],AL ADD SI,1 ADD DI,-1 LOOP L1 END the Assembly-2 below.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!