https://github.com/andymccall/commander-x16-development
Coding examples in 6502 assembler and C for the Commander X16 neoretro computer
https://github.com/andymccall/commander-x16-development
6502 6502-assembly assembler c commander-x16 commanderx16 retrocomputing
Last synced: 4 months ago
JSON representation
Coding examples in 6502 assembler and C for the Commander X16 neoretro computer
- Host: GitHub
- URL: https://github.com/andymccall/commander-x16-development
- Owner: andymccall
- Created: 2024-06-06T15:58:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-10T14:56:59.000Z (about 1 year ago)
- Last Synced: 2025-09-14T07:02:00.471Z (9 months ago)
- Topics: 6502, 6502-assembly, assembler, c, commander-x16, commanderx16, retrocomputing
- Language: Assembly
- Homepage: https://andymccall.co.uk/
- Size: 86.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### VSCode Configuration
Ensure the Commander X16 headers are incldued in the includePath:
### Install VSCode
Install the following Extensions
https://marketplace.visualstudio.com/items?itemName=ms-vscode.makefile-tools
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-extension-pack
### Install cc65
```
username@host:~$ cd ~
username@host:~$ mkdir development
username@host:~$ cd development
username@host:~$ git clone git@github.com:cc65/cc65.git
username@host:~$ make
username@host:~$ make install PREFIX=~/development/tools/cc65
```
Add cc65 bin to the path and add CC65_HOME environment variable:
```
username@host:~$ vi ~/.profile
```
Add the following at the bottom of the file:
```
# set PATH so it includes cc65 if it exists
if [ -d "$HOME/development/tools/cc65/bin" ] ; then
PATH="$HOME/development/tools/cc65/bin:$PATH"
fi
# Add CC65_HOME
if [ -d "$HOME/development/tools/cc65/share/cc65" ] ; then
CC65_HOME=$HOME/development/tools/cc65/share/cc65
fi
```
Test:
```
username@host:~$ source ~/.profile
username@host:~$ cc65 --version
cc65 V2.19 - Git 0541b65aa
```
### Install X16 Emulator
https://github.com/X16Community/x16-emulator/releases/
Download the latest release.
```
username@host:~$ wget https://github.com/X16Community/x16-emulator/releases/download/r48/x16emu_linux-x86_64-r48.zip
username@host:~$ unzip x16emu_linux-x86_64-r48.zip -d ~/development/tools/x16emu
```
Add the emulator to path:
```
username@host:~$ vi ~/.profile
```
Add the following at the bottom of the file:
```
# set PATH so it includes x16emu if it exists
if [ -d "$HOME/development/tools/x16emu" ] ; then
PATH="$HOME/development/tools/x16emu:$PATH"
fi
```
Test:
```
username@host:~$ source ~/.profile
username@host:~$ x16emu
```