Question: 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

 Problem W3 (25 points) MSP430 Instructions, Addressing Modes Consider the following

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!