TEXT 23
[COAL] Substracting two input numbers Guest on 23rd October 2020 02:56:31 PM
  1. .model small ; cod 64K bytes
  2. .stack 100h  
  3. .data
  4.  
  5. .code
  6. main proc
  7.  
  8.     mov ah,1
  9.     int 21h
  10.     sub al,48
  11.     mov bh,al    
  12.    
  13.     mov ah,1
  14.     int 21h  
  15.     sub al,48
  16.    
  17.     mov bl,al    
  18.    
  19.     sub bh,bl
  20.  
  21.     mov dl,bh  
  22.     add dl,48
  23.    
  24.     mov ah,2
  25.     int 21h
  26.    
  27.     mov ah,4ch
  28.     int 21h
  29.    
  30.  
  31. main endp
  32. end main

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.