lab2 - CpE390 Lab 2 Write Programs to Do Arithmetic...

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

View Full Document Right Arrow Icon
CpE390 Lab 2 Write Programs to Do Arithmetic Operations Bring a copy of your homework to the lab if they haven’t been graded yet prior to your scheduled lab session. This lab expects you to demonstrate your working programs assigned in the “Pre-Lab” by running the programs on the EVB . You can discuss your solutions with your lab partners during the lab session and pick one of the best to demonstrate the programs. PROJECT : Create the following program: 1. Locate the program at $8000 using the following memory map equates: PROG EQU $8000 DATA EQU $9000 2. Set up 4 variable data buffers of 14 bytes each. Use ORG and DS assembler directives to allocate for BUF1, 2, 3, and 4 as shown. Use the labels BUF1 - BUF4 and refer to them in your program. ; variable data storage ORG DATA BUF1 DS 15 ; allocate 15 bytes of storage starting at DATA ORG DATA+$10 ; locate the data on a 16 byte boundary BUF2 DS 15 ; allocate 15 bytes of storage starting at DATA+$10 ORG DATA+$20 BUF3 DS 15 ORG DATA+$30
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 / 2

lab2 - CpE390 Lab 2 Write Programs to Do Arithmetic...

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