Mpca Lab1a Introduction To Armsim
Mpca Lab1a Introduction To Armsim
COMPUTER ARCHITECTURE
LABORATORY
4TH Semester(UE19CS256)
INTRODUCTION CLASS1-ARMSIM
Saturday, March 15, 2025
Prof Deepti C
Computer Science and Engineering
Microprocessor & Computer Architecture Laboratory
Course Information
WEEK 1 1. Write an ALP using ARM instruction set to add and subtract two 32 bit numbers .Both numbers are in
registers.
2. Write an ALP to demonstrate logical operations. All operands are in registers.
3. Write an ALP to add 5 numbers where values are present in registers.
4. Write an ALP using ARM instruction set to check if a number stored in a register is even or odd.
5. Write an ALP to compare the value of R0 and R1, add if R0 = R1, else subtract
6. Based on the value of the number in R0, Write an ALP to store 1 in R1 if R0 is zero, Store 2 in R1 if R0
is positive, Store 3 in R1 if R0 is negative
WEEK 2 1. Write an ALP to add two 16 bit numbers loaded from memory and store the result in memory.
2. Write an ALP to copy n numbers from Location A to Location B.
3. Write an ALP to find the factorial of a number stored in R0. Store the value in R1 (without using LDR
and STR instructions)
4. Write an ALP to find the GCD of given numbers (both numbers in memory).Store result in memory.
5. Write an ALP to add an array of ten 32 bit numbers from memory.
6. Add array of ten 16 bit numbers taking data from memory location stored as byte data (use .byte to
store the data instead of .word)
WEEK 4 1. Write an ALP to add two 16 bit numbers loaded from memory and store the result in memory.
2. Write an ALP to copy n numbers from Location A to Location B.
3. Write an ALP to find the factorial of a number stored in R0. Store the value in R1 (without using
LDR and STR instructions)
4. Write an ALP to find the GCD of given numbers (both numbers in memory).Store result in
memory.
5. Write an ALP to add an array of ten 32 bit numbers from memory.
6. Add array of ten 16 bit numbers taking data from memory location stored as byte data (use .byte
to store the data instead of .word)
https://webhome.cs.uvic.ca/~nigelh/ARMSim-V2.1/Windows/index.html
https://www.youtube.com/watch?v=roJ7D9wMyOk
Windows Installer
•Download and execute this file using an account
with Administrator privileges:
Installer.msi
https://webhome.cs.uvic.ca/~nigelh/ARMSim-V2.1/Linux/
ArmSimOnLinuxInstall.pdf
Deepti C