Advertisement
jahurul25

Input and sub - Microprocessor

Feb 14th, 2019
106
0
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 5
  6. C DB 4
  7. .CODE
  8. MAIN PROC    
  9.     MOV AX,@DATA
  10.     MOV DS,AX
  11.    
  12.     MOV AL,A
  13.     MOV BL,B
  14.    
  15.     SUB AL,BL
  16.     ;ADD AL,48
  17.    
  18.     MOV AH,2
  19.     MOV DL,AL
  20.     INT 21H
  21.    
  22. MAIN ENDP
  23. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement