42bs Posted December 7, 2021 Share Posted December 7, 2021 Hi is it possible to change the "ROM" (that is the active image) in the Lynx GD? My goal is not to have to swap SD card every 30s to try a new boot-intro. Quote Link to comment Share on other sites More sharing options...
laoo Posted December 7, 2021 Share Posted December 7, 2021 (edited) Yes. I'm doing this successfully in Unlit every scene. Edit: oh, I probably misunderstood your intention. You can load new rom content from file, but not change image and reboot or something Edited December 7, 2021 by laoo Quote Link to comment Share on other sites More sharing options...
42bs Posted December 7, 2021 Author Share Posted December 7, 2021 22 minutes ago, laoo said: Yes. I'm doing this successfully in Unlit every scene. Edit: oh, I probably misunderstood your intention. You can load new rom content from file, but not change image and reboot or something Yes, I wanted to write the "current" ROM. I guess the firmware moves the .LNX file from SD card to RAM and then reboots. Then the RAM is seen by the Lynx. So it would be nice to modify this RAM from code running on the Lynx. Quote Link to comment Share on other sites More sharing options...
laoo Posted December 7, 2021 Share Posted December 7, 2021 GD has API function ProgramROMFromFile that loads currently open file from actual position (seeks are cheap) to any continuous span of blocks in cartridge RAM - you specify start block, block count and block size. So I see some scenarios, but I guess that you are thinking about transferring data to Lynx program through ComLynx, writing data to a file, programming cartridge and jmp ($fffc). Should work Quote Link to comment Share on other sites More sharing options...
42bs Posted December 7, 2021 Author Share Posted December 7, 2021 (edited) Cool, I give it a try. _But_ .. where do I find the API? RetroHQ site is a pain and has no link to it. Edited December 7, 2021 by 42bs Quote Link to comment Share on other sites More sharing options...
MichelS Posted December 7, 2021 Share Posted December 7, 2021 https://github.com/RetroHQ/LynxGDLib 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.