Computers and Technology
Computers and Technology, 17.10.2020 19:01, Ully4559

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:30, amaliabarrera9
The can be used to paste text in any order
Answers: 1
image
Computers and Technology, 23.06.2019 07:30, barkonatree
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
image
Computers and Technology, 23.06.2019 07:30, cireland
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits. now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order. finally, output thedigits in thearray. use at least two functions to organize your program.
Answers: 3
image
Computers and Technology, 23.06.2019 12:00, lyn94
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
Do you know the correct answer?
5. Write assembly functions that implement the following C functions: a. uint64_t addU32_U64(uint32...

Questions in other subjects:

Konu
Mathematics, 06.11.2019 11:31