Harry Potter Posted January 2, 2022 Share Posted January 2, 2022 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 Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted January 2, 2022 Share Posted January 2, 2022 (edited) 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 January 2, 2022 by Wrathchild Spelling Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted January 3, 2022 Share Posted January 3, 2022 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 Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted January 6, 2022 Author Share Posted January 6, 2022 I just found the error: I was emulating the wrong system. The program requires a 1200XL, and I was emulating a 150XL. Silly me! Quote Link to comment Share on other sites More sharing options...
ivop Posted January 6, 2022 Share Posted January 6, 2022 Yeah, those darn 150XL computers. 1 2 Quote Link to comment Share on other sites More sharing options...
+DjayBee Posted January 6, 2022 Share Posted January 6, 2022 (edited) Yep, those 20 kB of additional zeropage memory do overlap with the banking latches of the extmem buffer switch. I never got them to work reliably. Edited January 6, 2022 by DjayBee 6 Quote Link to comment Share on other sites More sharing options...
Irgendwer Posted January 6, 2022 Share Posted January 6, 2022 (edited) 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 January 6, 2022 by Irgendwer 3 Quote Link to comment Share on other sites More sharing options...
sanny Posted January 6, 2022 Share Posted January 6, 2022 I've sold my 150XL years ago. Still regretting it.... 3 Quote Link to comment Share on other sites More sharing options...
_The Doctor__ Posted January 7, 2022 Share Posted January 7, 2022 I am lost, I can't figure out what machine a 150 XL is... did he mean a 1450? Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted January 7, 2022 Share Posted January 7, 2022 I must update Altirra to try this new 150XL 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.