Re: [cc65] Directory/Drive functions

Date view Thread view Subject view

From: Tom Watt (tom_at_hostingmountain.com)
Date: 2003-06-04 16:23:54


> Be sure to use Uz's answer to the second question:
>
>         unsigned char drive = *(unsigned char*)0xBA;
>
> _before_ you use the CBM_ file-functions!
>
> I think that it won't work if you have any standard file-functions in your
> program.  Constructors open the stdin, stdout, and stderr files before
> main() is called; 0xBA will point to them instead of the disk-drive.

Couldn't you just make sure to read this very first thing before calling
any other file functions?
----------------------------------------------------------------------
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-04 16:23:16 CEST