Question: please do not copy and paste answer from another post - this one is different. Problem #2 (25 points) MSP430 Addressing Modes, Instruction Encoding Consider
please do not copy and paste answer from another post - this one is different.
Problem #2 (25 points) MSP430 Addressing Modes, Instruction Encoding Consider the following instructions given in the table below. For each instruction determine its length (in words), the instruction words (in hexadecimal), source operand addressing mode, and the content of register R7 after execution of eaclh 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-0xF00A, R7-0xFF88. Assume the starting conditions are the same for each question (i.e., always start from initial conditions in memory) and given register values. The format of the first word of double-operand instructions is shown below. (Note: Op-code for MOV is 0100) 5 14 13 121110 9 8765 321 0 Op-code S-Reg D-Reg Instruction InstrInstruction Word(s) Lengthhex] words Source Operand R7-? Addressing Mode Register Register Instr. Address HEX 0x1116MOV R5, R7 0x1116MOV.B R5, R7 0x4507 0x4547 OxF002 0x0002 (a)Ox1116MOV 6(R5), R7 (b)Ox16MOV.B 3(R5), R7 (c)Ox16 MOV.B -1(R6), R7 (d) 0x1116MOV EDE, R7 (e) Oxl116 MOV.B TONI, R?7 (f Ox16 MOV &EDE, R7 (g) 0x6 MOV.B @R6, R7 (h)0x6 MOV aR6+, R7 (i) | 0x 1 1 16 | MOV #41,R7 (j) | 0x1 | 16 | MOV.B #27, R7 Label Address [hex]Memory[15:0] [hex] 0xF000 0xF002 TONI0xF004 0xF006 0xF008 0xF00A EDE 0xF00C 0xF00E 0x0504 OxFFEE 0xCC06 0x3304 0xF014 0x2244 0xABBA OxEFDD Problem #2 (25 points) MSP430 Addressing Modes, Instruction Encoding Consider the following instructions given in the table below. For each instruction determine its length (in words), the instruction words (in hexadecimal), source operand addressing mode, and the content of register R7 after execution of eaclh 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-0xF00A, R7-0xFF88. Assume the starting conditions are the same for each question (i.e., always start from initial conditions in memory) and given register values. The format of the first word of double-operand instructions is shown below. (Note: Op-code for MOV is 0100) 5 14 13 121110 9 8765 321 0 Op-code S-Reg D-Reg Instruction InstrInstruction Word(s) Lengthhex] words Source Operand R7-? Addressing Mode Register Register Instr. Address HEX 0x1116MOV R5, R7 0x1116MOV.B R5, R7 0x4507 0x4547 OxF002 0x0002 (a)Ox1116MOV 6(R5), R7 (b)Ox16MOV.B 3(R5), R7 (c)Ox16 MOV.B -1(R6), R7 (d) 0x1116MOV EDE, R7 (e) Oxl116 MOV.B TONI, R?7 (f Ox16 MOV &EDE, R7 (g) 0x6 MOV.B @R6, R7 (h)0x6 MOV aR6+, R7 (i) | 0x 1 1 16 | MOV #41,R7 (j) | 0x1 | 16 | MOV.B #27, R7 Label Address [hex]Memory[15:0] [hex] 0xF000 0xF002 TONI0xF004 0xF006 0xF008 0xF00A EDE 0xF00C 0xF00E 0x0504 OxFFEE 0xCC06 0x3304 0xF014 0x2244 0xABBA OxEFDD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
