Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Label Address [hex] Ox0400 Ox0402 Ox0404 Memory[15:0) [hex] OxFEEE OxA000 OxA4BC EDE Problem #3 (25 points) MSP430 Instructions, Addressing Modes Consider the following instructions given
Label Address [hex] Ox0400 Ox0402 Ox0404 Memory[15:0) [hex] OxFEEE OxA000 OxA4BC EDE Problem #3 (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=O, N=0, Z=0, C=O), R5=0x0403, R6=OXC006. Assume the starting conditions are the same for each question (i.e., always start from initial conditions in memory) and given register values. Label Address Thex) Oxc000 OxC002 TONI OxC004 OxC006 OxC008 DEN OxCOOA OxCOOC Memory(15:0] (hex) Ox0504 OxFEEE OxA8FA Ox33F4 OxF014 0x2244 OxCDDA [ Reserved sca1 scoop oE NIZIO Instruction Instr. Size in Words Source Address Dest. Address Source Operand Addressing Mode Destination Operand Addressing Mode Result (content of a memory location or a destination register; and new value of flags (C, V.2, and N). (a) ADD.B &TONI, R6 (b) SUBC TONI, -3(R5) (c) RRC.B @R5+ (d) AND.W #OxAA55, EDE Notes of setting flags: All instructions set N and Z flags as usual. Specific details for C and V are as follows: RRC (V=O, C is loaded with the shifted out bit)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started