My First C64/X16 Programs!
Posted: Mon Sep 21, 2020 4:55 am
54 minutes ago, geek504 said:
Yeah, I am having problems getting SharpNinja extension to work smoothly if at all... it's really old. I am now trying to setup Atom like Matt says below:
So I revert to Matt and ask... what's your setup like? Config files, workspace, hotkeys, build process, etc.
It's pretty dead simple, and pretty much how I have shown it in my videos.
For all my projects, I use Atom as my "IDE", because everything I do is hosted on GitHub and it provides really nice integration for that. I use the following "community" packages that are specifically for my development:
* file-types - This is how I set up specific rules for determining what syntax highlighting to use for different filename patterns by adding statements to the config.cson file.
* language-65asm - This provides syntax highlighting for multiple 6502 family assemblers, including ca65, which I use as the target file types in the config
* language-xci - My very own package for XCI source highlighting! It opened my eyes to just how easy it is to publish a community package, which is both exciting and terrifying
So, to set up the config, I added this to config.cson (accessible by going to Edit->Config...):
"file-types":
"*.asm": "source.assembly.6502.cc65-toolchain"
"*.inc": "source.assembly.6502.cc65-toolchain"
So, as you can see, I use *.asm because *.s just seems weird and wrong to me. To each their own!
I am running Linux, so the build environment is within the Bash shell and my projects use Bash build scripts, GNU makefiles, or both. I simply call all of these from a terminal window, usually with multiple tabs so that I can switch between different working directories and have separate histories where I do the same few commands over and over again. Generally, I'll have one in the directory where I build from, and another in the directory where the build is placed and I can then run it in the emulator.
I know some folks really want to have the workflow extremely streamlined so that the build is happening within the IDE, but I just prefer a dedicated terminal tab. You could totally create a button or hotkey within Atom that will call your build script or makefile and then launch the emulator with what was built, but that's not something I really feel the need to have. I'm a Linux/Unix person, and I like to use my terminals.