Question: Consider the following instructions given below. For each instruction determine changes in registers (if any) after its execution. Fill in the empty cells in the
Consider the following instructions given below. For each instruction determine changes in registers (if any) after its execution. Fill in the empty cells in the table, by providing the content of registers R6, R7, and flags (V, N, Z, and C). Initial value of registers R2, R5, and R7 is as follows: R2=0x0007 (Status register), R6=0x0A55, R7=0xA940. Assume the starting conditions are the same for each instruction in the table (i.e., always start from the initial conditions in registers). Note: Format of the register R2 is shown below. For a detailed description of the instructions use the 5xx family user guide.

| Instruction | R6=0x???? | R7=0x???? | V | N | Z | C | |
| (Demo) | ADD.B R6, R7 | 0x0A55 | 0x0096 | 1 | 1 | 0 | 0 |
| (A) | ADDC.B R6, R6 | ||||||
| (B) | SUB.W R6, R7 | ||||||
| (C) | SUB.B #4, R7 | ||||||
| (D) | DADD.B R6, R6 | ||||||
| (E) | RRC.B R6 | ||||||
| (F) | RRA.W R7 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
