2021-12-17 20:46:23 +01:00
|
|
|
A port of https://github.com/bjartwolf/ant to the high level language c
|
|
|
|
|
|
|
|
# Getting started
|
|
|
|
|
2021-12-17 21:22:15 +01:00
|
|
|
Install Vice emulator
|
|
|
|
In PowerShell on Windows, as... The GUI does not work in WSL2 yet.
|
|
|
|
```powershell
|
|
|
|
choco install winvice
|
|
|
|
```
|
2021-12-17 20:46:23 +01:00
|
|
|
Install cc65 in WSL2
|
|
|
|
|
|
|
|
https://cc65.github.io/doc/intro.html
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt-get install cc65
|
|
|
|
```
|
|
|
|
|
2021-12-17 21:22:15 +01:00
|
|
|
Open in VS Code and install recommended extension.
|
|
|
|
|
2021-12-18 09:17:28 +01:00
|
|
|
Probably need powershell...
|
|
|
|
https://docs.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.2
|
2021-12-17 21:22:15 +01:00
|
|
|
|
|
|
|
Not sure if I had a typo in my header or I have to import sudo apt-get install clang
|
2021-12-17 20:46:23 +01:00
|
|
|
|
2021-12-17 21:22:15 +01:00
|
|
|
I added "C:\ProgramData\chocolatey\lib\winvice\tools\WinVICE-3.1-x64" to the path on windows, then I could run
|
|
|
|
```
|
|
|
|
cl65 hello.c -o hello.prg
|
|
|
|
x64.exe hello.prg
|
|
|
|
```
|
2021-12-18 11:14:37 +01:00
|
|
|
to run hello world
|
|
|
|
|
|
|
|
|
|
|
|
Useful https://sta.c64.org/cbm64mem.html
|
|
|
|
|
2021-12-18 14:16:34 +01:00
|
|
|
Using template from, but gave up on it
|
|
|
|
|
2021-12-18 11:14:37 +01:00
|
|
|
https://github.com/empathicqubit/vscode-cc65-debugger/tree/master/src/__tests__/c-project-template
|