Fabrizio Caruso Posted September 9, 2017 Share Posted September 9, 2017 (edited) I am trying to write an ATARI 5200 version of my cross-system 8 bit game:https://github.com/Fabrizio-Caruso/ASCII-CHASE (which already supports most 8 bit Z80 and 6502-based computers)I have managed to compile my code with CC65 for the Atari 5200 target by using conio. (I was wrongly using keyboard input on a keyboardless console...). My problem now is:- how to use the binary created by CC65? Can I use it as it is? Which extension should I use? Should I use it as a cartridge? - how to set up the emulator? Which rom? Atari800Win with the 5200 rom goes straight to the debugger when started. Edited September 10, 2017 by Fabrizio Caruso Quote Link to comment Share on other sites More sharing options...
ilmenit Posted September 10, 2017 Share Posted September 10, 2017 Hi, While I cannot help with 5200 target I may provide another hint - do not use structs nor pointers when you do programming for 6502 in C for example here https://github.com/Fabrizio-Caruso/ASCII-CHASE/blob/master/character.h 6502 processor cannot work effectively with such constructs and it will lead to code size bloat and performance drop. Instead of pointers use just indexes like this e.g. http://www.cc65.org/mailarchive/2010-09/8593.html. Pointer would make sense only for dynamically allocated memory and it should be totally avoided on this platform Also highly recommended is not to use recursion in the code so in CC65 you can use -Cl (Make local variables static) - it's a big performance boost. If you are interested in sources of CC65 games here is one I created: http://atariage.com/forums/topic/241598-the-hunt-from-abbuc-2013-cc65-source-code/ Quote Link to comment Share on other sites More sharing options...
sanny Posted September 11, 2017 Share Posted September 11, 2017 Fabrizio already got answers on the cc65 ML, but again here for the others: - the output of cc65 is a cartridge ROM image (see http://cc65.github.io/doc/atari5200.html#s2) - Emulator should be in "5200" mode, and the cartridge image type should be "One chip 16 KB 5200 cartridge". 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.