Harry Potter Posted June 12, 2023 Share Posted June 12, 2023 Hi! I know that cc65 has a module in its Atari libraries that checks a system for compatibility and, if not, displays a very long message. I've had experience with this, as it happened to me once. Now, the cc65 Atari docs say that this can be disabled, but I wasn't able to disable this check. At the very least, I want to shorten the message, or I could simply replace the code with an rts. What module in the source code contains the check code? Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted June 12, 2023 Share Posted June 12, 2023 Are you incapable of understand the cc65 suite? Even if I was as stuck as you I would step debug and look for related code, or maybe even examine a generated map file for clues. Pretty sure you asked thus in other thread, so what else have you exhausted so far? Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted June 14, 2023 Author Share Posted June 14, 2023 I have grepWin, can look in the cfgs for the name of the segment containing the sys check code and then can look for the files in cc65's source code for occurrences of the word. I'm sorry for asting your time. Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted June 14, 2023 Author Share Posted June 14, 2023 Good news: I just found the file. Then I thought of a way to exclude the system check code: simply disable the memory areas and segments containing the code and the symbol __SYSTEM_CHECK__ in the cfg files. I think it's usually safe to do this, as most cc65 programs start directly from DOS and don't require the extra checks provided the user runs it on a compatible system. What do you think? Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted June 14, 2023 Author Share Posted June 14, 2023 More good news: I just decreased the size of AdvSkelVic65's Atari8 disk-based port from 2.26k to 2.01k! Should I post the new config here? It's not all that difficult to change. Quote Link to comment Share on other sites More sharing options...
sanny Posted June 14, 2023 Share Posted June 14, 2023 5 hours ago, Harry Potter said: Good news: I just found the file. Then I thought of a way to exclude the system check code: simply disable the memory areas and segments containing the code and the symbol __SYSTEM_CHECK__ in the cfg files. I think it's usually safe to do this, as most cc65 programs start directly from DOS and don't require the extra checks provided the user runs it on a compatible system. What do you think? Well, why didn't you read the docs and performed this dance? "Iff the user runs it on a compatible system". That's exactly the reason for the sys check module! And are you aware that it consumes exactly zero bytes of runtime memory? I see no gain in making in smaller (e.g. shorter text). 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.