.model small
.code
org 100h
start:
  mov ah, 01h
  mov dl, 0
  int 13h
  jc  error
  add ah, 30h
  mov dl, ah
  mov ah, 2
  int 21h
  jmp exit

error:
  mov dl, ah  
  add dl, 30h
  mov ah, 2
  int 21h
  mov ah, 9
  lea dx, _err
  int 21h
  mov ah, 00
  int 13h
exit:  
  mov ah, 4ch
  int 21h
_err db ' Fuck, some error',10,13,'$'
end start