-
Notifications
You must be signed in to change notification settings - Fork 0
/
!compile.cmd
49 lines (35 loc) · 1.31 KB
/
!compile.cmd
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
39
40
41
42
43
44
45
46
47
48
49
@echo off
if exist desolcod0.bin del desolcod0.bin
if exist desolcod0.exp del desolcod0.exp
if exist desolcode.bin del desolcode.bin
if exist desolcode.exp del desolcode.exp
if exist desolcode.zx0 del desolcode.zx0
if exist desolate.bin del desolate.bin
if exist DESOLAT$.ORD del DESOLAT$.ORD
rem Define ESCchar to use in ANSI escape sequences
rem https://stackoverflow.com/questions/2048509/how-to-echo-with-different-colors-in-the-windows-command-line
for /F "delims=#" %%E in ('"prompt #$E# & for %%E in (1) do rem"') do set "ESCchar=%%E"
@echo on
tools\pasmo --w8080 desolcod0.asm desolcod0.bin desolcod0.exp
@if errorlevel 1 goto Failed
@echo off
dir /-c desolcod0.bin|findstr /R /C:"desolcod0.bin"
@echo on
tools\pasmo --w8080 desolcoda.asm desolcode.bin desolcode.exp
@if errorlevel 1 goto Failed
@echo off
findstr /B "Desolate" desolcode.exp
dir /-c desolcode.bin|findstr /R /C:"desolcode.bin"
tools\salvador.exe -classic desolcode.bin desolcode.zx0
dir /-c desolcode.zx0|findstr /R /C:"desolcode.zx0"
copy /b desolcod0.bin+desolcode.zx0 desolate.bin >nul
dir /-c desolate.bin|findstr /R /C:"desolate.bin"
powershell ".\make-ord.ps1"
@if errorlevel 1 goto Failed
dir /-c DESOLAT$.ORD|findstr /R /C:"DESOLAT$.ORD"
echo %ESCchar%[92mSUCCESS%ESCchar%[0m
exit
:Failed
@echo off
echo %ESCchar%[91mFAILED%ESCchar%[0m
exit /b