flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
DOS386 11 Jan 2007, 05:17
Quote: One thing I don't understand is that the read and write modes ask for how many bytes to read/write. Is it NOT obvious ? ![]() Quote: That leads into my question: Is there a interrupt/int mode that will allow me to get the size of my file? http://www.ctyme.com/intr/rb-2600.htm ![]() Works up to 2 GB at best ... Untested, believe with care ... _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
![]() |
|
rhyno_dagreat 11 Jan 2007, 06:01
Thanks for the help!
![]() |
|||
![]() |
|
LocoDelAssembly 11 Jan 2007, 06:05
The way I know is using http://www.ctyme.com/intr/rb-2799.htm three times. The first time to save the current file pointer, the second time to set the file pointer to the EOF (and saving the return value which is the file size) and third time to set the file pointer back to its original value. This method has no 2 GB limitations (but I see no way of how to get the size of file even larger than 4 GB).
|
|||
![]() |
|
DOS386 12 Jan 2007, 01:53
Quote:
Probably better than what I posted above. ![]() Quote:
There IS a way: http://www.unet.univie.ac.at/~a0503736/php/drdoswiki/index.php?n=Main.FATplus ![]() ![]() _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.