Question: Suppose that you are working with a CISC machine using a 2.4 GHz clock (i.e., the clock ticks 2.4 billion times per second). This particular
Suppose that you are working with a CISC machine using a 2.4 GHz clock (i.e., the clock ticks 2.4 billion times per second). This particular computer uses MASM-like instructions with the following timings:
add reg, mem 9 clock cycles (i.e., the ADD micro-program has 9 instructions) add reg, immed 3 clock cycles loop label 7 clock cycles
Suppose that the following code fragment is used to sum elements of a numeric array. For this problem, assume that memory limitations are non-existent and that there is no limit to the size of the array.
mov bx, 0 ;initialize sum mov ecx, MAX_SIZE ;initialize loop counter mov esi, OFFSET list ;initialize array pointer more: add bx,[esi][esi] ;add current list element add
66, 2 ;move array pointer to next element loop more ;auto-decrement ecx, jump to more if ecx 0
After initialization, how many array elements can be processed in 4 ms? Round your answer to the nearest integer. Note that 1 ms. = 0.001 second.
esi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

[esi][esi] ;add current list element add
66, 2 ;move array pointer to next element loop more ;auto-decrement ecx, jump to more if ecx 0