mess db 'Hello 1World23'
len equ $-mess ; dlina mess
NewLine db 10, 13
len2 equ $-NewLine
.........
mov ah, 3Dh
mov al, 01h ; recorf-only mode
mov dx, offset fileName
int 21h
jc Error
mov flHandle, ax
; set the pointer of the beginning of the file
mov dx, 0
mov cx, 0
mov bx, flHandle
mov ax, 4200h
int 21h
jc Error
..................
; writing data to a file
write proc
mov bx, flHandle
mov dx, offset NewLine
mov cx, len2
mov ah, 40h
int 21h
jc Error
mov bx, flHandle
mov dx, offset mess
mov cx, len
mov ah, 40h
int 21h
jc Error
ret
write endp
При попытке вызова write - прыгаю на error.
Пытаюсь, пытаюсь, но ничего не выходит(