-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcrank.bat
45 lines (32 loc) · 901 Bytes
/
crank.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
39
40
41
42
43
44
45
@echo off
set /A ERR = 0
PNut_v48 Spin2_debugger -c
set /A ERR = %ERR% + %ERRORLEVEL%
type error.txt
PNut_v48 Spin2_interpreter -c
set /A ERR = %ERR% + %ERRORLEVEL%
type error.txt
PNut_v48 flash_loader -c
set /A ERR = %ERR% + %ERRORLEVEL%
type error.txt
PNut_v48 clock_setter -c
set /A ERR = %ERR% + %ERRORLEVEL%
type error.txt
sbasic Spin2_INCLUDE_debugger.bas
set /A ERR = %ERR% + %ERRORLEVEL%
sbasic Spin2_INCLUDE_interpreter.bas
set /A ERR = %ERR% + %ERRORLEVEL%
sbasic Spin2_INCLUDE_flash_loader.bas
set /A ERR = %ERR% + %ERRORLEVEL%
sbasic Spin2_INCLUDE_clock_setter.bas
set /A ERR = %ERR% + %ERRORLEVEL%
tasm32 p2com /m /l /z /c
set /A ERR = %ERR% + %ERRORLEVEL%
SET DELPHILIB="C:\Program Files (x86)\Borland\Delphi6\Lib"
DCC32 -B -O+ -R%DELPHILIB% PNut.dpr
set /A ERR = %ERR% + %ERRORLEVEL%
if %ERR% NEQ 0 (
set /P input="ERROR: Press enter to continue: "
) else (
PNut
)