compile.bat 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. :Grammer
  11. set /P c=Compile Gramme?(Y/N)
  12. if /I "%c%" EQU "Y" (
  13. echo "Generating grammer2.5.inc"
  14. python ..\tools\jt.py jmptable.z80 grammer2.5.inc
  15. copy grammer2.5.inc ..\docs\grammer2.5.inc
  16. echo "Assembling App"
  17. ..\spasm.exe grammer.z80 ..\bin\grammer.8xk -I ..\z80float\single
  18. )
  19. if /I "%c%" EQU "N" goto :grampkg
  20. goto :Grammer
  21. :grampkg
  22. set /P c=Compile Default Package?(Y/N)
  23. if /I "%c%" EQU "Y" (
  24. echo "Assembling Default Package"
  25. ..\spasm.exe grampkg.z80 ..\bin\grampkg.8xv
  26. )
  27. if /I "%c%" EQU "N" goto :exppkg
  28. goto :grampkg
  29. rem Check for an experimental package
  30. if exist experimental\experimental.z80 (
  31. :exppkg
  32. set /P c=Compile Experimental Package?(Y/N)
  33. if /I "%c%" EQU "Y" (
  34. echo "Assembling Experimental Package"
  35. ..\spasm.exe experimental\experimental.z80 ..\bin\EXPRMNTL.8xv -I single
  36. )
  37. if /I "%c%" EQU "N" goto :proglaunch
  38. goto :exppkg
  39. )
  40. rem Check for the program launcher
  41. if exist launch.z80 (
  42. :proglaunch
  43. set /P c=Compile Program Launcher?(Y/N)
  44. if /I "%c%" EQU "Y" (
  45. echo "Assembling Program Launcher"
  46. ..\spasm.exe launch.z80 ..\bin\g250.8xp
  47. )
  48. if /I "%c%" EQU "N" goto :exit
  49. goto :proglaunch
  50. )
  51. :exit
  52. cd..