HW_3_Solutions

HW_3_Solutions - ECE252 Microprocessor Fall 2008 Homework#3...

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

View Full Document Right Arrow Icon
Fall 2008 Homework #3 Solutions, 100 Points Due on Sep. 23, 2008 1. Chapter 3, Problems: 4 (5pts), 6 (5pts), 9 (5pts), 10 (10pts), 14 (15pts), 18 (15pts), 22(5pts), 24 (5pts), 26 (5pts), 30 (5pts), 32 (5pts) (80 pts) Prob. 4. EOR #$5C, D6 Opcode: EOR, Data type: longword, source operand: #$5C and D6, destination operand: D6 Prob. 6. Psedudo-opcodes DC.B, DC.W, and DS.B produce data Prob. 9. a) address register direct b) data register direct c) address register indirect d) address register indirect with postincrement e) address register indirect with predecrement f) program counter relative g) address register indirect with index Prob. 10. MOVE.L D0, -(A0) Æ or Æ SUBA.L #4, A0 MOVE.L D0, -4(A0) MOVE.L D0, A0 SUBA.L #4, A0 MOVE.L (A0)+, D0 Æ MOVE.L (A0), D0 ADDA.L #4, A0 Prob. 14. A0=$00000492, D2=$00000000 a). MOVE.B (A0), D2 D2=$B2, since EA=A0=$00000492 b). MOVE.B –(A0), D2 D2=$9C, since EA=A0-1=$00000491 c). MOVE.W (A0), D2 D2=$B278, since EA=A0=$00000492 d). MOVE.W (A0)+, D2
Background image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '10
  • Hu
  • Central processing unit, Processor register, Machine code, Computer program, D2 source operand, source operand address

{[ snackBarMessage ]}

Page1 / 2

HW_3_Solutions - ECE252 Microprocessor Fall 2008 Homework#3...

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