Question: Q2. [ 5 Marks] Write and Run the Assembly language instructions to do the following: Load the value 1 to register B and the value
Q2. [ 5 Marks]
- Write and Run the Assembly language instructions to do the following:
- 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.
- 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.
- 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:
| Case | Memory location 10 | Register A | Register B | Register C | Memory location 11 | Flag s | Flag z |
| 1 |
|
|
|
|
|
|
|
| 2 |
|
|
|
|
|
|
|
| 3 |
|
|
|
|
|
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
