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
Power Pc : A Power PC is a microprocessor designed to meet a standard, which was combining designed by Motorola, Apple and IBM. The PowerPC standard specifies a common instruc

Ask 2. Exchange higher byte of AX and higher byte of BX registers by using memory location 0160 in between the transfer. Then stores AX and BX registers onto memory location 0174 o

ALP to preform of two 16-bit numbers in register addressing mode


Entering a Program In this section, we will explain the procedure for entering a small program on IBM PC with DOS operating system. Assume a program of addition of 2 bytes, as

hi!im looking for someone who expert in an assembly language and help me write the programmed!Thank you

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

Interrupt Table Each interrupt level has a booked memory location, called an interrupt vector.  All these vectors (or pointers) are stored in the interrupt table. Table lies at

DMA Hardware (8237 DMAC) :   1)Processor contain HOLD/HOLD Acknowledge lines to interact with 8237 o   DMAC can achieve control of ISA bus by asserting HOLD o   P

Ask question #MinimuWHAT ARE CONSTANTS AND WHAT DO THEY DO?m 100 words accepted#