SHARE
TWEET

Assemble Addition and Subtraction with Big Input

naeem043 Feb 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100H
  3.          
  4. .CODE
  5. MAIN PROC    
  6.     INCLUDE 'EMU8086.INC'
  7.      
  8.     DEFINE_SCAN_NUM  
  9.     DEFINE_PRINT_NUM
  10.     DEFINE_PRINT_NUM_UNS
  11.  
  12.     ;PRINT 'ENTER THE NUMBER : '    
  13.    
  14.     CALL SCAN_NUM
  15.     MOV AX,CX
  16.     PRINTN ''  
  17.    
  18.     CALL SCAN_NUM
  19.     ADD AX,CX  
  20.    
  21.     CALL PRINT_NUM
  22.    
  23.     SUB AX,CX
  24.      
  25.     PRINTN ''
  26.    
  27.    
  28.     CALL PRINT_NUM
  29.        
  30.    
  31. END MAIN
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top