-
Notifications
You must be signed in to change notification settings - Fork 2
/
db_vrc7_build.bat
38 lines (31 loc) · 952 Bytes
/
db_vrc7_build.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
REM remove temporary stuff
del build\swap.o
del build\db_vrc7.o
del build\db_vrc7.nes
del build\db_vrc7_nrom.nes
del build\db_vrc7.nsf
del build\db_vrc7.dbg
del build\db_vrc7.map.txt
cc65\bin\ca65 swap.s -o build\swap.o -g
@IF ERRORLEVEL 1 GOTO badbuild
cc65\bin\ca65 db_vrc7.s -o build\db_vrc7.o -g
@IF ERRORLEVEL 1 GOTO badbuild
cc65\bin\ld65 -o build\db_vrc7.nes -C swap_nes.cfg build\swap.o build\db_vrc7.o -D INES_MAPPER=85 -m build\db_vrc7.map.txt --dbgfile build\db_vrc7.dbg
@IF ERRORLEVEL 1 GOTO badbuild
cc65\bin\ld65 -o build\db_vrc7_nrom.nes -C swap_nes.cfg build\swap.o build\db_vrc7.o
@IF ERRORLEVEL 1 GOTO badbuild
cc65\bin\ld65 -o build\db_vrc7.nsf -C swap_nsf.cfg build\swap.o build\db_vrc7.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