Exp_2

Exp_2 - defined below. Remember that the product of two...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
EE3751 – Fall 2003 Experiment # 2 Write two programs to read the elements of two arrays defined as X and Y then operate on the values read in following way: SUM(0) = X(0) + Y(0) PRODUCT(0) = X(0) * Y(0) SUM(1) = X(1) + Y(1) PRODUCT(1) = X(1) * Y(1) . . . . SUM(9) = X(9) + Y(9) PRODUCT(9) = X(9) * Y(9) The addition and multiplication should be performed inside a loop which will iterate 10 times. The first program should use register indirect addressing mode and the second should use register relative addressing mode. Each array has 10 elements, and they are
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: defined below. Remember that the product of two byte sized elements is 16 bits long, and that is why the PRODUCT array was defined as word size. X DB 0,1,2,3,4,5,6,7,8,16 Y DB 9,8,7,6,5,4,3,2,1,64 SUM DB 10 DUP(?) PRODUCT DW 10 DUP(?) This experiment is an exercise on the use of different addressing modes available for the 80x86 family of microprocessors. Each program is worth 50% of the grade....
View Full Document

This note was uploaded on 01/24/2012 for the course EE 3751 taught by Professor Desouza during the Spring '04 term at LSU.

Ask a homework question - tutors are online