guys?is it even possible that once i created a file already with my program then execute that program again wont create a file anymore?.. like q.txt then its created..but when i execute my program again and type a string to create a file like w.txt..it doesnt create the file..theres a screenshot of what ive done with my sample codes..it kept bugging making me crazy to figure out whats wrong..
heres my code if there is something wrong please help me:
.model small
.stack 100h
.data
buff db 10,?,10 dup(' ')
handle dw ?
.code
start:
mov ax,seg buff
mov ds,ax
mov dx,offset buff
mov ah,0ah ; string input
int 21h
push ax ; string placed to stack
je print
print:
xor bx, bx
mov bl, buff[1]
mov buff[bx+2], '$'
mov dx, offset buff + 2
mov ah, 9
int 21h
mov ah,3ch ; create file attribute
mov cx,0 ; normal attribute
pop bx ; get data from stack
mov ah,3ch ; create file with file name from stack
int 21h
mov handle,ax
finish:
mov ah,4ch ; terminate program
int 21h
end start