Re: [cc65] Atari File I/O again

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2002-05-16 17:07:52


>Hi,
>
>On 05/14/2002 12:36:57 PM MST "Shawn Jefferson" wrote:
>>
>>However, the program doesn't signal FEOF ever, and the the program
>>just keeps reading from the file past the end until the emulator
>>locks up or I hit RESET.
>>
>>I took a look into the source, and I don't fully understand it, but
>>shouldn't read.s in the atari library be setting a flag for EOF in
>>the file pointer structure somehow, instead of just BEQing to done?
>
>The read function returns the # of bytes read, so should 0 in EOF
>case. 
>I don't know right now whether ICBLL and ICBLH are updated by the CIO
>function. If they are not then the bug is in the read function here.

Sorry Chris, further testing shows that it does return EOF just fine... it's just that AtariDOS and SpartaDOS deal with files and the various filemodes differently.

I did send you a message with my ATR of Sparta and the test program... I guess you didn't get it, I will send it again.



----------------------------------------------------------------------
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 17:08:30 CEST