ECE-2325-Lab-3 - Introduction This lab shows us how to use...

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

View Full Document Right Arrow Icon
Introduction This lab shows us how to use branches for conditions and loops in assembly language for the Motorola 68HC12. We do some new operations to manipulate data and access/store to memory. Equipment • 68HC12 evaluation board • MiniIDE and its respective requirements Procedure 1. Load a dump of hex data into memory starting at $1000 2. Reserve 25 bytes at locations $1100 and $1200. They should each be initialized to $00. 3. Reserve 2 words starting at location $1300. They should also be initialized to $00. 4. In one loop, a. If a given byte is positive, copy it to its respective location after $1100. i. Add the byte to the word at location $1300. b. If a given byte is negative, copy it to its respective location after $1200. i. Add the byte to the word at location $1302 5. Exit the loop when all data is moved and added, then interrupt. Results The data has been copied properly into its new positive/negative sections. Instead of entering all data one after another in these new areas, I copied the data literally; for example location
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

ECE-2325-Lab-3 - Introduction This lab shows us how to use...

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