subject

5. Write assembly functions that implement the following C functions: a. uint64_t addU32_U64(uint32_t x, uint32_t y) // returns x+y
b. int64_t addS64(int64_t x, int64_t y) // returns x+y
c. int32_t convertS8ToS32(int8_t x) // converts 8-bit signed value to 32-bits
signed
d. int32_t convertU16ToS32(uint16_t x) // converts 16-bit unsigned value to
32-bits signed
e. int16_t maxS16(int16_t x, int16_t y) // returns the maximum of x, y
f. uint32_t maxU32(uint32_t x, uint32_t y) // returns the maximum of x, y
g. bool isGreaterThanU16(uint16_t x, uint16_t y) // returns 1 if x>y, 0 else
h. bool isGreaterThanS16(int16_t x, int16_t y) // returns 1 if x>y, 0 else
i. int32_t shiftRightS32 (int32_t x, uint8_t p) // returns x >> p = x*2^(-p) for
p = 0..31
j. uint16_t shiftU16(uint16_t x, int8_t p) // return x*2^p for p = -31..31
k. bool isEqualU16(uint16_t x, uint16_t y) // returns 1 if x=y, 0 if x!=y
l. bool isStrEqual(const char* str1, const char* str2) // returns 1 if the strings
are equivalent, 0 otherwise
m. void strCat(char* strTo, const char* strFrom) // concatenates strFrom to
the end of strTo (make sure that strTo contains enough room for strFrom
and strTo to prevent a seg fault)

Functions need to be written in ARM assembly language.

Raspberry Pi Assembly Language

All of the functions above should be present in a single file named hw2_prob5.s with functions callable from a C program. You do not need to submit the C files.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
7.23 main lab 7 - online shopping cart background this main lab extends the earlier prep lab "online shopping cart part 1". (you should save this as a separate project from the earlier prep lab). you will create an on-line shopping cart like you might use for your on-line purchases. the goal is to become comfortable with setting up classes and using objects. requirements this lab can be done individually or as pair programming. expanded itemtopurchase class (15 points) extend the itemtopurchase class as follows. we will not do unit testing in this lab so we will not be giving you the names of the member functions. create good ones on your own. create a parameterized constructor to assign item name, item description, item price, and item quantity (default values of "none" for name and description, and 0 for price and quantity). additional public member functions set an item description get an item description print the cost of an item - outputs the item name followed by the quantity, price, and subtotal (see example) print the description of an item - outputs the item name and description (see example) additional private data members a string for the description of the item. example output of the function which prints the cost of an item: bottled water 10 @ $1.50 = $15.00 example output of the function which prints the item description:
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
What was the name of the first computer (machine) language?
Answers: 2
You know the right answer?
5. Write assembly functions that implement the following C functions: a. uint64_t addU32_U64(uint32...
Questions
question
Mathematics, 18.01.2021 21:40
Questions on the website: 13722362