= 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
Step by step
Solved in 2 steps