MPASM 21
[COAL] Addition of two numbers and conversion from ASCII Guest on 9th October 2020 02:58:11 PM
  1. .model small
  2. .stack 100h
  3. .data
  4.  
  5. .code
  6. main proc
  7.  
  8.            
  9.     mov bh,5
  10.     add bh,3
  11.     add bh,48            
  12.                
  13.  
  14.     mov dl,bh    
  15.     mov ah,2
  16.     int 21h            
  17.     mov ah,4ch
  18.     int 21h
  19.            
  20.    
  21.    
  22.     main endp
  23. 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.