Computers and Technology

Suppose that you are working with a CISC machine using a 2.8 GHz clock (i. e., the clock ticks 2.8 billion times per second). This particular computer uses MASM-like instructions with the following timings:

add reg, mem 7 clock cycles (i. e., the ADD micro-program has 7 instructions)
add reg, immed 2 clock cycles
loop label 5 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 esi, 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 2.8 ms? Round your answer to the nearest integer. Note that 1 ms. = 0.001 second.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 00:40, ndurairajownkpq
What social factors affect your health
Answers: 3
image
Computers and Technology, 24.06.2019 21:40, justintintran
Assume you need to test a function named inorder. the function inorder receives three int arguments and returns true if and only if the arguments are in non-decreasing order: that is, the second argument is not < the first and the third is not < the second. write the definition of driver function testinorder whose job it is to determine whether inorder is correct. so testinorder returns true if inorder is correct and returns false otherwise. for the purposes of this exercise, assume inorder is an expensive function call, so call it as few times as possible!
Answers: 1
image
Computers and Technology, 25.06.2019 04:30, BIKRAMlawati5544
The word window is an example of a /an
Answers: 1
image
Computers and Technology, 25.06.2019 05:10, Aaraar
Maia notices that her paragraphs are too close to one another. she wants to increase this space. which arrangement of steps does maia follow after she goes to the paragraph command group in the ribbon? type in the space needed, go to the after menu, go to the spacing part of the box, and open the paragraph dialog box. go to the spacing part of the box, go to the after menu, open the paragraph dialog box, and type in the space needed. open the paragraph dialog box, go to the spacing part of the box, go to the after menu, and type in the space needed. type in the space needed, open the paragraph dialog box, go to the after menu, and go to the spacing part of the box.
Answers: 1
Do you know the correct answer?
Suppose that you are working with a CISC machine using a 2.8 GHz clock (i. e., the clock ticks 2.8 b...

Questions in other subjects:

Konu
Mathematics, 25.01.2021 21:00