Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is ARM assembly on a Raspberry Pi, please do this in assembly language code. Implement a simple four function binary logic calculator (bitwise AND,

This is ARM assembly on a Raspberry Pi, please do this in assembly language code.

Implement a simple four function binary logic calculator (bitwise AND, ORR, EOR, BIC) that meet the following requirements: 1. Each function must be accessed as a subroutine/function (ARM instruction BL). 2. The operands are passed to the function via the stack. Use the ARM pseudo instructions PUSH and POP. To ensure you are properly implementing the stack the registers used in your main routine to hold the operands must be different than those used in the subroutines. For example, your calling routine will push r4 and r5 on the stack but the called routine will pop into registers r10 and r11. 3. The function returns the results on the top of the stack. 4. Your program is to print a welcome/instruction messages to the user. 5. The user is prompted to enter a 32-bit hexadecimal digit (%x)* and the operation to be performed. 6. The program shall verify the user input is valid and report any entry errors. 7. The program shall perform the calculation. 8. Display the results of the operation in hexadecimal (%x). Ask the user if they want to continue with another calculation or quit the program.

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago