Question: show all work please Problem #4 (25 points) MSP430 Instructions Consider the following instructions given in the table below. For each instruction determine changes in
Problem #4 (25 points) MSP430 Instructions Consider the following instructions given in the table below. For each instruction determine changes in registers after its execution. Fill in the empty cells in the table. Initial value of registers R2, RS, and R7 is as follows: R2=0x0007 (Status register), R6=OxAA22, R7=0x21B0. 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. 000 Instruction R7=Ox???? ADD.B R6, R7 OxO0D2 ADD R6, R7 V NZC 0 1 0 0 ADDC R6, R7 SUB.B R6, R7 SUBC R6, R7 CMP.B R6, R7 CMP R6, R7 BIT R6, R7 BIC R6, R7 BIS R6, R7 AND R6, R7 SWPB R7 RRC.B R7 RRA R7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
