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 AOL.com. (http://www.aol.com/?optin=new-dp&icid=aolcom40vanity&ncid=emlcntaolcom00000002) ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de 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