flat assembler
Message board for the users of flat assembler.

Index > DOS > file I/O

Author
Thread Post new topic Reply to topic
ke11ey



Joined: 13 Aug 2005
Posts: 1
Location: here
ke11ey 13 Aug 2005, 12:42
Hi, iv read a tutorial (some place) and now im just looking for file i/o stuff, Did search google but nothing Sad i just need some example codes and a explanation how to write to files, how to create a simple text file? o and user input Rolling Eyes i just had basic in the tutorial like how to use the registers, making a message box, ect Crying or Very sad

thank you Embarassed
Post 13 Aug 2005, 12:42
View user's profile Send private message MSN Messenger Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 13 Aug 2005, 15:23
Here is a example of file i/o http://members.tripod.com/~ladsoft/
Go to the "MSDOS demos" and then "File i/o", its not for fasm but should be easy to convert.
also this http://www.cesis.lv/learn/asm/asm3.html
Post 13 Aug 2005, 15:23
View user's profile Send private message Reply with quote
ly



Joined: 11 Oct 2005
Posts: 13
ly 19 Oct 2005, 20:10
hello
Is there file I/O interupt using BIOS (instead of DOS int 21h) ?
If yes please show some demos for create,read,write,open,close and delete files.
thanks ly
Post 19 Oct 2005, 20:10
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 19 Oct 2005, 20:15
Post 19 Oct 2005, 20:15
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
ly



Joined: 11 Oct 2005
Posts: 13
ly 19 Oct 2005, 20:39
thanks vid
BUT they are for DOS (int 21h) ,i'm looking for BIOS intrpts.
ly
Post 19 Oct 2005, 20:39
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 19 Oct 2005, 21:00
AFAIR with BIOS only you can't work on files. You have a direct access to disk structure (sectors) with int 13h. You can find detailed description here. But if you want to access files, you'll have to write your own routines.
Post 19 Oct 2005, 21:00
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 19 Oct 2005, 21:39
bios just doesn't support any fiesystems.
Post 19 Oct 2005, 21:39
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Remy Vincent



Joined: 16 Sep 2005
Posts: 155
Location: France
Remy Vincent 20 Oct 2005, 12:01
ke11ey wrote:
Hi, iv read a tutorial (some place) and now im just looking for file i/o stuff, Did search google but nothing Sad i just need some example codes and a explanation how to write to files, how to create a simple text file? o and user input Rolling Eyes i just had basic in the tutorial like how to use the registers, making a message box, ect Crying or Very sad

thank you Embarassed


For me it's IMPOSSIBLE to program so hard programs directly in assembler, have you access to another language so you could translate your own C (not C++) programs to assembler, or your own Delphi programs (using "native" CreateWindow) to assembler or your own Ada programs to assembler ?

Please be carefull because clever thinking process can't enter to a brain directly in assembler, you need to practice a little bit in your own usual language (and i don't want to know which one!!) and then to make final program in assembler.

_________________
Groups lower your IQ
Post 20 Oct 2005, 12:01
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 20 Oct 2005, 17:18
so hard? if you mean file I/O than it is just as hard as in C (but you have cca 4 lines instead of 1)

Quote:
clever thinking process can't enter to a brain directly in assembler
usual problems with HLLers who are trying to do something in assembly. You think "structured", while in assemblerists think more "linear". With such approach is useless to code assembly, in fact you first code it (in your head) in structured language and then hand-compile it to assembly. But compiler can make this job better. If you want to be effectiver you need to create program IN assembly, not convert it to assembly.
Post 20 Oct 2005, 17:18
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Remy Vincent



Joined: 16 Sep 2005
Posts: 155
Location: France
Remy Vincent 20 Oct 2005, 20:33
vid wrote:
so hard? if you mean file I/O than it is just as hard as in C (but you have cca 4 lines instead of 1)

You think "structured", while in assemblerists think more "linear". With such approach...


I swear that "unstructured thinking" and talking i do, is all about music and sometomes movies etc. I swear it's true!!! that's why I talk directly about programming without saying things like "..."or "..."... I don't know where it comes from but that's how I am... But I remember that when I try a little bit of C and Ada 6 monthes ago, I remember that I was more about to do compting talks with more "..." and more "..."... may be Ada or C are pushing far away Question Question Question all music I have inside my head (disco, old rocks, pop...

_________________
Groups lower your IQ
Post 20 Oct 2005, 20:33
View user's profile Send private message Visit poster's website Reply with quote
Remy Vincent



Joined: 16 Sep 2005
Posts: 155
Location: France
Remy Vincent 20 Oct 2005, 20:35
ave u similar "....." "..." nervous breakdown ??
Post 20 Oct 2005, 20:35
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 21 Oct 2005, 10:08
you 've just over-argumented me Very Happy
Post 21 Oct 2005, 10:08
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.