Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the task1.s code to produce an ARM assembly program that: Waits for the user to enter an integer (this part is already coded). Stores

image text in transcribed

image text in transcribed

Complete the task1.s code to produce an ARM assembly program that: Waits for the user to enter an integer (this part is already coded). Stores the integer in r5 (this part is already coded). This integer will correspond to an ASCII code. (This is what you need to code) Prints the character for each ASCII code from n -5 to n+5 where n is the integer entered by the user. Assume the integer entered by the user will be no less than 70 and no more than 85. For example, if the user enters 76 your output should look exactly like this:

76

G

H

I

J

K

L

M

N

O

P

Q

END

Program part initial declarations .globl start .equ RXFE, 0x10 .equ TXFF, 0x20 .equ OFFSET FR, 0x018 .equ IO ADDRESS, 0x101f1000 eEEeee Program part 1 definition of main. eEEeee Emain program start: mov sp,#0x100000 @ set up stack ldr r4,-0x101f1000 e ASCII codes stored at [r4] get printed bl get int mov r5, ro Your code starts here Your code ends here my exit: print "END" on a new line mov r1, #' ' str rl, r4] mov r1, #' ' str rl, [r4] mov r1, # 'E str rl, [r4] mov r1, #'N' str rl, r4] mov r1, #'D" str rl, [r4] the end: do infinite loop at the end b the end eEEeee e Program part 2: definition of functions eEEeee Program part initial declarations .globl start .equ RXFE, 0x10 .equ TXFF, 0x20 .equ OFFSET FR, 0x018 .equ IO ADDRESS, 0x101f1000 eEEeee Program part 1 definition of main. eEEeee Emain program start: mov sp,#0x100000 @ set up stack ldr r4,-0x101f1000 e ASCII codes stored at [r4] get printed bl get int mov r5, ro Your code starts here Your code ends here my exit: print "END" on a new line mov r1, #' ' str rl, r4] mov r1, #' ' str rl, [r4] mov r1, # 'E str rl, [r4] mov r1, #'N' str rl, r4] mov r1, #'D" str rl, [r4] the end: do infinite loop at the end b the end eEEeee e Program part 2: definition of functions eEEeee

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

Students also viewed these Databases questions

Question

5. What information would the team members need?

Answered: 1 week ago

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago