Re: [cc65] Atari file i/o more info

Date view Thread view Subject view

From: Christian Groessler (cpg_at_aladdin.de)
Date: 2002-05-16 13:28:05


Hi,

On 05/14/2002 03:32:26 PM MST "Shawn Jefferson" wrote:
>
>I did a lot more testing under AtariDOS 2.5 and SpartaDOS 3.3.  Here is what I found:
>
>fopen(filename, "rb") + feof:
>SpartaDOS: OK
>AtariDOS: OK
>
>fopen(filename, "r+b") + feof:
>SpartaDOS: never gets EOF in feof
>AtariDOS: OK
>
>fwrite:
>SpartaDOS: you can write past the end of the file if you open in "r+b" mode.
>AtariDOS: you cannot write past the end of the file even in r+b mode.
>
>So, if you want to add to a file in AtariDOS you need append mode,
>and if you want to add to a file in SpartaDOS you need either append
>mode, or some way to get to the end of the file and write your data
>there.  The file i/o functions are so close to being complete, but a
>few vital functions are still missing.

I have to admit, I didn't try append mode yet...

> How're you doing on the note and point (aka lseek) functions, Christian?

I've sent you the following mail on May 1st and am still waiting for
your reply:

----------
Hi,

On 04/29/2002 08:18:57 AM MST "Shawn Jefferson" wrote:
>
>>On 04/24/2002 01:28:29 PM MST "Shawn Jefferson" wrote:
>>>
>>>I just did some testing in basic with SpartaDOS v3.3a and there are several
>>XIO functions that work like this:
>>>
>>>XIO 37 - POINT:
>>>  Aux3 lo byte (<256)
>>>  Aux4 high byte ( * 256)
>>>  Aux5 highest byte (* 65536)
>>
>>What is aux3 - aux5? Is it $34c - $34e (iocb #0)?
>
>Yep, 34c-34f are Aux3-6.  Do you have Mapping the Atari?  There is an
>online version at http://www.atariarchives.org/

Hmm, I now have a first version of lseek.s, but it appears that NOTE
returns the same values as Atari DOS (aux3+4 - sector #, aux 5 -
offset inside).

I'm also using SpartaDOS 3.3, maybe you can send me your SpartaDOS ATR
and your BASIC test program so I can check it out?

regards,
chris

----------


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-05-16 13:29:42 CEST