SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL
  2. .STACK 100H
  3. .DATA
  4.     MSG1 DB 10, 13, 'POSITIVE', '$'
  5.     MSG2 DB 10, 13, 'NEGATIVE', '$'
  6.    
  7. .CODE
  8.     MAIN PROC
  9.        
  10.         MOV AX, @DATA
  11.         MOV DS, AX
  12.        
  13.         MOV AH, 1
  14.         INT 21H
  15.         MOV BL, AL
  16.        
  17.         CMP BL, 0
  18.         JL NEGATIVE
  19.         JGE POSITIVE
  20.        
  21.         NEGATIVE:
  22.         MOV AH, 9
  23.         LEA DX, MSG2
  24.         INT 21H
  25.        
  26.         POSITIVE:
  27.         MOV AH, 9
  28.         LEA DX, MSG1
  29.         INT 21H
  30.        
  31.        
  32.        
  33.        
  34.        
  35.         MOV AH, 4CH
  36.         INT 21H
  37.        
  38.     ENDP MAIN
  39.     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