langtoncant/readme.md

54 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2021-12-18 14:31:51 +01:00
A work in progress port of https://github.com/bjartwolf/ant to the high level language c
This lets me run with CTRL+SHIFT+P, but I have given up any smoother workflows with debuggers for now...
![image](https://user-images.githubusercontent.com/88324093/146642839-ee385473-0e2e-40fc-993f-e62c057d0eb8.png)
2021-12-17 20:46:23 +01:00
# Getting started
2021-12-18 14:23:28 +01:00
I have set this up with WSL2 and then running latest nightly Vice in Windows.
I build and run with build tasks, gave up on make files.
2021-12-17 21:22:15 +01:00
Install Vice emulator
```powershell
2021-12-18 14:17:47 +01:00
choco install --version 3.5.2021010401 winvice-nightly
2021-12-17 21:22:15 +01:00
```
2021-12-17 20:46:23 +01:00
2021-12-18 14:23:28 +01:00
#Install cc65 in WSL2
2021-12-17 20:46:23 +01:00
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 14:23:28 +01:00
Maybe need powershell... I installed in WSL2.
2021-12-18 09:17:28 +01:00
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-18 14:23:28 +01:00
I added "C:\ProgramData\chocolatey\lib\winvice-nightly\tools\GTK3VICE-3.5-win64\bin" to the path on windows, then I could run
2021-12-17 21:22:15 +01:00
```
cl65 hello.c -o hello.prg
2021-12-18 14:23:28 +01:00
x64sc.exe hello.prg
2021-12-17 21:22:15 +01:00
```
2021-12-18 14:23:28 +01:00
to run hello world.
In this project I use Run task (Ctrl+Shift+P) and the task called build and run.
2021-12-18 11:14:37 +01:00
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 14:31:51 +01:00
https://github.com/empathicqubit/vscode-cc65-debugger/tree/master/src/__tests__/c-project-template
2021-12-18 16:29:56 +01:00
https://archive.org/details/The_Graphics_Book_for_the_Commodore_64/page/n25/mode/2up
2021-12-18 21:00:31 +01:00
http://www.appleoldies.ca/cc65/docs/shr/shrworld.pd
https://archive.org/details/The_Graphics_Book_for_the_Commodore_64/page/n59