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
Your assignment for this project is to write an assembly language program that checks if the user's input is a valid ISBN number. A sample run of your program might look like:

describes vertical and horizontal web services protocols. Next, identify the similarities and differences between vertical and horizontal web services protocols. Finally, explain w

The modes are determined by the contents of the control register, whose format is given in Figure These modes are: Mode 0: If a group is in mode 0, it is divided into 2 sets.

IInd Generation Microprocessor : The second generation microprocessor by using n MOS technology seemed in the market in 1973.   The Intel  8080, of nMOS  technology

DQ:   Define  Quad word:-  This directive is taken in use to direct the assembler to reserve 4 words (8 bytes) of memory for the specified variable and can initialise it having

Memory Segmentation : The  memory in an 8086/8088  based system is organized as segmented memory. In this scheme, the whole physically available memory can be divided into a n

AAD stand for what??

write a program assembly language for adding two 3*3 matrix

segmentation and overlapping in assemble language

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