Re: [cc65] Lynx target

Date view Thread view Subject view

From: Groepaz (
Date: 2003-04-28 18:37:28

On Monday 28 April 2003 18:16, karri wrote:

> The Atari Lynx has a slightly different problem. It uses a ROM instead of
> a disk-drive. That means that a ramdisk does not make sense. 

no, but a romdisk can still be done (and is even useful sometimes, for storing 
gfx and sound data for example)

> The only
> writable element is a 1024 bit EEPROM that is used for high-scores in
> some games.
> I tried to browse through the current documents and found something called
> dio_read that makes a raw disk read. The Lynx has hard-coded sectors that
> can be 512, 1024 or 2048 bytes. The way you read the data is to give the
> sector number and then you read X bytes out of a fixed memory address.
> It will then increment the ROM pointer with one during every read.
> What would be the natural function to implement this in a cc65
> environment?
> If you read more than 512 bytes from a cart that has 512 byte sectors
> then it wraps around and you get the same bytes twice.

i would suggest a filesystem (ramdisc)... all the machine dependend stuff you 
describe should be hidden by it, else there is no way to make a somewhat 
portable interface (the cbm dio_read etc stuff isnt portable either, and you 
wouldnt use those routines unless what you want to do can not be done with 
posix file i/o).

To unsubscribe from the list send mail to 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 18:41:19 CEST