Lecture09_handout-F09

Lecture09_handout-F09 - the table). Write an assembly...

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

View Full Document Right Arrow Icon
CE-320 Microcomputers I Fall B 2009 Lecture 9 Page 1 Lecture 9 Assembly Language Example Purpose: Practice writing programs in assembly
Background image of page 1

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

View Full DocumentRight Arrow Icon
CE-320 Microcomputers I Fall B 2009 Lecture 9 Page 2 Example The flowchart shown below converts an array of 4-byte Big-Endian values to an array of Little-Endian values. Let $1000 hold the address of the array of Big-Endian values, $1002 hold the address of the array for the Little-Endian values, and $1004 hold the two-byte length of numbers to convert (not bytes of
Background image of page 2
Background image of page 3

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

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

Unformatted text preview: the table). Write an assembly program than implements this. SEQ Start 4: There are no more elements 1: Point to the first BE item 2: Point to the first LE item 5: Copy 1st BE byte to 4th LE byte 9: Point to next elements, dec. length 10: End true false WDO 3: Make a copy of the Length 6: Copy 2nd BE byte to 3rd LE byte 7: Copy 3rd BE byte to 2nd LE byte 8: Copy 4th BE byte to 1st LE byte SEQ CE-320 Microcomputers I Fall B 2009 Lecture 9 Page 3 CE-320 Microcomputers I Fall B 2009 Lecture 9 Page 4...
View Full Document

This document was uploaded on 11/12/2009.

Page1 / 4

Lecture09_handout-F09 - the table). Write an assembly...

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

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