Question: Load the values in memory at addresses 0 x 0 1 and 0 x 0 3 into registers Note: since we have not discussed ways
Load the values in memory at addresses x and x into registers
Note: since we have not discussed ways to get other data into our memory yet, we will directly modify your code so that the second x and fourth x bytes are the input values. This means your first x and third x bytes instructions should be very specific operations.
Compute the modulo of those values iewhats at x mod whats at x
Store the product at address xD
Halt once it is done
For example, if mod.binary begins then when it is finished it should have in address xD; in decimal, that is mod which is If mod.binary begins F A then when it is finished it should have in address xD; in decimal, that is mod which is
Note: We should be able to change the second and fourth bytes of your program to do other modulo calculations too.
You may assume that neither value will be negative, but either may be zero. If either operand is your code should set the value at xD to x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
