Question: Assemble and execute a program to perform the following arithmetic and logical operations. > Store three 3 2 - bit numbers N 1 , N

Assemble and execute a program to perform the following arithmetic and logical operations.
> Store three 32-bit numbers N1, N2 and N3 in flash memory starting from a location labelled
"data". (use DCD directive)
> Load the address of label data into register R0.
> Load N1, N2 and N3 from location data into registers R1,R2 and R3 respectively.
> Add N1 and N2 and display the sum in register R3 and carry in register R4.
> Load R6 with RAM address (use EQU directive) named as "Result" and store the sum and
carry starting with this RAM memory address.
> Swap the first and last 2 bytes of N2 and display the result in register R7.
Assemble and execute a program to perform the

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 Programming Questions!