SHARE
TWEET

Untitled

a guest Jul 16th, 2019 140 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INCLUDE 'EMU8086.INC'
  2. .MODEL SMALL
  3. .STACK 100H
  4. .DATA
  5. .CODE
  6. MAIN PROC
  7.    
  8.     MOV AH,1
  9.     INT 21H
  10.     MOV BL,AL
  11.    
  12.    
  13.    
  14.        MOV BX,5
  15.        DIV BX
  16.        
  17.        CMP DX,0
  18.        JE DBY5
  19.        JNE NDBY5
  20.        
  21.        
  22.        DBY5:
  23.        PRINT "DIVISIBLE BY 5"
  24.        JMP EXIT
  25.        NDBY5:
  26.        PRINT "NOT DIVISIBLE BY 5"
  27.        JMP EXIT    
  28.            
  29. EXIT:
  30. MOV AH,4CH
  31. INT 21H
  32.  MAIN ENDP
  33. 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