mic_, on Tue Jun 7, 2011 6:22 AM, said:
I've been looking at various sources, and from my understanding the whole 64kB physical memory space is seen as RAM, except for the top 1kB which by default contains the system ROM, MMIO, etc. So to make use of the code/data on your cart I guess you'll first have to load it into RAM through the RCART registers(?).
That's fine I suppose, but I don't see how my code in an .LNX files actually starts running at boot. When I look at a disassembled system ROM (lynxboot.img) I only see it loading 50 bytes from the cart to $AA-$DB, and when I take a look at what those 50 bytes actually are in e.g. Lynxopoly they don't seem to contain anything meaningful (unless the data is encrypted).
Well, as you guessed, its encrypted.
the lynx ROM diencrypts that part which then load teh cartridge, actually, its not 50 bytes but more like or
154 or 256, depending on teh loader type.
mic_, on Tue Jun 7, 2011 6:22 AM, said:
Is there any info available on this subject? I.e. what part of an .LNX file is first executed, from what address is it executed, and how has the hardware been set up at that point?
yes, quiet a lot. but its too complicated to be put in a few sentences.
the decrypted loader code (supplied by epxy) loads the first two files of the directory, the first is diplayed as title picture, the second executed.
Thats the reason you need a directory builder to craete a ROM image (lynxer for BLL kit, or similar thing for EPYX tools).
Everything from this directory on is not encrypted ... at least if the game programmes didnt do by themself... lynxopoly is party packed... well not encrypted