Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

This is ARM assembly, please do this in assembly language code.

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

gpt 5 1 9 . .

Answered: 1 week ago

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago