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
Introduction to Microprocessor: Microprocessor works like a CPU in a microcomputer. It's present as a single IC chip in a microcomputer. Microprocessor is the soul of the machi

DAA: Decimal Adjust Accumulator:- This instruction is utilized to convert the result of the addition operation of 2 packed BCD numbers to a valid BCD number. The conclusion has to

which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of screen.

Addressing mode of 8086 : Addressing mode specify a way of locating operands or data. Depending on the data types used the memory  addressing  modes and in the instruction  ,

Write a program on the assembly language to do the following: 1- Allocate array with 32bit 100 element 2- Prompt the user to enter the maximum or the upper bound of the rando

ADD:  Add :- This instruction adds an immediate contents of a memory location specified in the a register ( source ) or instruction to the contents of another register (destinat

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

Software Interrupts Software interrupts are the result of an INT instruction in an executed program.  It may be assumed as a programmer triggered event that immediately stops e

Write an assembly language program to find the maximum of: y = x 6 - 14x 2 + 56x for the range -2 ≤ x ≤ 4, by stepping one by one through the range. The program should in

How do i convert a asci number to numerals?