compile.bat 985 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @echo off
  2. if exist spasm.exe (
  3. echo "Starting Compile..."
  4. ) else (
  5. echo "Opening readme..."
  6. start "" https://github.com/Zeda/Grammer2/blob/master/Readme.md
  7. exit
  8. )
  9. cd src
  10. rem Generates the jumptable and grammer2.5.inc file together.
  11. echo "Generating grammer2.5.inc"
  12. python ..\tools\jt.py jmptable.z80 grammer2.5.inc
  13. copy /Y grammer2.5.inc ..\docs\grammer2.5.inc
  14. echo "Assembling App"
  15. ..\spasm.exe grammer.z80 ..\bin\grammer.8xk -I ..\z80float\single
  16. rem If the second command line argument is -ca then compile everything else.
  17. if "%1"=="-ca" (
  18. echo "Assembling Default Package"
  19. ..\spasm.exe grampkg.z80 ..\bin\grampkg.8xv
  20. rem Install experimental package
  21. echo "Assembling Experimental Package"
  22. ..\spasm.exe experimental\experimental.z80 ..\bin\EXPRMNTL.8xv -I single
  23. rem Install program launcher
  24. echo "Assembling Program Launcher"
  25. ..\spasm.exe launch.z80 ..\bin\g250.8xp
  26. )
  27. cd..