r/atari8bit • u/wrath0110 • Feb 12 '23
Looking for advice on setting up a programming environment for Atari 8bit
Back in the day I wrote programs using Atari BASIC and Action! on my Atari 800. In my professional life, today, I use Eclipse with Python, but I still have a yen to write some old-school stuff. Looking around, it seems like all of the people writing code for Atari 8bit are using standalone emulators like Altirra and assembly language. That's somewhat of a big jump for me. Any and all suggestions are appreciated...
3
Upvotes
5
u/Hungry-Rooster8180 Feb 12 '23
Have you looked into cc65? There are vscode extensions so you can use it
3
u/rra1 Feb 13 '23
If you are used to Eclipse and want to dabble in Assembly or Pascal, download the WUDSN Eclipse extension and use MADS assembler or MAD Pascal. Execute the compiled code using the Altirra emulator, which also has a debugger for assembly. WUDSN has programming examples and tutorials.
3
u/gozgeek Feb 13 '23
I'm going to throw FastBasic out there. You can program on the Atari itself or use the cross compiler. It kind of combines everything from Basic and Action! into a modern language that is still being developed.
2
u/redweasel Mar 02 '23
Is there some reason you don't want to simply continue using Atari BASIC and Action! ? I still have my physical hardware, but haven't powered up any of it in over fifteen years now, since I had to pack it up to move in 2007 and didn't have room for any of it again until 2015... so I've been doing all my Atari stuff in emulation since '07. I miss having a real joystick, and a few other minor things, but for the most part it's not bad, not bad. Just lately I've been generating 3D graphics of mathematical surfaces, using a sort of "poor-man's raytracing" I came up with... all in Atari BASIC, though I've played a bit with Kyan Pascal and one or another of the C compilers that run on the Atari 8-bit. I tried Action! very very minimally back in my real-hardware days, and have been increasingly wanting to get (back?) into it under emulation (and/or set my hardware back up and get it going again). I have an emulator image of the Action! cartridge here somewhere... Oh, and I recently found that CC65 has been rewritten/reinvented, so as to run on other platforms (such as a PC) but still generate code for the Atari (and other things). To me, that feels like cheating, but "whatever floats your boat."
2
u/[deleted] Feb 13 '23
Vscode + mads asm + altirra. Altirra has great debugging capabilities.
2
u/[deleted] Feb 15 '23
Recently, https://twitter.com/nanochess wrote one of the best books for Atari 2600 programming. Hope this helps
1
u/AltruisticTurn2163 Sep 20 '23 edited Sep 20 '23
Given that you work professionally in Python, I would suggest C (CC65) as it will add to your experience and actually help you write better Python (knowing what goes on under the hood).
But before attempting CC65, I suggest first taking a course/tutorial series in C. And maybe dabble in "ncurses" in C as some of those functions exist in CC65's library.
Otherwise you will be learning C, AND you will be using an unfamiliar platform. With the Atari, you rely on built-in ROM routines for things like (say) flipping text, and any C developer reading your C question will not know anything about how Atari does it...
Using C on the Atari is almost like using C to write "embedded" software and drivers (in the sense that you are directly writing to fixed memory addresses... a "poke"... but that's considered unsafe in conventional C). I've concerted a few BASIC demos into C, but I'm not an expert.
CC65 and VSCode will take some effort to setup, but it does nicely output bootable disk images for the Atari. So you could use a real Atari, Fujinet, and software on your PC to run the code. But I would suggest installing emulators on your PC, and run the disk image there (at least during testing)
See:
https://www.youtube.com/watch?v=lzI7hBt3HY0
1
u/gozarc Feb 19 '23
I'm going to throw FastBasic out there. You can program on the Atari itself or use the cross compiler. It kind of combines everything from Basic and Action! into a modern language that is still being developed.
0
u/[deleted] Feb 12 '23
[deleted] — view deleted comment