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
CANI GET HELP WRITTING THIS CODE

The addressing modes for the sequential control transfer instructions are described below:   1. Immediate: Immediate data is a part of instruction,in this type of addressin

Interrupt When the CPU detects an interrupt signal, it stops activity of current and jumps to a special routine, known an interrupt handler. This handler then detects why the i

how to find out the given number is positive or negative?

Data copy/transfer Instructions MOV: This data transfer instruction transfers data from one register or memory location to another register or memory location. The source can

Difference between div and idiv

#write a program 8086 to find the largest number

write a program that calculates the fibonacci series: except for the first two numbers in the sequence

CAN U GIVE BRIEF THEORY

1. Write a program that calculates the Fibonacci series: 1, 1, 2, 3, 5, 8, 13, ….. (Except for the first two numbers in the sequence, each number is the sum of the preceding two n