Question: show all work please Label Address hex] Memory 15:01 Thex Ox0400 OxFEEE Ox0402 OxA000 Ox0404 OxA4BC EDE Problem #3 (25 points) MSP430 Instructions, Addressing Modes
Label Address hex] Memory 15:01 Thex Ox0400 OxFEEE Ox0402 OxA000 Ox0404 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, RS, and R6 is as follows: SR=R2=0x0000 (V=O, NFO, Z=0, C=0), RS=0x0403, R6=0xC006. Assume the starting conditions are the same for each question (ie, always start from initial conditions in memory) and given register values. Label TONI Address thex Memory 15:01 Thes! OxC000 Ox0504 OxC002 OXFEEE OxC004 OxABFA OxC006 Ox33F4 OxC008 OxF014 OxCOOA 0x2244 OxCOOC OxCDDA 3 DEN Reserved OSCEPU VSCO10000 ORFORENI Instruction Instr. Size in Words Source Operand Addressing Mode Destination Operand Addressing Mode Source Dest. Result (content of a Address Address memory location or a destination register; and new value of flags (C.v.z. and N). (a) ADD.8 &TONI, R6 (b) SUBC TONI, -3(R5) (c) RRC.B R5+ (d) AND.W MOXAASS, EDE Notes of setting flags: All instructions set N and Z flags as usual. Specific details for Cand 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
Get step-by-step solutions from verified subject matter experts
