Question: @ File: helloworld.s @ Purpose: Provide enough assembly to allow students to complete an assignment. @ Use these commands to assemble, link and run the

@ File: helloworld.s @ Purpose: Provide enough assembly to allow students to complete an assignment. @ Use these commands to assemble, link and run the program .global main main:

@use system call to write string to the STDIO

MOV r7, #0x04 @ a 4 is a write command MOV r0, #0x01 @ write to STD out MOV r2, #0x0C @ Length of string in Hex. LDR r1, =string1 @ Put address of string in r1 SVC 0 @do the system call

@ Use the C library to print the second string. LDR r0, =string2 @ Put address of string in r0 BL printf @Make the call to printf

@ Force the exit of this program and return command to OS

MOV r7, #0X01 SVC 0

@ Declare the stings

.balign 4 @ Force a word boundry. string1: .asciz "Hello World " @Length 0x0C .balign 4 @ Force a word boundry

string2: .asciz "Hello World. " @Lenght 0x0E

.global printf

@end of code and end of file.

Use the helloworld.s ARM assembly program as a starting point modify the code to do the following:

1. Use the System Service call technique to output a string that contains your full name. For example: My full name is: Joe Cotten

2. Use the C++ function call to printf output a string that contains your email address. jcot@yahoo.com

3. Use the System Service Call to print the following string. "This is my first ARM Assembly program."

Use the QEMUi computer assemble, link and run your program. Once you have it working upload the .s as your submission. Name your program HWyourlastname.s.

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!