Professional Documents
Culture Documents
Assignment 5 Sazid
Assignment 5 Sazid
CSE 331
Section 01
Summer 2020
[5+5]
Answer:
Number of clock cycles for execution of the loop once, m = 2 + 3 + 16 = 21
Time required for the execution for loop once = m X T = 21 X 1/(5 X 10^6) = 4.2 μs
Count = td / (m X T)
td = count X (m X T)
td = 8 X 4.2 μs
td = 33.6 μs
2. List down the values of AL for each execution of the LOOP [10]
Answer: loop count CX set at 000AH that means loop will executed for 10 times.
AL register set to 0 and BL register set to 1
Number of AL values
loop execution
1 01h
2 03h
3 06h
4 0Ah
5 0Fh
6 15h
7 1Ch
8 24h
9 2Dh
10 37h