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  




0 Comments