Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 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=0xFOOA, 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). 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 I op-code I SReg A BW A D.Reg. Instruction R7=? (HEX] Instr. Address Instr. Length [words] Instruction Word(s) [hex] Source Operand Addressing Mode (i) Ox4507 Ox4547 Register Register OxF002 Ox0002 (c) Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 MOV R5, R7 MOV.B RS, R7 MOV 6(R5), R7 MOV.B 3(R5), R7 MOV.B -1(R6), R7 MOVEDE, R7 MOV.B TONI, R7 MOV &EDE, R7 MOV.B @R6, R7 MOV @R6+, R7 MOV #41, R7 MOV.B #27, R7 (i) 0) Label Address [hex] Memory[15:0] [hex] OxF000 Ox0504 OxF002 OxFFEE TONI OxF004 Oxcc06 OxF006 Ox3304 OxF008 OxF014 OXFOOA Ox2244 EDE OxFOOC OXABBA OXFOOE OxEFDD

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Optimizing Data Collection In Warzones

Authors: Aaget Aamber

1st Edition

B0CQRRFP5F, 979-8869065902

More Books

Students also viewed these Databases questions