Question: A value is stored in R5 before this program runs. After the following program is executed, the value stored in memory cell x330B is 4.
A value is stored in R5 before this program runs. After the following program is executed, the value stored in memory cell x330B is 4. The last instruction is a TRAP instruction which halts execution.
Which of the following possible initial values for R5 will produce this result?
Check all that apply; all will be marked wrong if any are wrong.
1110 1110 1110 1110
1011 1011 1001 1011
1011 1011 1010 1001
1111 1111 0000 1111
0010 1000 1100 0111
1111 0011 1000 0011
1111 1111 1101 1001
1010 1010 0101 0101
1111 0000 0000 0000
1111 1111 1110 0100
1111 1111 1111 1111
1110 1110 1101 0001
1111 0000 1000 0001
0000 1111 0000 0001
unanswered
| address | 4 bits | 12 bits |
15 14 13 12 | 11 10 9 8 7 6 5 4 3 2 1 0 | |
| x32FF | 0 1 0 1 | 0 0 0 0 0 0 1 0 0 0 0 0 |
| x3300 | 0 1 0 1 | 1 1 1 1 1 1 1 0 0 0 0 0 |
| x3301 | 0 0 0 1 | 1 1 0 1 1 1 1 0 0 0 0 1 |
| x3302 | 0 1 0 1 | 1 0 0 1 0 1 0 0 0 1 1 0 |
| x3303 | 0 0 0 0 | 0 1 0 0 0 0 0 0 0 0 0 1 |
| x3304 | 0 0 0 1 | 0 0 0 0 0 0 1 0 0 0 0 1 |
| x3305 | 0 0 0 1 | 1 1 0 1 1 0 0 0 0 1 1 0 |
| x3306 | 0 0 0 1 | 1 1 1 1 1 1 1 0 0 0 0 1 |
| x3307 | 0 0 0 1 | 0 0 1 1 1 1 1 1 1 0 0 0 |
| x3308 | 0 0 0 0 | 1 0 0 1 1 1 1 1 1 0 0 1 |
| x3309 | 0 0 1 1 | 0 0 0 0 0 0 0 0 0 0 0 1 |
| x330A | 1 1 1 1 | 0 0 0 0 0 0 1 0 0 1 0 1 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
