This document contains 15 questions asking to write ARM assembly language programs (ALPs) to perform various calculations and operations. These include finding sums, factorials, 2's complements, checking for odd/even, evaluating equations, division via repeated subtraction, sorting arrays, averaging arrays, and using subroutines and stacks. The full range of questions covers basic arithmetic, control flow, data manipulation, and calling conventions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
138 views1 page
ARM LAB Questions
This document contains 15 questions asking to write ARM assembly language programs (ALPs) to perform various calculations and operations. These include finding sums, factorials, 2's complements, checking for odd/even, evaluating equations, division via repeated subtraction, sorting arrays, averaging arrays, and using subroutines and stacks. The full range of questions covers basic arithmetic, control flow, data manipulation, and calling conventions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
ARM Assembly Program Questions
1. Write an ALP (assembly language program) to find sum of n natural
numbers. 2. Write an ALP to find factorial of a number. 3. Write an ALP to evaluate 2’s compliment of a number 4. Write an ALP to check a given number is odd or even. 5. Write an ALP to evaluate equation 3X2+5Y2 6. Write an ALP to implement division by repeated subtraction. 7. Write an ALP to calculate sum of squares of n natural numbers. 8. Write an ALP to calculate sum cubes of n natural numbers. 9. Write an ALP (assembly language program) to add first 10 even numbers using ARM instruction set. Store the result in a memory location and show the result. 10.Write an ALP to generate an arithmetic progression series with a limit 10. Display the result in memory. 11.Write an ALP to add two 64 bit number and store the result in memory location. 12.Store 10 numbers in memory and arrange them in a. Descending order. b. Ascending order. 13.Write an ALP to find average of 10 16-bit numbers in an array. (Use division by repeated subtraction which you done before) 14.Write an ALP to load values to registers R1, R2, R3 and R4 and store its content onto the program stack referenced by SP. 15.Write an ALP to count no. of even and odd numbers from an array of 10 numbers. You are required to implement this by using a subroutine to check if a number is odd or even, and count them in the calling function. (Using Stack Pointer)