Re: [cc65] Lynx target

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-04-28 13:51:55


Hi!

On Mon, Apr 28, 2003 at 01:42:39PM +0200, Groepaz wrote:
> i would prefer to have it changed (the current implementation can not handle
> more than just one connected drive either, right?)

It can. Just change _curunit before opening a file.

> ... shouldnt be a lot of work either.....

I think it is. read(), write() and friends will have to adjust their work
depending on the output device, which in turn means you need "real" drivers,
with function vectors, the handle must encode the driver, and so on.
Currently, the POSIX functions are machine dependent, which means that the
changes have to go into all the existing sources. Doesn't sound like an easy
task for me...

> if that "ram/rom filesystem" had to hook itself into the
> kernal calls it would drastically reduce the chance of making it portable
> across platforms :/

Hmmm. How about implementing a RAM disk via a driver, and add another
(platform dependent) module that links the first one into the CBM kernal
calls?

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.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-04-28 13:52:02 CEST