Search This Blog

Saturday, April 23, 2011

Write Assembly language program To subtract 2 8-bit BCD numbers


; 2000H = 24
; 2001H = 43


LDA 2000H ;
MOV B,A ;
LDA 2001H ;
SUB B ;
DAA ;
STA 2002H ;
HLT ;

2 comments:

  1. if carry not present then this program will not work..

    ReplyDelete
  2. if carry not present then this program will not work..

    ReplyDelete