a)On the IAS, what would the machine code instruction look like to load the contents of memory address 2 to the accumulator?
b) How many trips to memory does the CPU need to make to complete this instruction during the instruction cycle?
Take rand integer elements to array and display. MIPS.
MIPS. Find the average of an array of integers.
Implement the following C++ expression in assembly language, using 32-bit unsigned operands:
ask the user to enter val2, val1, val3 by calling Readint
If (val2 ==0) then
{val2 = 1}
val1 = (val3 / val2) * (val1 + val3)
Val1 = 600
Val2 = 0
Val3 = 1000
Write an assembly language program that moves the number 2 to BL and 0 to AL. Add BL to AL ECX many times having AL as the destination. Move 10 into ECX before the loop. What will the value of AL when the loop is done?
Write an assembly language program that declares three integer variables called number1 initialized to 9, number2 initialized to 15 and number3 initialized to 23. The assembly language code must add the three numbers and move the result into ebx. The program also must find the difference between number2 and number3 (i.e. 15 – 23). The difference must be placed in edx.
7. What is the binary representation of the following hexadecimal numbers?
a. A4693FBC
b. B697C7A1
c. 2B3D9461
6. What is the hexadecimal representation of each of the following binary numbers?
a. 0011 0101 1101 1010
b. 1100 1110 1010 0011
c. 1111 1110 1101 1011
5. What is the minimum number of binary bits needed to represent each of the following
unsigned decimal integers?
a. 65
b. 409
c. 16385
4. How many bytes are contained in each of the following data types?
a. word
b. doubleword
c. quadword.
d. double quadword