On 2013-01-10, at 21:42, Spiro Trikaliotis wrote: > The "problem" is how the C64 opens the file: > [...] > if the LISTEN was successfull, we will ALWAYS get a success (CLC) > on return from this routine, regardless if wheather the actual name > transfer is successfull or not. > > Note that this does not even take into account if he file could be > opened. In fact, the drive will only start to search for the file after > the UNLISTEN, that is, immediately before the return of the OPEN > routine. > > Also, as long as there were no severe transmission errors, READST will > also return 0. > > Thus, the only way to find out if the OPEN was successfull is to read > the error channel, or (much easier): read the first byte. If the OPEN > was not successfull, READST will return 0x42 (0x40 = EOF, 0x02 = time > out). Is this reliable? I mean - is the bit 1 (timeout) set also on 33, 62 (ENOENT) / 63 (EEXIST) / 64 / 70 / etc.? Or only on device not present? -- SD!---------------------------------------------------------------------- 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 Jan 11 03:20:54 2013
This archive was generated by hypermail 2.1.8 : 2013-01-11 03:20:58 CET