-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_nsf.bat
More file actions
33 lines (28 loc) · 729 Bytes
/
build_nsf.bat
File metadata and controls
33 lines (28 loc) · 729 Bytes
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
REM remove temporary stuff
del out_build\nsf.o
del out_build\ramp.o
del out_build\zensf.nsf
del out_build\zensf.nsf.dbg
del out_build\zensf.nsf.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 link zensf.nsf
cc65\bin\ld65 -o out_build\zensf.nsf -C nsf.cfg -m out_build\zensf.nsf.map.txt --dbgfile out_build\zensf.nsf.dbg out_build\ramp.o out_build\nsf.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