Question: ARM assembly language NOT in C or Python language In ARM assembly language: 1. expect the cmd to print Total 1 + 2 + 3

ARM assembly language

NOT in C or Python language

In ARM assembly language:

1. expect the cmd to print "Total 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 = 36"

2. in file.s should be coded like:

.data

string: .asciz "\'nPrinting %d + %d + %d + %d + %d + %d + %d + %d = %d "

main:

push {r0, r1, r2, r3}

ldr r0, =string

mov r1, #1

mov r2, #2

bl printf

pop {r0, r1 ,r2, r3}

3.Do not hard code for just print a string

Please help to make all additional of all number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!