Program to perform one byte bcd addition-assembly program, Assembly Language

Program : Write a program to perform a one byte BCD addition.

Solution :

It is consider that the operands are in BCD form, but the CPU considers it as hexadecimal and accordingly performs addition operation. Assume the following example for addition. Carry is set to be 0.

1141_program7.jpg

Actual result after addition considering hex operand

2453_program8.jpg

407_program9.jpg

In this program, the DAA instruction is used after ADD. In similar manner, DAS can be used after instruction SUB.

Posted Date: 10/12/2012 8:08:22 AM | Location : United States







Related Discussions:- Program to perform one byte bcd addition-assembly program, Assignment Help, Ask Question on Program to perform one byte bcd addition-assembly program, Get Answer, Expert's Help, Program to perform one byte bcd addition-assembly program Discussions

Write discussion on Program to perform one byte bcd addition-assembly program
Your posts are moderated
Related Questions
NASM assembly language program: Consider a sequence of 19 strictly positive decimal digits, most likely stored in an array. There are obviously duplicates, and the sequence is un

Write a program that will input a number from the keyboard, and then display the number in binary form, as well as the number of one's in the number. Hint: Shift the value left (or

Convert 751 to hex and show what it would look like stored at TheNumber WORD ? (hint: answer in hex pairs)

DMA controller :     Steps include in transferring a block of data from I/O devices (for example a disk) to memory: 1. CPU sends a signal to initiate disk transfe

this is my first project i dont know where to start

move a byte string ,16 bytes long from the offset 0200H to 0300H in the segment 7000H..

8255 Programmable Peripheral Interface Intel's 8255 A programmable peripheral interface provides a nice instance of a parallel  interface. As shown the interface have a control

Can you write for me an essay, topic is: Statement of the Problem. Length: 270 words. I will send you the Formula for the Problem Statement on your Email attachment. Do you agree?

) What is the difference between re-locatable program and re-locatable data?