Question: Q3. [ 5 Marks] Write and Run the Assembly language instructions to do the following: Load some value to the memory location whose address is
Q3. [ 5 Marks]
- Write and Run the Assembly language instructions to do the following:
- Load some value to the memory location whose address is 4, and load the value 1 to register B.
- Read the value stored in memory location whose address is 4 and check it:
- if the value is less than or equals to 0 then load the value 0 to register B.
- If the value is greater than 0 then repeat increment the value of register B by 1 until it reaches the value 10.
- Load two different values to memory location whose address is 4 (the first value should 0, the second value should be greater than 0) then then fill the following table after your code is successfully executed for two different cases of input:
| Case | Memory location 4 | Register A | Register B | Flag s | Flag z |
| 1 |
|
|
|
|
|
| 2 |
|
|
|
|
|
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
