Computer engineering

Answer the following questions (without running the program first):

  1. (10 points) What will be the print out after Task 1? b. (15 points) What will be the print out after Task 2 and what will be the values in r0 and r1 in hexadecimal after running

Task 2 assuming their values are 0x20001010 and 0x20001040, respectively when the function is called? c. (15 points) What will be the print out after Task 3 and what will be the values in r0 and r1 in hexadecimal after

running Task 3 assuming their values are 0x20001010 and 0x20001040, respectively when the function is called? d. (15 points) What will be the print out after Task 4 and what will be the values in r2 and r3 in hexadecimal after running

Task 4? e. (15 points) What will be the corresponding C code for each task?

  1. (20 points) We have learned in the class that for signed numbers, we have the following mapping between the relationship testing and condition flags (page 5 in lecture notes for lctr160) :

Determine the mapping between the relationship testing and condition flags for unsigned numbers.

 

Last Updated on March 21, 2020

Don`t copy text!
Scroll to Top