- 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
Program for adding 2 numbers input from keyboard in 8085 Microprocessor
We write an 8085 assembly language program of two input using two 2-digit hexadecimal numbers from the keyboard and then we add and the output results in the address field.
FILE NAME ADD2NUM.ASM ORG C000H CURAD: EQU FFF7H UPDAD: EQU 06BCH CLEAR: EQU 044AH GTHEX: EQU 052FH MVI A, 0EH SIM EI ; Unmask RST5.5 and enable interrupts MVI B, 01 CALL GTHEX ; Input a 2 digit number and display in data field MOV A, E STA C100H ; Store the 2-digit hex number in C100H MVI B, 01 CALL GTHEX ; Input a 2 digit number and display in data field LDA C100H ADD E STA CURAD ; Add the two numbers and store in CURAD JNC SKIP MVI A, 01 STA CURAD+1 ; If Carry =1, store 1 in CURAD+1 SKIP: CALL CLEAR ; Blank the entire display CALL UPDAD ; Display sum in address field. HLT
- Related Articles
- Interfacing 8279 Keyboard with 8085 Microprocessor
- Interfacing a simple keyboard with 8085 Microprocessor
- Interfacing a matrix keyboard with 8085 Microprocessor
- Program to multiply two 2-digit BCD numbers in 8085 Microprocessor
- Program for adding 4 hex digits of a 16-bit number in 8085 Microprocessor
- Program for subtraction of multi-byte BCD numbers in 8085 Microprocessor
- BCD numbers in 8085 Microprocessor
- Program for simulating a stopwatch in 8085 Microprocessor
- Program for decimal down counter in 8085 Microprocessor
- Program to check for palindrome in 8085 Microprocessor
- Program to Add two multi-byte numbers in 8085 Microprocessor
- Program to Add two 8 Bit numbers in 8085 Microprocessor
- Program to Subtract two 8 Bit numbers in 8085 Microprocessor
- Program to Divide two 8 Bit numbers in 8085 Microprocessor
- Program to multiply two 16-bit binary numbers in 8085 Microprocessor

Advertisements