From: Greg King (gngking_at_erols.com)
Date: 2003-06-04 14:16:52
From: Groepaz
Date: Monday, June 02, 2003, 05:56 PM
>
> I've written POSIX-like routines for the CBM machines.
> Someone on the list had made them work OK with the rest of the library
> AFAIK; maybe he can post them [don't remember if he did :=)].
He did -- on 2003-April-24.
The files are in:
http://mysite.verizon.net/vze4nxfk/pdirectory.tgz
That archive holds source-code for POSIX directory functions, for the CBM
targets. It has general header files for the functions.
And, it has a test program that will display the current directory.
--------------------------------------
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.
Uz, I suggest an addition to the start-up code:
Save the value of DEVNUM into _curunit. Then, before returning to BASIC's
READY-prompt, restore DEVNUM from _curunit.
----------------------------------------------------------------------
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-04 14:18:19 CEST