Arm assembly programming

Assignment Help Assembly Language
Reference no: EM131938545

Programming Assignment: Basic ARM Assembly Programming

Task 1

Complete the task1.s code to produce an 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

Task 2

Consider the following code in C:
int i;
for (i = r5; i <= r6; i++)
{
if (i == 24) printf("24\n");
else if (i == 27) printf("27\n"); else printf("z\n");
}

Complete the task2.s code to produce an assembly program that:

• Waits for the user to enter two integers (this part is already coded in).
• Places the first integer at r5, and the second integer at r6 (this part is already coded in).
• (This is what you need to code in) Produces the exact same output as the C code would produce, assuming that:

o The integer at r5 is not smaller than 15 and not larger than 32.
o The integer at r6 is not smaller than the integer at r5, and not larger than 32.
o Variables r5 and r6 in the C code have the same values as the registers r5 and r6 have received.

For example, if the first integer is 20 and the second integer is 30, your output should look exactly like this:

20
30
z
z
z
z
24
z
z
27
z
z
z
END

Task 3

Complete the task3.s code to produce an assembly program that:

• Waits for the user to enter two integers (this part is already coded in).

• Places the first integer at r5, and the second integer at r6 (this part is already coded in).

• (This is what you need to code in) Prints out the character for each ASCII code from the first integer up to (and including) the second integer, assuming that:

o The integer at r5 is not smaller than 32 and not larger than 127.

o The integer at r6 is not smaller than the integer at r5, and not larger than 127.

Each character should be on its own line.

For example, if the first integer is 80 and the second integer is 86, your output should look exactly like this:

80
86
P
Q
R
S
T
U
V
END

Task 4

Complete the task4.s code to produce an assembly program that:

• Waits for the user to enter two integers (this part is already coded in).

• Places the first integer at r5, and the second integer at r6 (this part is already coded in).

• (This is what you need to code in) Adds the two integers together. If the result is between 0 and 9 (including 0 and 9) the program should print the result. If not, is should print a question mark (?).

• Assume both integers entered will be no less than 0 and no greater than 50

For example, if the first integer is 4 and the second integer is 5, your output should look exactly like this:

4
5
9
END

If the first integer is 10 and the second is 3, your output should look exactly like this:

10
3
?
END

Reference no: EM131938545

Questions Cloud

What are the three primary ways they influence consumers : What is a reference group and what are the three primary ways they influence consumers?
Comapre the google pixel and google pixel xl : What is your recommendation for any price changes & the actual price (MSRP) for the Google Pixel and Google Pixel XL for their marketing plans in the US.
What would be the bond new price : If the bond in 8 were to remain in the market for 18 more months and rates on similar securities fell by 200 basis points, what would be the bond's new price?
What is the current required return : If this bond has an original maturity of 10 years, has been in the market for 18 months, and has a 4.50% coupon, what is the current required return?
Arm assembly programming : ARM Assembly Programming- Complete the task1.s code to produce an assembly program that. Waits for the user to enter an integer (this part is already coded).
How should issues related to regulations in the areas of law : Over recent decades one of the principal changes in the external environment that has had a direct effect on managers has been government regulations.
What is the price of bond : XYZ Corporation issued a 10 year bond two years ago with a 5.75% coupon at par. If the current required return on this bond is 4.35%
The importance of supply chain management : What are the reasons for growing the importance of supply chain management? Explain.
Create a game that will help you to learn the major types : You may choose any format you wish for the game, as long as it will assist you in learning each of the 4 types and the major characteristics of each.

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd