File tree Expand file tree Collapse file tree 5 files changed +46
-0
lines changed Expand file tree Collapse file tree 5 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ bin
Original file line number Diff line number Diff line change 1+ {
2+ "label" : " Build" ,
3+ "type" : " shell" ,
4+ "command" : " ./build ${file}" ,
5+ "group" : {
6+ "kind" : " build" ,
7+ "isDefault" : true
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ mkdir -p bin
2+ cd bin
3+ rm -f *.*
4+ cp $1 .
5+ filename=$(basename -- "$1")
6+ filename="${filename%.*}"
7+
8+ # Compile (TODO: CHANGE PATH TO FASTBASIC COMPILER)
9+ ~/Downloads/fastbasic-v4.6-macosx/fastbasic ./$filename.bas
10+
11+ # If compile was successful, restart emulator with file
12+ if [[ -f $filename.xex ]]
13+ then
14+ osascript -e 'quit app "Atari800MacX"'
15+ open -n -a Atari800macx --args $(pwd)/$filename.xex
16+ fi
Original file line number Diff line number Diff line change 1+ @ echo off
2+ if not exist bin mkdir bin
3+ cd bin
4+ del %~n1 .xex
5+ copy /y %1
6+
7+ REM Compile (TODO - CHANGE PATH TO COMPILER)
8+ C:\Projects\FastBasic\build\compiler\fastbasic.exe %~nx1
9+
10+ REM Check if compile was successful
11+ if not exist %~n1 .xex goto skip
12+
13+ REM Run on emulator (TODO - CHANGE PATH TO EMULATOR)
14+ C:\atari\Altirra\Altirra64.exe /singleinstance /run c:%~p1 \bin\%~n1 .xex
15+
16+ :skip
Original file line number Diff line number Diff line change 1+ PRINT " Compile was successful!"
2+
3+ ' Wait until key press before ending
4+ GET K
You can’t perform that action at this time.
0 commit comments