Linux Format

Develop games for the CBM-64

Credit: https://skilldrick.github.io/easy6502

Last month, we looked at the 6502 assembly language and wrote a short program to sort numbers and run it on a web-based emulator. This time, the code will run on the Vice emulator, which is exactly like if you’re running it on a real CBM-64. To write programs for it, we have to do the following. 1. Write the 6502 source code. 2. Assemble it into a binary file. 3. Load the file into the Vice emulator and run it.

Writing 6502 code is easy enough [steady on now – ed] and you can use your favourite editor. For step two, though, we need a decent assembler and the one we’re using is xa65. You might find it easier if you edit the source files using VS Code. There are a few 6502 extensions for it, including assemblers and formatters. Enter 6502 in the extension box to see them. There’s also a VS65 debugger extension that works with Vice to let you visually debug it, but that wasn’t used here. For now, we’ll assemble the code from a terminal: $ dasm then xa65

Originally, this was written using the dasm (https://dasm-assembler.github.io) assembler. But after struggling with it for a few days, it turned out to have too many issues and the decision was made to switch over to xa65. Dasm had issues with label names and the final straw

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format3 min read
AMD Ryzen 5 8600G
Socket: AM5 Arch: Zen 4 (Phoenix) Process: TSMC 4nm FinFET Cores: 6 Threads: 12 Cache: 384KB L1, 6MB L2, 16MB L3 Speed: 4.3GHz (5.0GHz boost) Unlocked: Yes GPU: Radeon 760M GPU clock: 2.8GHz Compute: 8 units AI: Ryzen AI, 16 TOPS Display: Up to 4, DP
Linux Format1 min read
Kaki Pi
Another Pi-like SBPC appears! From Yuridenk-Shokai in Japan, this packs a Renesas RZ/V2H Coretex-A55/R8/M33 MPU with 80 TOPS of AI. It’s aimed at robotics and has four CSI video inputs along with a PCIe 3 connection. Find out more in Japanese: www.ka
Linux Format2 min read
Moosync
Version: 10.3.2 Web: https://moosync.app There’s no scarcity of music players for the Linux desktop, but what sets Moosync apart from its peers is its ability to seamlessly play local tracks and online music. Moosync offers both DEB and RPM precompil

Related