Guest User

Untitled

a guest
Nov 20th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CSEG segment
  2. org 100h
  3.  
  4. start:
  5.     mov ax, 3D00h
  6.     mov dx, offset file_name
  7.     int 21h
  8.     jc bad_file
  9.    
  10.     mov dx, offset mess1
  11.  
  12. quit_prog:
  13.     mov ah, 9
  14.     int 21h
  15.     int 20h
  16.    
  17. bad_file:
  18.     mov dx, offset mess2
  19.     jmp quit_prog
  20.  
  21. file_name db 'c:\\masm32\\bin\\ml.exe',0
  22. mess1 db 'the file is succesfully opened$'
  23. mess2 db 'cant open the file$'
  24.  
  25. CSEG ends
  26. end start
Advertisement
Add Comment
Please, Sign In to add comment