= R2 + R3 STR R4 ; store the result in R4 ======================= How is this implemented into assembly, and what should the whole code look like? previous answers are confusing Requirements: Code will perform an “OR” operat
Write a
BEFORE ANYTHING, I been told that this works for the question, but I don't understand what it means -
===========================
LDR R2 ; load R2
ADD R4, R2, R3 ; R4= R2 + R3
STR R4 ; store the result in R4
=======================
How is this implemented into assembly, and what should the whole code look like? previous answers are confusing
Requirements:
Code will perform an “OR” operation
“OR” will operate on data in Registers
Values to be “OR”’s are loaded “by hand” into R2 and R3 before the program is run
The result of “OR” is stored in R4
------------------------------------------------------------------
Test Data set outputs:
R2: xFF00 + R3: x00FF. R4 should = xFFFF
R2: x1234 + R3: x4321 R4 should = x5335
R2: xF00D + R3: x0000 R4 should = xF00D

Dear Student,
This program can be done easily using just two lines of code, as it is given in the question that the values are already stored in R2 and R3 registers we just need to perform OR operation and move (MOV) the result to R4.
Step by step
Solved in 2 steps









