From: Christian Groessler (cpg_at_aladdin.de)
Date: 2002-05-24 00:00:16
Hi, On 05/18/2002 11:00:43 PM ZE2 Christian Groessler wrote: > >Now I'm kinda stuck. I need a way to find out the DOS format >(Sparta/non-Sparta) of a file at runtime. Ok, I found out. Function #39 (Get File Size) only works on SpartaDOS disks and returns "unknown command" on other disks. I've checked in an updated version of lseek.s, anyone interested should grab the nightly snapshot and try it out. I also added a small test program testcode/lib/seek.c. Btw, I found SpartaDOS-X documentation on http://www.celebritybase.net/atari8/SpartaDOSXManual Hmm, now that I look at it again, I think function #47 (Get Disk Information) could be a better candidate to check whether the seek function will work than #39. What do arbitarty DOSes do when they get a function call to #39 or #47? regards, chris ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-05-24 00:00:11 CEST