Re: [cc65] Re: readdir bug

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2012-09-14 20:46:30
Hello Uz,

* On Fri, Sep 14, 2012 at 07:49:24PM +0200 Ullrich von Bassewitz wrote:
 
> To check this, I've changed Olivers test program, so that it uses cbm_readdir
> instead of readdir. And it has in fact the same problems. So there's a high
> probability that the issue is really caused by the floppy.

Yep. Also, Kajtár Zsolt confirms this.

What I found interesting with my BASIC test program was that the wrong
output was exactly the same wrong output as my modified readdir()
produced. I was very surprised that the readdir() repeated the header
line of the directory after 8 entries, when the C64 side could not know
anything about it. I even added memset() functions to clear the buffers,
but the wrong data kept coming in.

Unfortunately, I did not make the right conclusions. I am happy I posted
my partial results, or I would have debugged some more hours without
finding anything.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Sep 14 20:47:07 2012

This archive was generated by hypermail 2.1.8 : 2012-09-14 20:47:11 CEST