| 4 of 4 Problem 94 (25 peints) MSP410 lntructions Comsider the tollowing instru
ID: 2267540 • Letter: #
Question
| 4 of 4 Problem 94 (25 peints) MSP410 lntructions Comsider the tollowing instructions given in the table below, For cach instruction determine changes in registers afior is execution Fill in the eompty cells in the table lsitial value of regisors R2, RS, and R7 s as follows R2-040007 (Status regismer), R6 0xBB66, R7-04049. Assume the starting condrions ane the same for each insrution in the tabile (Le always start from the int coniams in regneers. Note: Formut ofthe reguler R2 is shown bekyw. For a detailed dacription of the instructions use the 4xx famaly usar guide ADD R6, R7 ADDC R6, R7 SUBC R6, R7 CMP.B R6, R7 CMP R6, RT BIT R6, R7 BIC R6, R IsIS R6, R7 AND R6, R7 RRC.B RRAB R RRA R7Explanation / Answer
Given data in the registers
R2=0x0007 R7=0xAA22 R7=0xG12A
Instruction
R7=0x????
V
N
Z
C
ADDB R6,R7
0X004C
0
0
0
0
ADD R6,R7
0XEB4C
0
0
0
0
ADDC R6,R7
0XEB4D
0
0
0
0
SUBB R6,R7
0XG6F7
0
0
0
0
SUBC R6,R7
0XG6F7
0
0
0
0
CMPB R6,R7
0XG708
0
0
0
0
CMP R6,R7
0XG708
0
0
0
0
BIT R6,R7
0X22
0
0
0
0
BIC R6,R7
0X9108
-
-
-
-
BIS R6,R7
0XEB2A
-
-
-
-
AND R6,R7
0X22
0
0
0
0
XORB R6,R7
0X14F7
0
0
0
0
SWAPB R7
0X2A41
-
-
-
-
RRCB R7
0X0G5
0
0
0
0
RRC R7
0X0G5
0
0
0
0
RRAB R7
0X412A
0
0
0
0
RRA R7
0X412A
0
0
0
0
Instruction
R7=0x????
V
N
Z
C
ADDB R6,R7
0X004C
0
0
0
0
ADD R6,R7
0XEB4C
0
0
0
0
ADDC R6,R7
0XEB4D
0
0
0
0
SUBB R6,R7
0XG6F7
0
0
0
0
SUBC R6,R7
0XG6F7
0
0
0
0
CMPB R6,R7
0XG708
0
0
0
0
CMP R6,R7
0XG708
0
0
0
0
BIT R6,R7
0X22
0
0
0
0
BIC R6,R7
0X9108
-
-
-
-
BIS R6,R7
0XEB2A
-
-
-
-
AND R6,R7
0X22
0
0
0
0
XORB R6,R7
0X14F7
0
0
0
0
SWAPB R7
0X2A41
-
-
-
-
RRCB R7
0X0G5
0
0
0
0
RRC R7
0X0G5
0
0
0
0
RRAB R7
0X412A
0
0
0
0
RRA R7
0X412A
0
0
0
0
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.