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

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

Problem W3 (25 points) MSP430 Instructions, Addressing Modes Consider the tollowing instructions given in the table below. For each instruction determine addressing modes of the source and destination operands, and the result of the operation. Fill in the empty cells in the table. The initial content of memory is given in the table. Iniial values of registers R2, R5, and R6 are as follows: SR R2 0x0003 (V 0, N 0, Z 1, C-1), RS 0x0801, R6 0x0808. Assume the starting conditions are Label Address Memory 15:0 TONI 0x0804 0x0806 Ox080S OxOSOA EDE 0x08OC OxFEEE OxA821 Ox33F4 OxFO14 Note: Format of the status register (R2) is as follows. OxEFDD Reserved 5000 oFF OFF Instruction Source Destination Source Dest. Result (content of memory Addressing OperandAddress Address location or register) Mode Addressing Mode (a) MOVB &TONI, 0(R5) (b) SUBCB GR6, 5(R5) C) RRC TON (d) AND #00AC2.-2(R6) Notes of setting flags: Instructions that set flags, set N and Z flags as usual. Specific details for C and V are as follows: RRC clears V bit. Problem W3 (25 points) MSP430 Instructions, Addressing Modes Consider the tollowing instructions given in the table below. For each instruction determine addressing modes of the source and destination operands, and the result of the operation. Fill in the empty cells in the table. The initial content of memory is given in the table. Iniial values of registers R2, R5, and R6 are as follows: SR R2 0x0003 (V 0, N 0, Z 1, C-1), RS 0x0801, R6 0x0808. Assume the starting conditions are Label Address Memory 15:0 TONI 0x0804 0x0806 Ox080S OxOSOA EDE 0x08OC OxFEEE OxA821 Ox33F4 OxFO14 Note: Format of the status register (R2) is as follows. OxEFDD Reserved 5000 oFF OFF Instruction Source Destination Source Dest. Result (content of memory Addressing OperandAddress Address location or register) Mode Addressing Mode (a) MOVB &TONI, 0(R5) (b) SUBCB GR6, 5(R5) C) RRC TON (d) AND #00AC2.-2(R6) Notes of setting flags: Instructions that set flags, set N and Z flags as usual. Specific details for C and V are as follows: RRC clears V 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!