Saturday, April 23, 2011

Write Assembly language program To add 2 16-bit BCD numbers


; HL = 2435
; DE = 6578
; METHOD 1


LHLD 6578H ;
XCHG ; DE = 6578
LHLD 2435H ; HL = 2435
MOV A,L
ADD E ;
DAA ;
STA 2000H ;
MOV A,H ;
ADC D ;
DAA ;
STA 2001H ;
HLT ;

No comments:

Post a Comment