SHARE
TWEET

Assemble Multiplication in Three input

naeem043 Mar 22nd, 2019 66 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.     MOV AH, 1
  9.     INT 21H
  10.     SUB AL, 48    ;INPUT 1
  11.     MOV BL, AL
  12.     INT 21H       ;INPUT 2
  13.     SUB AL, 48
  14.            
  15.     MOV CL, AL
  16.     INT 21H       ;INPUT 3
  17.     SUB CL, 48
  18.    
  19.     MUL BL ; AL = AL * BL  
  20.     MUL CL ; AL = CL * AL
  21.    
  22.     MOV AH, 2
  23.     ADD AL, 48
  24.    
  25.     SUB AL, 48          
  26.                
  27.     MOV DL, AL
  28.     INT 21H
  29.    
  30.        
  31.    
  32.    
  33.     MOV AH, 4CH
  34.     INT 21H
  35.        
  36.    
  37. 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