Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

show all work please Problem #2 (25 points) MSP430 Addressing Modes, Instruction Encoding Consider the following instructions given in the table below. For each instruction

show all work please 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 RS, R6, and R7 is as follows: RS=0xF002, R6=0xFOOA, R8=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-operand instructions is shown below. (Note:Op-code for MOV is 0100b). AW Des Instruction Source Operand Addressing Mode R8=? (HEX] Instr. Instruction Word(s) Length [HEX) [words) 1 Ox4508 1 Ox4548 Register Register OxF002 Ox0002 (0) () (a) (b) (c) (d) (e) Instr. Address (PC) Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 Ox1116 MOV RS, R8 MOV.B RS, R8 MOV 4/RS), RS MOV.B 3(R5), R8 MOV.B -3(R6), RS MOV TONI, R8 MOV.B EDE, R8 MOV & EDE, R8 MOV.B @R5, R8 @RS+, RS MOV #45, RS MOV.B #45, RS () (h) 0 MOV 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_2

Step: 3

blur-text-image_3

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago