Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help writing these in ARM 7 assembly. 1.uint64_t add64(uint32_t x, uint32_t y) // returns x + y; worth 10 points 2.uint64_t sub64 (uint64_t x,

Need help writing these in ARM 7 assembly.

1.uint64_t add64(uint32_t x, uint32_t y) // returns x + y; worth 10 points

2.uint64_t sub64 (uint64_t x, uint64_t y) // returns x -y

3.uint8_t minU8(uint8_t x, uint8_t y) // returns the minimum of x, y

4.int16_t minS16(int16_t x, int16_t y) // returns the minimum of x, y

5.bool isLessThanU8(uint8_t x, uint8_t y) // returns 1 if x < y, 0 else

6.bool isLessThanS16 (int16_t x, int16_t y) // returns 1 if x < y, 0 else

7.uint16_t shiftLeftU16 (uint16_t x, uint16_t p) // returns x << p = x * 2pfor p = 0 .. 31

8.uint32_t shiftU32(uint32_t x, int32_t p) // return x * 2pfor p = -31 .. 31

9.int8_t shiftS8(int8_t x, int8_t p) // return x * 2pfor p = -31 .. 31

10.bool isEqualU8(uint8_t x, uint8_t y) // returns 1 if x = y, 0 if x != y

11.bool isEqualS16(int16_t x, int16_t y) // returns1 if x= y, 0 if x != y

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago