10 Program to input two number and add them in 8086 Microprocessor

.MODEL SMALL
.STACK 100
.CODE
  MOV AH,1 ; SERVICE ROUTINE 1 INPUT   
  INT 21H  ; INTERUPT 21H F0R GOING ON INPUT/OUTPUT SCREEN

  MOV BL,AL

  MOV AH,1
  INT 21H

  ADD AL,BL
  MOV DL,AL

  SUB DL,48

  MOV AH,2 ; SERVICE ROUTINE TO DISPLAY CONTAIN OF AL
  INT 21H

  MOV AH,4CH
  INT 21H
END

Previous
Next Post »