.model small
.code
org 100h
COUNT = 1
start:

  mov al, 0							; Device Num (0-A, 1-B, ..)
  lea bx, _ioRec					; Params
  mov cx, 0ffffh        			; Using additional params
  mov word ptr [bx], 1				; SectNum (LOW)
  mov word ptr [bx+2], 0			; SectNum (HI)
  mov word ptr [bx+4], COUNT		; SectCount
  mov word ptr [bx+6], offset _buf	; ReciveBuf offs
  mov word ptr [bx+8], cs			; ReciveBuf seg
  INT 25H
  pop dx 

  jc  error

  mov ah, 3ch
  lea dx, _fname
  mov cx, 0
  int 21h

  mov bx, ax
  mov ah, 40h
  mov cx, 200h*COUNT
  lea dx, _buf
  int 21h

  mov ah, 3eh
  int 21h

  jmp exit

error:
  mov dl, ah  
  mov cl, al
  mov ah, 2
  int 21h

  mov dl, cl
  int 21h

  mov ah, 9
  lea dx, _err
  int 21h

exit:  
  mov ah, 4ch
  int 21h
_ioRec db 10 dup (0)
_err db ' Fuck, some error',10,13,'$'
_fname db 'dump2.dat',0
_buf db 200h*COUNT dup (0)
end start