Logo 
Search:

Assembly Language Articles

Submit Article
Home » Articles » Assembly Language » Homework HelpRSS Feeds

file creation in masm

Posted By: Mega Mind     Category: Assembly Language     Views: 11234

.model small
.stack 100h
.data
msg1 db 10,13,'enter the file name$'
msg2 db 10,13,'file is created$'
fn db 50 dup(?)
.code
print macro arg
mov dx,offset arg
mov ah,09h
int 21h
endm
.startup
print msg1
mov di,offset fn
read:
mov ah,01h
int 21h
cmp al,13
je crte
mov [di],al
inc di
jmp read
crte:
mov cx,0
mov dx,offset fn
mov ah,3ch
int 21h
print msg2
.exit
end

 

  
Share: 

 
 

Didn't find what you were looking for? Find more on file creation in masm Or get search suggestion and latest updates.

Mega Mind
Mega Mind author of file creation in masm is from India.
 
View All Articles

 

Other Interesting Articles in Assembly Language:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
Siby Xavier from India Comment on: Apr 11
please check this link for sample programs
itsourtech.blogs...ot.in/.../...ith-8086_8654.html

View All Comments