naeem043

Assemble Addition

Feb 14th, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4.     A DB 100
  5.     B DB 2
  6.     C DB 9  
  7. .CODE
  8. MAIN PROC
  9.     MOV AX, @DATA
  10.     MOV DS, AX
  11.    
  12.     MOV AL,A
  13.     MOV BL, B
  14.    
  15.     ADD AL,BL
  16.     ADD AL, 48 ;reduce when use big input as like 100
  17.    
  18.     MOV AH, 2
  19.     MOV DL, AL
  20.     INT 21H
  21.    
  22. MAIN ENDP
  23. END MAIN
RAW Paste Data