From: Tom Watt (tom_at_hostingmountain.com)
Date: 2003-06-02 22:49:27
AWESOME! Thanks, sorry for the dupe, didnt think it went the 1st time. > > On Mon, Jun 02, 2003 at 04:26:32PM -0400, Tom Watt wrote: >> Do functions currently exist in cc65 to do the following: >> >> Read the directory of a Commodore 1541, 1571 or 1581 disk and either >> return it to an array or return it some other way. > > Yes. See cbm_opendir, cbm_closedir and cbm_readdir in cbm.h. > >> Tell what drive # was used to load the program that which was just >> loaded. >> For example, if the cc65 compiled program was loaded with this command: >> >> LOAD"PROGRAM",10,1 >> >> The program would know it was loaded on device 10. > > Use > > unsigned char drive = *(unsigned char*) 0xBA; > > for this on the C64. > > Regards > > > Uz > > > -- > Ullrich von Bassewitz uz_at_musoftware.de > ---------------------------------------------------------------------- > To unsubscribe from the list send mail to majordomo_at_musoftware.de with > the string "unsubscribe cc65" in the body(!) of the mail. > ---------------------------------------------------------------------- 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 : 2003-06-02 22:48:47 CEST