peteym5 Posted June 30, 2020 Report Posted June 30, 2020 https://github.com/peteym5/CC65_Mind_Field I have completed my first game in C Programming Language. I am doing this for my own learning experience and sharing what I learn with others. The game is simple as with the Pascal Version. The difference here is that I added an additional ML call to scan the screen around the character you control. The minds highlight in Blue. This is one of my reserved games and this version is being kept as open source. I have considerations of a more enhanced version that will have a vertical scrolling screen with obstacles, shells,moving tanks, and bunkers with enemies shooting from them. It will be sort off a mini "Ikiri Warriors" type game. RickR and TrekMD 2 Quote
RickR Posted June 30, 2020 Report Posted June 30, 2020 Cool! I didn't know there was a C compiler for Atari 8-bit. I'll have to check that out. Thank you for sharing. Quote
peteym5 Posted March 14, 2021 Author Report Posted March 14, 2021 I am in the process of porting other games over to CC65 from Turbo Basic, Fast Basic, Basic XE. Something I did many older games is that I have many USR calls to machine language routins. Either copied from Compute! magazine or later I made some custom ML routines myself. One major difference is C ML calls do not use the 6502 stack like Basic does and it took me some time to figure it out going through pages and forum posts. CC65 puts values onto its own stack labels "sp". In Basic you Pull arguments passed to the ML from Basic like this.... PLA ;# of parameters, not needed in Fast Basic PLA PLA STA arg01 PLA STA arg02 in CC65 it needs to be something like this LDY #2 LDA (sp),y STA arg01 LDY #0 LDA (sp),y STA arg00 LDA sp CLC ADC #4 STA sp LDA sp+1 ADC #0 STA sp+1 Quote
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.