Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem W3 (25 points) MSP430 Instructions, Addressing Modes Consider the following instructions given in the table below. For each instruction determine addressing modes of the

image text in transcribed
Problem W3 (25 points) MSP430 Instructions, Addressing Modes Consider the following instructions given in the table below. For each instruction determine addressing modes of the source and destination operands, source and destination addresses, and the result of the operation. Fill in the empty cells in the table. The initial content of memory is given in the table. The initial value of registers R2, R5, and R6 is as follows: SR-R2-0x0000 (V-0, N-0, Z-0, C-0), R5-0x0403, R6-0xC006. Assume the starting Label Address Memory13:0] 0402 0xA000 EDE 0x0404 Label Address Memory(15.0] OxA4BC 0xC002 TONI 0xC004 OxC006 OxCOO8 0x0504 OxFEEE 0x33F4 0x2244 DEN OxCOOA Instruction Instr. Source Destination Source Dest. Result (content of a Size in Operand Operand Address Address memory location or a Words Addressing Addressing destination register; and new value of flags (C,vz and N. Mode Mode a) ADD B &TONI R6 b) SUBC TONI, -3RS) (c)RRC.B RS (d) AND W ROAASS, EDE Notes of setting flags: All instructions set N and Z flags as usual. Specifie details for C and V are as follows: RRC (V-0, C is loaded with the shifted out bit)

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

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

=+ c. a company president deciding whether to open a new factory

Answered: 1 week ago