-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_nsfe.bat
37 lines (31 loc) · 848 Bytes
/
build_nsfe.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
REM remove temporary stuff
del out_build\nsfe.o
del out_build\ramp.o
del out_build\zensf.nsfe
del out_build\zensf.nsfe.dbg
del out_build\zensf.nsfe.map.txt
REM build ramp.s
cc65\bin\ca65 ramp.s -o out_build\ramp.o -g
@IF ERRORLEVEL 1 GOTO badbuild
REM build nsf.s
cc65\bin\ca65 nsf.s -o out_build\nsf.o -g
@IF ERRORLEVEL 1 GOTO badbuild
REM build nsfe.s
cc65\bin\ca65 nsfe.s -o out_build\nsfe.o -g
@IF ERRORLEVEL 1 GOTO badbuild
REM link zensf.nsfe
cc65\bin\ld65 -o out_build\zensf.nsfe -C nsfe.cfg -m out_build\zensf.nsfe.map.txt --dbgfile out_build\zensf.nsfe.dbg out_build\ramp.o out_build\nsf.o out_build\nsfe.o
@IF ERRORLEVEL 1 GOTO badbuild
@echo.
@echo.
@echo Build complete and successful!
@IF NOT "%1"=="" GOTO endbuild
@pause
@GOTO endbuild
:badbuild
@echo.
@echo.
@echo Build error!
@IF NOT "%1"=="" GOTO endbuild
@pause
:endbuild