HW_4_Solutions

HW_4_Solutions - ECE252 Microprocessor Fall 2008 Homework...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: ECE252 Microprocessor Fall 2008 Homework #4 Solutions, 100 Points Due on Oct. 14, 2008 1. Chapter 3, Problems: 20 (10pts), 34 (5pts), 36 (10pts), 40 (5pts), 41 (10pts), 43 (5pts), 44 (5pts), 48 (5pts), 50 (5pts), 58 (10pts) Answers: 20. (5pts) MOVEM.W D3-D7, -(A2) MOVEM.W (A0)+, D3-37 Answer: first instruction saves the lower word in data registers D7, D6, D5, D4, D3, in this order, to memory locations at addresses A2-2, A2-4, A2-6, A2-8, A2-10, and A2s current value is 10 less the original one (A2-10), then the second instruction loads words from memory locations at address A0, A0+2, A0+4, A0+6, A0+8, in this order, to the lower word of data registers D3, D4, D5, D6, D7, and A0s current value is original one incremented by 8. 34. (5pts) OR.B #$2C, D1 or OR.W #$2C, D1 or OR.L #$2C, D1 ORI.B #$2C, D1 or ORI.W #$2C, D1 or ORI.L #$2C, D1 36. (10pts) ROL.L #8, D4 ROL.L #8, D5 EOR.B D4, D5 ROR.R #8, D4 ROR.L #8, D5 40. (5pts) D1=$00000019 LSL.W #6, D1 Answer: D1=$0000 0640 41. (10pts) 41....
View Full Document

Page1 / 5

HW_4_Solutions - ECE252 Microprocessor Fall 2008 Homework...

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