forked from Zeda/Grammer2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.bat
38 lines (28 loc) · 989 Bytes
/
compile.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
if exist spasm.exe (
echo "Starting Compile..."
md bin
) else (
echo "Opening readme..."
start "" https://github.com/Zeda/Grammer2/blob/master/Readme.md
exit
)
cd src
rem Generates the jumptable and grammer2.5.inc file together.
echo "Generating grammer2.5.inc"
python ..\tools\jt.py jmptable.z80 grammer2.5.inc
copy /Y grammer2.5.inc ..\docs\grammer2.5.inc
echo "Assembling App"
..\spasm.exe grammer.z80 ..\bin\grammer.8xk -I ..\z80float\single
rem If the second command line argument is -ca then compile everything else.
if "%1"=="a" (
echo "Assembling Default Package"
..\spasm.exe grampkg.z80 ..\bin\grampkg.8xv
rem Install experimental package
echo "Assembling Experimental Package"
..\spasm.exe experimental\experimental.z80 ..\bin\EXPRMNTL.8xv -I single
rem Install program launcher
echo "Assembling Program Launcher"
..\spasm.exe launch.z80 ..\bin\g250.8xp
)
cd..