Skip to content

Commit 74e51c3

Browse files
committed
Committed initial files
1 parent d177726 commit 74e51c3

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bin

.vscode/tasks.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"label": "Build",
3+
"type": "shell",
4+
"command": "./build ${file}",
5+
"group": {
6+
"kind": "build",
7+
"isDefault": true
8+
}
9+
}

build

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

build.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

example.bas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
PRINT "Compile was successful!"
2+
3+
' Wait until key press before ending
4+
GET K

0 commit comments

Comments
 (0)