Question: Q2. [ 5 Marks] A) Write and Run the Assembly language instructions to do the following: 1. Load the value 1 to register B and
![Q2. [ 5 Marks] A) Write and Run the Assembly language](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f45255ad2bd_89366f452552635a.jpg)
Q2. [ 5 Marks] A) Write and Run the Assembly language instructions to do the following: 1. Load the value 1 to register B and the value 2 to register C and load some value to memory location whose address is 10. 2. Read the value stored in memory location whose address is 10 and do the following: if the value is less than 8 then add 4 to register B. If the value is greater than 8 then add 5 to register C. If the value is equals to 8 then load the value 3 to memory location whose address is 11. B) Load three different values to memory location whose address is 10 (first value should be less than 8, the second value should be greater than 8 and the third value is 8) then then fill the following table after your code is successfully executed for three different cases of input: Memory Case Register Flag Memory Flag location Register B Register C A location 11 10 1 2 3 S Z
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
