ce12_w08_hw7_sol

ce12_w08_hw7_sol - CMPE 12 Winter 2008 Homework 7: Due...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CMPE 12 Winter 2008 Name:________________ Homework 7: Due March 10 Email:________________ 1) (30 pts) For each of these HC-11 instructions, identify the addressing mode used and describe what happens to data during its execution. For full credit, your description should specify how data is retrieved, how this data is changed, and where the manipulated data ends up. a) ADDD #54 addressing mode: immediate data comes from the immediate value and accumulator D the 2 retrieved values are added the result is stored in accumulator D b) LSR 0,Y addressing mode: indexed Y data comes from an address pointed to by register Y the bits of the retrieved value are shifted to the left the result is stored back into the same memory location c) STAA LabelA addressing mode: direct/extended data comes from accumulator A this data is stored into a memory location specified by LabelA d) ABX addressing mode: inherent data comes from accumulator B and register X the two values are added the result is stored into register X
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

ce12_w08_hw7_sol - CMPE 12 Winter 2008 Homework 7: Due...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online