Re: [cc65] Lynx target

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-05-05 10:53:38


Hi!

On Sun, May 04, 2003 at 10:17:25AM -0700, Shawn Jefferson wrote:
> I guess for the sake of cross-platformness you may could get some kind of file-io working, though with a system that is so different from the others it may not make any sense.  You will need to functions to grab data from the cartridge in any medium size game.

Yes, maybe. But to write such a file system, one would need low level
functions to access the ROM (it is banked, correct?). And, since a file system
is quite some work, just having the low level functions would be something to
start with.

> Bastian warned us that some registers in the lynx *have* to be written lo byte first.  Might this be a problem if we've written large structures to address the internal hardware of the lynx (how does cc65 write to addresses?)

As far as I can say, writes to absolute addresses are usually done low/high.
But I cannot say if this is always the case (the optimizer may change the
order, indirect accesses may behave differently, ...), and I don't think it's
a good idea to guarantee this. So either we cannot have memory mapped structs,
or these structs cannot have word sized fields for registers where access
order matters. 

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-05-05 10:53:51 CEST