8085 Programming : Adding 2 Hexa-decimal nos without carry



8085 Programming





  LDA 2200


             MOV C, A ;  Initialize counter


             SUB A  ;  sum = 0


             LXI H, 2201H ;  Initialize pointer


BACK:  ADD M   ; SUM = SUM + data


             INX H  ;  increment pointer


             DCR C ;  Decrement counter


             JNZ BACK ;  if counter  0 repeat


             STA 2300H ;  store sum


             HLT







         








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