8085 Programming: Adding 2 BCD nos without carry



8085 Programming







MOV A, L ; Get lower 2 digits of no. 1  




ADD E ; Add two lower digits  




DAA  ; Adjust result to valid BCD  




STA 2300H ; Store partial result  




MOV A, H ; Get most significant 2 digits of no. 2  




ADC D ; Add two most significant digits   




DAA  ; Adjust result to valid BCD   




STA 2301H ; Store partial result  




HLT ; Terminate program execution  




Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C