Article View: alt.lang.asm
Article #336Newbie: File operations
From: Nutty Professor
Date: Tue, 14 Mar 2000 00:00
Date: Tue, 14 Mar 2000 00:00
50 lines
2020 bytes
2020 bytes
Here's the code for creating a file. It always gave some sort of an error. Thanks for the help. HELLO segment assume cs:HELLO, ds:HELLO, es:HELLO org 100h start: mov ah,09h mov ah, 3C ;To open the file with a handle mov cx, 00100000 ;The attribute mov bx,cs ;pointing to the ASCIIZ filename mov ds,bx mov dx,offset mytext mytext db 'test.txt','$' mov ax,4c00h int 21h HELLO ends end start Al Leitch [Team2000] wrote in message <8aka9j$9hi$1@bob.news.rcn.net>... >Could you please put up your source codes for us? > >--------------------------------------------------------------- >Team2000 PC/Palm Pilot Programming Team: >http://ppilot.homepage.com > >Nutty Professor wrote: > >> Hi! >> >> I am a newbie in assembly and would like to know about File operations. I >> had a look at HelpPC but the programs I made didn't seem to work. Could >> someone make a few programs on file operations with comments to demonstrate >> how to work with files? >> >> Thanks in advance. >> >> >
Technical Details
Message-ID:
<8alolr$8eq$1@bob.news.rcn.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<scr874c0a5n45@corp.supernews.com> <8aka9j$9hi$1@bob.news.rcn.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7d8d,9d73404c09218118 X-Google-Attributes: gidf7d8d,public X-Google-Thread: feaef,9d73404c09218118 X-Google-Attributes: gidfeaef,public X-Google-Thread: 114917,9d73404c09218118 X-Google-Attributes: gid114917,public From: Nutty Professor <kid1983@hotmail.com> Subject: Newbie: File operations Date: 2000/03/14 Message-ID: <8alolr$8eq$1@bob.news.rcn.net> X-Deja-AN: 597389490 Approved: <johnfine@erols.com> References: <scr874c0a5n45@corp.supernews.com> <8aka9j$9hi$1@bob.news.rcn.net> X-Track2: 2 X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Mozilla-Status: 0801 X-Complaints-To: abuse@rcn.com X-Trace: qgpGI43Ink0zajqp6rMs9psi3AFt/+nomfLXBMgp6mg= Organization: Etisalat X-Apparently-To: clax86@yahoo.com via web1703.mail.yahoo.com X-Track: 1-1: 40 NNTP-Posting-Date: 14 Mar 2000 16:16:59 GMT Newsgroups: alt.lang.asm,borland.public.tasm,comp.lang.asm.x86