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 imstruction 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 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

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

What does it mean when an enzyme has the name synthase?

Answered: 1 week ago