subject

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 7 clock cycles (i. e., the add micro-program has 7 instructions) add reg, immed 4 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 ] ;

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 ms?

round your answer to the nearest integer.

note that 1 ms. = 0.001 second.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 22:00, rocksquad9125
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
image
Computers and Technology, 25.06.2019 08:20, Wintersavannah
The control unit takes ths instructions fetched by the preteched unit and translates them into a form that can be understood by
Answers: 1
image
Computers and Technology, 25.06.2019 15:10, seoulux
Write a program to compute the ideal weight for both males and females in java. according to one study, the ideal weight for a female is 100 pounds plus 5 pounds for each inch in height over 5 feet. for example, the ideal weight for a female who is 5'3" would be 100 + 3*5 = 115 pounds. for a male, the ideal weight is 106 pounds plus 6 pounds for each inch in height over 5 feet. for example, the ideal weight for a male who is 5'3" would be 106 + 3*6 = 124 pounds. your program should ask the user to enter his/her height in feet and inches (both as integers—so a person 5'3" would enter the 5 and the 3). it should then compute and print both the ideal weight for a female and the ideal weight for a male. the general outline of your main function would be as follows: (1) declare your variables (think about what variables you need—you need to input two pieces of information, then you need some variables for your calculations (see the following steps) (2) get the input (height in feet and inches) from the user (3) compute the total number of inches of height (convert feet and inches to total inches (note: 1 foot equal 12 inches and hence 5 feet equal 60 inches. (4) compute the ideal weight for a female and the ideal weight for a male (5) print the answers.
Answers: 2
image
Computers and Technology, 25.06.2019 20:30, perezz97
Drag each tile to the correct box. shawn has been assigned to create a storyboard for an online grocery website. organize the steps he needs to follow to create a storyboard in the correct order.
Answers: 2
You know the right answer?
Suppose that you are working with a cisc machine using a 2.4 ghz clock (i. e., the clock ticks 2.4 b...

Questions in other subjects:

Konu
Mathematics, 14.06.2021 20:40