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
do you have experts that know 4 digit 7_Seg dispaly

What is the hex for + and - under with a sum involved

I need to estimate the value of a definite integral using Riemann Sums and For our estimation let f(x) = x2 ,a=0, b=10 and n=5. Where a is the lower bound, b is the upper bound and


IRET : Return from ISR:- When an interrupt service routine is called, before transferring control to it, the IP, CS  register and flag registers are stored in the stack to ment

Internal Architecture of Microprocessor : The architecture of 8086 provides a number of improvements over 8085 architecture. It supports a, a set of 16-bit registers ,16-bit AL

When Seen in the choir, Terry was the picture of an angelic devil. I have to underline the predicate twice

what will be the value of EAX after following instructions execute? mov bx, 0FFFFh and bx, 6Bh

i want to develop traffic light system so which kind of software is needed to develop this project?

Task One Produce a menu such as the one below (remember to keep to this specification). M E N U 1, Enter Number 1 2, Enter Number 2 3, Display num1 and num2 4, D