Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASAP!!!!!!!!!! Your task is to implement ARM Assembly functions using the REV and RBIT instructions. Your solutions should execute as fast as possible, so implementing

ASAP!!!!!!!!!!

Your task is to implement ARM Assembly functions using the REV and RBIT instructions. Your solutions should execute as fast as possible, so implementing them with loops is not acceptable. Instead, you need to find the shortest possible straight-line sequence of instructions that will do the reversal. Hint: You may find the .rept directive to be useful. Create an assembly language file containing three functions. The first is used for run-time performance comparisons and is to be implemented exactly as shown below: \texttt{CallReturnOverhead: BX LR} You are to code the other two without using the RBIT, REV, REV16 or REVSH instructions: \texttt{uint32\_t ReverseBits(uint32\_t word) ;} Returns a result that corresponds to reversing the order of all the bits in its input. \texttt{uint32\_t ReverseBytes(uint32\_t word) ;} Returns a result that corresponds to reversing the order of all the bytes in its input.

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions