# (Solved) : Problem 2 25 Points Msp430 Addressing Modes Instruction Encoding Consider Following Instru Q26470782 . . . Problem #2 (25 points) MSP430 Addressing Modes, Instruction Encoding Consider the following instructions given in the table below. For each imstruction determine its length (in words), the instruction words (in hexadecimal), source operand addressing mode, and the content of register R7 after execution of each instruction Fill in the empty cells in the table. The initial content of memory is given below Initial value of registers R5, R6, and R7 is as follows: R5 0xF002, R6 0xF0OA, R7-0xFF88. Assume the starting conditions are the same for each question (ie, always start from initial conditions in memory) and given register values. The format of the first word of double-opcrand instructions is shown below. (Note: Op-code for MOV is 0100). Instr. Instraction Word( Source Operand R7- Length [hex Instruction Instr Address HEXI Register 0xF0O2 0x0002 0x1116 MOV R5, R7 1 ii) 0s1116 MOV.B RS, R7 0x4447 (a) Ox6 MOV 6(RS), R7 (b) Ox116 MOVB 3(R5), R7 (c) 0x16 MOVB-1(R6), R7 (d) Ox1116 MOV EDE, R7 (e) Ox1116 MOVB TONI, R7 () 0x6 MOV &EDE, R7 (g) 0x6 MOV.B aR6, R7 (h) Ox6 MOV R6+, R7 (i) | 0x1116 |MOV #41, R7 G) Ox6 MOV.B W27, R Label Address [hex)] Memory 15:0] [hex] 0x0S04 OxFFEE OxCCO6 0x3304 OxFO14 0x2244 OxABBA OxEFDD OxFO00 OxF002 TONI 0xF004 OxFO06 OxFOOA EDE 0xFOOC OxFOOE Show transcribed image text Problem #2 (25 points) MSP430 Addressing Modes, Instruction Encoding Consider the following instructions given in the table below. For each imstruction determine its length (in words), the instruction words (in hexadecimal), source operand addressing mode, and the content of register R7 after execution of each instruction Fill in the empty cells in the table. The initial content of memory is given below Initial value of registers R5, R6, and R7 is as follows: R5 0xF002, R6 0xF0OA, R7-0xFF88. Assume the starting conditions are the same for each question (ie, always start from initial conditions in memory) and given register values. The format of the first word of double-opcrand instructions is shown below. (Note: Op-code for MOV is 0100). Instr. Instraction Word( Source Operand R7- Length [hex Instruction Instr Address HEXI Register 0xF0O2 0x0002 0x1116 MOV R5, R7 1 ii) 0s1116 MOV.B RS, R7 0x4447 (a) Ox6 MOV 6(RS), R7 (b) Ox116 MOVB 3(R5), R7 (c) 0x16 MOVB-1(R6), R7 (d) Ox1116 MOV EDE, R7 (e) Ox1116 MOVB TONI, R7 () 0x6 MOV &EDE, R7 (g) 0x6 MOV.B aR6, R7 (h) Ox6 MOV R6+, R7 (i) | 0x1116 |MOV #41, R7 G) Ox6 MOV.B W27, R Label Address [hex)] Memory 15:0] [hex] 0x0S04 OxFFEE OxCCO6 0x3304 OxFO14 0x2244 OxABBA OxEFDD OxFO00 OxF002 TONI 0xF004 OxFO06 OxFOOA EDE 0xFOOC OxFOOE