%define STDOUT 0x0001
SECTION .text
org 0x100
mov bp,STDOUT
mov ax, datap
mov ds, ax
mov si, 0x80 ; cmd parameters offset.
; copy command line to our buffer:
xor cx, cx ; zero cx register.
mov cx, [0x81] ; get command line size.
or cx,cx
jz no_param ; then skip the copy.
mov di,cx
add di,cx
inc di
mov byte [di],0x0A
;;;;;;;;My MOD OF THE SOUCE CODE;;;;;;;;it should open the file from the program parameter
mov ax,0x3D ;open the file
mov dx,datap ;filename
int 0x21
jc erro
mov bx,ax ;id of the opened file
jmp short read_znak
read_znak: