CSEG segment
org 100h

start:
	mov ax, 3D02h
	mov dx, offset just_file
	int 21h
	jc err
ok:
	mov dx, offset msg_ok
	mov ah, 9h
	int 21h
	int 20h
err:
	mov dx, offset msg_err
	mov ah, 9h
	int 21h
	int 20h
	
file_name db 'command.com', 0
just_file db 'file', 0
msg_ok    db 'file opened$'
msg_err   db 'error$'

CSEG ends
end start