HW03 - ELEN242: Introduction to Microprocessors Winter 2011...

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

View Full Document Right Arrow Icon
ELEN242: Introduction to Microprocessors Winter 2011 Homework 3 Assigned Date: Thursday,January6, 2011 Due Date: Thursday, January 13, 2011 Recall from the lecture on Tuesday, January 4, 2011 that we developed the  instructions necessary to process 5 bytes of data.  These bytes were already  present in memory at address 0x0240 and as each byte was processed the data  value was multiplied by 4 and stored in memory beginning at address 0x0880.  Consider the following table of data as an example of the before and after values: 0x0240 0x12 0x0241 0x04 0x0242 0x3C 0x0243 0x24 0x0244 0x2E 0x0880 0x48 0x0881 0x10 0x0882 0xF0 0x0883 0x90 0x0884 0xB8 LDI R26, 0x40 ; load X low with the lower half of 0x0240 LDI R27, 0x02 ; load X high with the upper half of 0x0240 LDI R28, 0x80 ; load Y low with the lower half of 0x0880 LDI R29, 0x08 ; load Y high with the upper half of 0x0880 Page 1 of 6
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 / 6

HW03 - ELEN242: Introduction to Microprocessors Winter 2011...

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