SHARE
TWEET

Assemble Multiplication in two input

naeem043 Mar 22nd, 2019 77 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.     MUL BL ; AL = AL * BL
  16.    
  17.     MOV AH, 2
  18.     ADD AL, 48
  19.    
  20.     MOV DL, AL
  21.     INT 21H
  22.    
  23.        
  24.    
  25.    
  26.     MOV AH, 4CH
  27.     INT 21H
  28.        
  29.    
  30. 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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top