dseg segment
FileName db "hex.txt$"
dseg ends
cseg seg..
...
wrFile proc
push ax bx cx dx
mov ax,3D00h
mov dx, offset fileName
int 21h
mov bx,ax
mov cx,10*type scores
mov dx,offset highscoresnum
mov ah,40h
int 21h
mov dx,offset highscoresdate
mov ah,40h
int 21h
mov ah,3eh
int 21h
pop dx cx bx ax
ret
wrFile endp
at the first int 21h (ah=3dH) CF is not cleared and AX turns to 2h. in the net it's written that AX holds the error code, but i couldn't find it. what do i do wrong?