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 R8 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 RS, R6, and R8 is as follows: R5=0xF002, R6=0xFOOA, R8=0xFF88. Assume the starting conditions are the same for each question lieu 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 0100b). 15 14 13 12 11 10 8 Op code 3. Reg D. Res Adw As Instruction R8=? (HEX] Instruction Word(s) [HEX) Source Operand Addressing Mode Instr. Length [words] 1 1 (0) Ox4508 Ox4548 Register Register OxF002 Ox0002 (a) (b) Instr. Address (PC) Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 (d) (e) (0) MOV RS, R8 MOV.B RS, R8 MOV 4(R5), R8 MOV.B 3(RS), R8 MOV.B -3(R6), R8 MOV TONI, R8 MOV.B EDE, R8 MOV & EDE, R8 MOV.B @R5, R8 MOV @R5+, R8 MOV #45, R8 MOV.B #45, R8 (h) (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

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions

Question

Look up, smile and establish eye contact.

Answered: 1 week ago

Question

=+5 How does HRM relate to efforts to increase innovation?

Answered: 1 week ago