Question
Question 4: Using only the two following instructions, and the provided memory & register locations, move a value from memoryA to memoryB: move instruction Syntax:
Question 4: Using only the two following instructions, and the provided memory & register locations, move a value from memoryA to memoryB:
"move" instruction Syntax: "move memoryX, register#" Copies a value from register# to memoryX (where register# and memoryX refer to any register or memory location) eg: if register1 = 3, then "move memoryA, register1" results in register1 = 3, memoryA = 3
"subtract" instruction Syntax: "subtract register#, memoryX" Subtracts the number in memoryX from the number in register# and stores the value in register# (where register# and memoryX refer to any register or memory location) eg: if register1 = 3, memoryA = 2 then "subtract register1, memoryA" results in register1 = 1, memoryA = 2
registers: register1 register2
memory locations: memoryA memoryB
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started