Jump to content
IGNORED

cc65 config file for AtariXL: possible data corruption?


Recommended Posts

Hi!  I am porting my MadLibAtari program to use my cc65/Atari memory enhancer and am running into some problems.  First, after loading aux memory, my AtaSimpleIO library's printu() function stops working.  It prints an unsigned number.  printf()'s int support doesn't work, either.  Second, I added error-checking code to the aux memory read function and get an error message but, since printu() stopped working, no number.  Third, when I had the read function working a little better, it wrote its output to the screen starting at Row 0, Column 8.  I suspect memory corruption.  I attached the .cfg file and the aux memory-loading code and can attach my ciov() library as I have it so far.

atarixl_memx.cfg readauxfile.c

Link to comment
Share on other sites

Serious case of deja-vu.

 

Build a binary with its label file so others can debug, even if it doesn't work.

 

Where are your specs?

What do you expect to happen with regard to i/o and targetted memory areas during the load phase(s), what happens with then during runtime?

 

Edited by Wrathchild
Spelling
Link to comment
Share on other sites

I know I've said it before, but it will help others if you use where possible system equates/values,

it really make the code more readable, for instance in the readauxfile.c you have if(i==136)...

so I had to look up what 136 was for an error code, so it would have been easier if your code read if(i==EOF)...

so much more obvious.

 

All it needs if another #include and maybe some of the include you already have may have them defined

Link to comment
Share on other sites

Exchanging the Ingot power supply and the µT-RAMs, removing the caps in the SIO lines and reseating all chips in sockets will likely lead to a stable machine.

While the computer is opened, you could put a SD-card under the board to get e.g. 2GB of additional hidden memory in your XL!

Edited by Irgendwer
  • Haha 3
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...