Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CSEG segment
- org 100h
- start:
- mov ax, 3D00h
- mov dx, offset file_name
- int 21h
- jc bad_file
- mov dx, offset mess1
- quit_prog:
- mov ah, 9
- int 21h
- int 20h
- bad_file:
- mov dx, offset mess2
- jmp quit_prog
- file_name db 'c:\\masm32\\bin\\ml.exe',0
- mess1 db 'the file is succesfully opened$'
- mess2 db 'cant open the file$'
- CSEG ends
- end start
Advertisement
Add Comment
Please, Sign In to add comment