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.
Answers: 1
Computers and Technology, 22.06.2019 00:30, Angellbatton6763
At an open or uncontrolled intersection, yield if a. your road is paved and the crossroad is not b. the cross road is paved and yours is not c. you have two or more passengers in your vehicle d. you did not yield in the last intersection
Answers: 1
Computers and Technology, 23.06.2019 15:00, puppylove899
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a. an advanced knowledge of physics and math b. an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
Computers and Technology, 23.06.2019 21:00, shyshy1791
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
5. Write assembly functions that implement the following C functions:
a. uint64_t addU32_U64(uint32...
English, 13.01.2021 21:30
Mathematics, 13.01.2021 21:30
Mathematics, 13.01.2021 21:30
Mathematics, 13.01.2021 21:30
Mathematics, 13.01.2021 21:30
Mathematics, 13.01.2021 21:30