Re: [cc65] Directory functions

Date view Thread view Subject view

From: Tom Watt (tom_at_hostingmountain.com)
Date: 2003-06-02 23:20:46


I must be blind.  But don't see those in cbm.h.  I just downloaded 2.9.1. 
Downloaded both Win32 and c64 packages and extracted them in same place.

Thanks,

Tom

>
> 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.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-06-02 23:20:14 CEST