my c=64 files and code
This repo contains code and files I'm working on for the Commodore 64.
Files here will complement my Youtube channel (Not a Wizard).
It's totally free and is my favourite thing ever by Microsoft. Slightly ahead of the Microsoft Mouse.
It's available for Windows, Mac, and Linux. And there's even a web version if you don't want to download it or just want to have a play before you download.
https://marketplace.visualstudio.com/items?itemName=viza.xcbasiclanguagevscodeext
I used to use "Commodore 64 BASIC v2" by gverduci, but he made a bunch of changes that changed and broke the default behaviour. I think he fixed them based on my bug reports but while he was doing that I found XC-BASIC. Now XC is designed to work with the XC cross compiler. But you can ignore the cross compiler stuff and just use it for syntax highlighting.
Upside: XC BASIC works on .bas files, BASICv2 only works on .prg files, which doesn't make sense to me because those are the tokenised files you run in your emulator, not plaintext code files.
But if you're happy with that quirk, both are good.
If you want to do assembly coding for your c64, then KickAssembler kicks arse. I don't endorse kicking asses because donkeys are very nice animals.
http://theweb.dk/KickAssembler
https://marketplace.visualstudio.com/items?itemName=CaptainJiNX.kickass-c64
Bacchus/FLT has a video about setting up a c64 assembler environment. He uses Paul Hocker's VSCode extension, where I prefer CaptainJiNX's version, but they'll get you the same result.
Guess I should include this. Might be important.
https://vice-emu.sourceforge.io/
You could use any emulator, but VICE is recommended because it comes bundled with some very very useful command line tools.
They include petcat
to convert plaintext code to tokenised code and vice versa, and c1541
which lets you work on d64 files (disk images).
Non-tokenised code is useful so you can edit it in VSCode.
Tokenised code is effectively a PRG file you can run in your emulator.
I have videos both conversions:
-
How to convert c64 source code to plain text on a modern computer
-
How to convert plaintext c64 BASIC source to a running program
It's possible to set up the VSCode shortcut keys to do your compiling and running, but I'm command line guy.
I use Ctrl-` to bring up a terminal below the code window, and that's where I run petcat
to do my conversion and run x64sc to run the PRG file immediately.
Works for me. Others will have tutes online on how to configure shortcut keys and how to fire up your PRG file in a debugger instead, but I haven't got time for that.
I need coffee.
Hope that's been helpful and I welcome you to the club of allegedly masochistic retro fantatics who play with 40 year old technology for fun! :D
- C64 Wiki
- Memory Map
- Kernal functions - built-in kernal system functions you can call from your asm programs
- Bombjack Commodore Archive - massive archive of software, books, & mags
- Commodore 64 Programmers Reference Guide, by Commodore Business Machines
- Machine Language for the Commodore 64 and other Commodore Computers, by Jim Butterfield
- Spritemate - web based sprite editor
- PETSCII Editor - web based character/screen/sprite editor
- VChar64 - char editor, Linux/Win/Mac
- Turbo Assembler 5.2/FLT - Bacchus/FLT version of TurboAssembler 5.2 (
SYS 9*4096
to start)
- LOADSTAR BASIC tools - mutiple BASIC tools collected from LOADSTAR magazine