- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
8086 program to subtract two 8 bit BCD numbers
In this program we will see how to subtract two 8-bit BCD numbers.
Problem Statement
Write 8086 Assembly language program to subtract two 8-bit BCD number stored in memory address offset 600.
Discussion
This task is too simple. Here we are taking the numbers from memory and after adding we need to put DAS instruction to adjust the accumulator content to decimal form after the subtraction operation. The DAS will check the AC and CY flags to adjust a number to its decimal form.
Input
Address | Data |
---|---|
… | … |
500 | 99 |
501 | 25 |
… | … |
Flow Diagram
Program
Output
Address | Data |
---|---|
… | … |
600 | 74 |
601 | 00 |
… | … |
- Related Articles
- 8086 program to subtract two 16 bit BCD numbers
- 8086 program to add two 8 bit BCD numbers
- 8086 program to add two 16 bit BCD numbers with carry
- 8086 program to multiply two 8-bit numbers
- 8085 Program to Subtract two 8 Bit numbers
- 8051 Program to Subtract two 8 Bit numbers
- 8086 program to subtract two 16-bit numbers with or without borrow
- 8085 program to subtract two BCD numbers
- Program to Subtract two 8 Bit numbers in 8085 Microprocessor
- Program to Subtract two 8 Bit numbers in 8051 Microprocessor
- 8086 program to convert an 8 bit BCD number into hexadecimal number
- 8086 program to multiply two 16-bit numbers
- 8085 program to subtract two 8-bit numbers with or without borrow
- 8086 program to reverse 8 bit number using 8 bit operation
- 8086 program to reverse 16 bit number using 8 bit operation

Advertisements