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
what is the hex value in ax after executing the instructions ax= 1E8A bx=4080 add al,bl sub ah,bh

I need some guidance on which project to make in assembly language

I need a text conversion program written in assembly language

How can i starting with Assembly langauge?

Using DEBUG DEBUG.COM is a DOS efficacy that facilitates the trouble-shooting and debugging of assembly language programs. In particular case of personal computers, all of th

LABEL :   The Label directive which is used to assign a name to the current content of the location counter. At the beginning of the assembly process, the assembler start a loca

Signal descriptions of 8086 : described below are common for the maximum andminimum mode bothdata lines AD15 -AD0: These are the time multiplexed andmemory I/O address. Addre

Intel's 8237 DMA controller : 1) The 8237 contain 4 independent I/O channels 2) It contains 27 registers, 7 of which are system-wide registers and 5 for each channel. 3)

The Alpha : The development of the Alpha chip start in the year 1988 The new chip used 64 bit technology, let users to pack  more  complexity  into  their  programs  than  exis

Write a program to evaluate the following expression. You are to evaluate the following equation: num1 - (input + num2) - (num3 + num4) Input will be a hex number input by