From aeab8b6a2565c9ec25142f75bcc8860f175b3431 Mon Sep 17 00:00:00 2001 From: Bjorn Einar Bjarntes Date: Fri, 17 Dec 2021 21:22:15 +0100 Subject: [PATCH] install instructions --- hello.c | 6 ++++++ readme.md | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 hello.c diff --git a/hello.c b/hello.c new file mode 100644 index 0000000..d2ca4f8 --- /dev/null +++ b/hello.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + printf("Hello ant"); + return 0; +} \ No newline at end of file diff --git a/readme.md b/readme.md index c858be4..929e9bf 100644 --- a/readme.md +++ b/readme.md @@ -2,6 +2,11 @@ A port of https://github.com/bjartwolf/ant to the high level language c # Getting started +Install Vice emulator +In PowerShell on Windows, as... The GUI does not work in WSL2 yet. +```powershell +choco install winvice +``` Install cc65 in WSL2 https://cc65.github.io/doc/intro.html @@ -10,5 +15,14 @@ https://cc65.github.io/doc/intro.html sudo apt-get install cc65 ``` +Open in VS Code and install recommended extension. -Not sure if I had a typo in my header or I have to import sudo apt-get install clang \ No newline at end of file + +Not sure if I had a typo in my header or I have to import sudo apt-get install clang + +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 +``` +to run hello world \ No newline at end of file