Jump to content
IGNORED

Basic problem with LynxSD Assembly programming


laoo

Recommended Posts

Yes, I've been working with this exact code. I compiled it by hand and it works without any problems on older LynxSD cartridge. On LynxGD opening file is fine, when I call LynxGD_ReadFile I manage to write the command and the count of bytes to read, but reading (probably) first byte hangs in loop waiting for non-zero AUDIN bit in IODAT. I've got LynxGD 1.04. So either it does not work at all or cc65 runtime is doing some required initialisations off stage. In that case ANY working example (although the simpler the better) of reading a file would be very helpful.

Edited by laoo
Link to comment
Share on other sites

  • 2 weeks later...

Sorry for the dalay, only now that I started my vacation I have some free time.

 

Attached there is a working example. In a zip there are the sources, in the other a compiled test rom with the data file to be put in a folder names Saves in the root of the SD. You can't create a new file but you can open and read/write an existing one.

 

 

testrom.zip testGD4.zip

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...