Program to average ten 16-bit values, Assembly Language

Write a MC68HC12 assembly language program to average ten 16-bit values that are stored starting at address $1100. Place the two-byte result at $1110. Use indexed addressing.

Using the FCB or FDB directives might be useful here.

FCB (Form Constant Byte) Example:

ORG $4000

FCB $02, $05;

(The above two lines will place constant byte $02 in address $4000, and constant byte $05 in address $4001)

FDB (Form Double Byte)

 Example:

ORG $4000

FDB $02, $05, $2445;

(The above two lines will place constant bytes as explained below:

 $00 in address $4000, and $02 in address $4001,

 $00 in address $4002, and $05 in address $4003

 $24 in address $4004, and $45 in address $4005

Posted Date: 3/8/2013 12:07:46 AM | Location : United States







Related Discussions:- Program to average ten 16-bit values, Assignment Help, Ask Question on Program to average ten 16-bit values, Get Answer, Expert's Help, Program to average ten 16-bit values Discussions

Write discussion on Program to average ten 16-bit values
Your posts are moderated
Related Questions

Motorola 68000 Series : 68000microprocessor is a 16 bit processor that has addressing space of 65536 locations, each of which holds a 64-bits word; In order to address those lo

Assembly Language Example Programs We studied the entire instruction set of 8086/88, pseudo-ops and assembler directives. We have explained the process of entering an assembly

#write a program 8086 to find the largest number

You have to write a subroutine (assembly language code using NASM) for the following equation.

program to arrange a given set of numbers in descending order

Print Media Advertising (PMA) has been providing a contract to market Buzz Cola via newspaper ads in a main southern newspaper. Full-page ads in the weekday editions (Monday throug

code, Assembly Language How to print strings in Right Triangle form?

8279 Keyword /Display Controller : Figure shows the structure of 8279 and its interface to the bus. Addressing is according to the table given below. CS        RD

write a programme the addition two 3*3 matrix and stored in from list