Posts

Showing posts with the label c coding

Cross Compiled C code for Atari 800 XL

Image
So... I spent some time setting this up on a Windows 10 laptop environment, which involved downloading and installing cc65 and adding the /bin folder to the PATH - I'll get screenshots from that laptop and paste down below - the reason I mention this is because that setup did not have the cl65 executable that allows you to do the compile/link all in one go, you have to do it step by step, which isn't a major problem, but it is interesting to do & understand what is happening behind the scenes. In my UBuntu linux environment, all that I did was: $ sudo apt-get install cc65 Then I used snap to install atari800xl-linux This allowed me to have an emulator for the atari800xl locally. Once the cc65 (cc = cross compiler) is installed you can use it straight away. I used the code from this page as a quick example. As you can see below, the simple C code is located in it's own folder, I then used the cl65 command to make the output file, for the Atari800xl it is best to call th...

Retro Game Coders - code a game in C

Image
Whilst looking at setting up come C programming for the old Atari 800 XL (as you do!), I stumbled over this website that looked awesome and contains a nice snapshot of information. https://retrogamecoders.com/ Setup by a gentleman, bit like myself, who was doing some spring-cleaning during the covid-19 pandemic and re-kindled some of that old computer magic days from the 80/90s, back before it got boring, serious & out-sourced :-D Oh looksie - Atari ST Coding (looks familiar) What am I looking at on there?  Well....just using Altirra emulator and looking at using some C coding, although I might dip my toe into using CC65 and cross-compiling, so I can code on the PC machine and produce output to then deploy onto/into the Atari 800 XL..... let's see! https://retrogamecoders.com/learn-code-c-programming/ Coding, done properly (none of that Python stuff). Will probably end up documenting my journey of setting stuff up, how to get the environment working etc... who to write some si...