Re: [cc65] C64 - how to use disk I/O?

From: <>
Date: 2008-11-29 20:25:27
Try reading a byte at a time using cbm_read() and ending the read when  
cbm_read() returns 0.  Or, use cbm_read to read the maximum number of bytes  
readable and use the returned value to state the size of used memory.  CBM  drives 
don't record the exact size of a file.  Instead, they record the  number of 
sectors that a file uses.  That is 254 bytes per sector plus 2  bytes to either 
point to the next sector or record the number of bytes in the  last sector.
**************Life should be easier. So should your homepage. Try the NEW 

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Nov 29 20:25:43 2008

This archive was generated by hypermail 2.1.8 : 2008-11-29 20:25:45 CET