Re: Re: [cc65] Strange problem

Date view Thread view Subject view

From: Shawn Jefferson (
Date: 2002-07-18 21:23:02

>>Well, actually I'm talking about the fseek/ftell/fread/fwrite functions.
>The C function fopen gets reduced to the assembly function open.s, for
>example.  I should know cause I'm adding filesystem support :)
>The other functions should reduce to read.s and open.s.
>There are simple C wrappers to these assembly functions to make them
>the C functions, ie fopen() would call read.

You're right about fopen/fread/fwrite... I was thinking of the ftell/fseek which calls lseek.s I think. That code isn't in the release 2.8.0 because Christian just wrote it.

But, I found my problem.  I've read that antic can deal with having the JVB (jump vertical blank) instruction wrong in the display list, and it does, but doing file i/o must make it "forget" the beginning of the display list.  Thus the behavior I saw.

It was an off-by-one array index error in my code!

Thanks for the suggestion to use the debugger!  Found my bug in less than a minute!

To unsubscribe from the list send mail to 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-07-18 21:23:18 CEST