Write an ARM assembly language program of a system represented by a flowchart shown in Figure 1 below Start R1>R2 No YES R4=R4+4 R3=R7 No YES R3=R3+2 R6=R6-R7 R6=R6+R7 END Figure 1
Added by William W.
Close
Step 1
Start Show more…
Show all steps
Your feedback will help us improve your experience
Andrew Lee and 54 other Calculus 3 educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Procedure: The objective of this lab is to understand and demonstrate the data-processing assembly instructions that are described in Section 6.3. Write an assembly language program that executes all of the following: Arithmetic Instructions: Source registers R1: 0100 0110 1010 0001 1111 0001 1011 0111 R2: 1111 1111 1111 1111 0000 0000 0000 0000 Assembly code: ADD R3, R1, R2 Result: SUB R4, R1, R2 Result: Logical Instructions: Source registers R1: 0100 0110 1010 0001 1111 0001 1011 0111 R2: 1111 1111 1111 1111 0000 0000 0000 0000 Assembly code: AND R3, R1, R2 R3 ORR R4, R1, R2 R4 EOR R5, R1, R2 R5 BIC R6, R1, R2 R6 MVN R7, R2 R7 Result: Shift Instructions: Source register: R5 1111 1111 0001 1100 0001 0000 1110 0111 Assembly Code: LSL RO, R5, #7 RO LSR R1, R5, #17 R1 ASR R2, R5, #3 R2 ROR R3, R5, #21 R3 Result:
Supreeta N.
1. Convert the following ARM assembly code into machine language. Write the instructions in hexadecimal -- 20 points. MOV R10, #63488 LSL R9, R7, #7 STR R4, [R11, R8] ASR R6, R7, R3 2. Consider the data-processing instructions with an immediate Src2. a. Which instructions from Problem 1 are in this format? b. Write out the 12-bit immediate field (imm12) of the instructions from part (a), then write them as 32-bit immediates.
Adi S.
Translate the following HLL statement into MIPS Assembly. if (v != w) v = v - w else v = w + 3
Madhur L.
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD