diff --git a/src/bios/make_bios.cmd b/src/bios/make_bios.cmd deleted file mode 100644 index 71c4bba..0000000 --- a/src/bios/make_bios.cmd +++ /dev/null @@ -1,71 +0,0 @@ -@if [%1]==[] (set NO_STOP="0") else (set NO_STOP="%1") -@if %NO_STOP% == "5" (goto all) -@set cur_STEP=0 -@set BIOS_DIR=%cd%\src\bios -@set BIN=%BIOS_DIR%\..\bin -@set BUILD=%BIOS_DIR%\..\..\Build -@set RAW=%BUILD%\Bin -@set error_level="0" - - -@goto start_tasks - -:all -@__make_all_.cmd - -:start_tasks -@echo -------------------------------------------------------[BIOS START] -@echo STEP [1/2], Compiling ROM, EXP, Loader -@set main_file=BIOS -@sjasmplus.exe -Wall --msg=war --nologo --syntax=w --fullpath --color=on --lst=%BUILD%\BIOS.LST %BIOS_DIR%\BIOS.ASM -@if errorlevel 1 (call :error_handler) else (echo [OK ]) -@echo -------------------------------------------------------[BIOS DONE] -@echo. - -@echo -------------------------------------------------------[LOGO START] -@set LOGO_FILE=psfathers.bmp -@echo STEP [2/2], Extracting data for LOGO from BMP -@set main_file=Logo -@echo. -@%BIN%\bmp_extract.exe %BIOS_DIR%\logo\%LOGO_FILE% /pn %RAW%\LOGO_PAL.BIN /dn %RAW%\LOGO_DAT.BIN /pt 4 -@if errorlevel 1 (call :error_handler) else (echo [OK ]) -@set /a "cur_STEP=cur_STEP+1" -@echo -------------------------------------------------------[LOGO DONE] -@echo. - -@if %error_level% == "1" (goto end_task_err) else (goto end_task_ok) - -:error_handler -@color 04 -@if %NO_STOP% == "1" (goto next) else (goto err_stop) - -:next -@echo [ERR] -@set error_level="1" -@echo ---------------------------------------------------------------------[ERROR in %main_file% on STEP %cur_STEP%] -@goto :eof - -:err_stop -@echo ---------------------------------------------------------------------[ERROR in %main_file% on STEP %cur_STEP%] -@cd %BIOS_DIR% -@IF NOT (%NO_STOP% == "1") pause 0 -@color -@exit 3 - -:end_task_err -@echo ---------------------------------------------------------------------[Make firmware ERROR!!!] -@echo. -@cd %BIOS_DIR% -@echo %NO_STOP% -@IF %NO_STOP% == "3" pause 0 -@IF %NO_STOP% == "0" pause 0 -@color -@exit 3 - - -:end_task_ok -@echo --------------------------------------------------------------------------[Make firmware DONE] -@echo. -@cd %BIOS_DIR% -@echo on -@IF (%NO_STOP% == "0") pause 0 diff --git a/src/bios/test2.cmd b/src/bios/test2.cmd deleted file mode 100644 index 8e6fe81..0000000 --- a/src/bios/test2.cmd +++ /dev/null @@ -1,15 +0,0 @@ -@set variable=0 -@set main_file=0 -@setlocal disabledelayedexpansion -@set test=set variable=!main_file! - -@call :testing trtrt -@goto :eof - -:testing -@setlocal enabledelayedexpansion -@set main_file=%1 -@%test% -@setlocal disabledelayedexpansion -@echo %variable% -@goto :eof diff --git a/src/build_firmware.cmd b/src/build_firmware.cmd deleted file mode 100644 index 3c90b5f..0000000 --- a/src/build_firmware.cmd +++ /dev/null @@ -1,78 +0,0 @@ -@echo ------------------------------------------------------------[Build firmware start] -@if [%1]==[] (set NO_STOP="0") else (set NO_STOP=%1) -@if [%error_level%]==[] (set error_level="0") -@if %error_level% == "1" goto error -@set BIN=..\..\src\bin -@set ROMS=..\..\src\ZX_ROMS -@set BITSTREAM=..\..\src\altera\acex - -@cd ..\Build\Bin - -@if not exist ROM.BIN goto error_roms -@if not exist EXP.BIN goto error_roms -@if not exist LOADER_K30.BIN goto error_roms -@if not exist LOADER_K50.BIN goto error_roms - -@if not exist LOGO_PAL.BIN goto error_logo -@if not exist LOGO_DAT.BIN goto error_logo - -@if not exist %ROMS%\SP_128.BIN goto error_zxroms -@if not exist %ROMS%\SP__48.BIN goto error_zxroms -@if not exist %ROMS%\SP_TRD.BIN goto error_zxroms -@if not exist %ROMS%\SP_EXP.BIN goto error_zxroms -@if not exist %ROMS%\SP_EXP2.BIN goto error_zxroms - -@set FW=..\_SPRIN.BIN -@set LOADER=LOADER_K30.BIN -@call :make_rom_file -@set FW=..\_SPRIN50.BIN -@set LOADER=LOADER_K50.BIN -@call :make_rom_file -@goto quit - -:make_rom_file -@%BIN%\disk3.exe %FW% NUL 0H,40000H,0 -@%BIN%\disk3.exe %FW% ROM.BIN 0000H,4000H,0H -@%BIN%\disk3.exe %FW% LOGO_PAL.BIN 4000H,400H,0H -@%BIN%\disk3.exe %FW% LOGO_DAT.BIN 4400H,2400H -@%BIN%\disk3.exe %FW% %ROMS%\SP_128.BIN 8000H,4000H,0H -@%BIN%\disk3.exe %FW% %ROMS%\SP__48.BIN C000H,4000H,0H -@%BIN%\disk3.exe %FW% %ROMS%\SP_TRD.BIN 10000H,4000H,0H -@%BIN%\disk3.exe %FW% %ROMS%\SP_EXP.BIN 14000H,4000H,0H -@%BIN%\disk3.exe %FW% %ROMS%\SP_EXP.BIN 18000H,4000H,0H -@%BIN%\disk3.exe %FW% %ROMS%\SP_EXP2.BIN 1C000H,4000H,0H -@%BIN%\disk3.exe %FW% EXP.BIN 20000H,4000H,0H -@%BIN%\disk3.exe %FW% %LOADER% 30000H,4000H,0 -@goto :eof - -:error_roms -@echo. -@echo -------------------------------------------------------[ERROR during building firmware. ROM not found!] -@pause 0 -@exit 3 - -:error_logo -@echo. -@echo -------------------------------------------------------[ERROR during building firmware. LOGO not found!] -@pause 0 -@exit 3 - -:error_zxroms -@echo. -@echo -------------------------------------------------------[ERROR during building firmware. ZX-ROM not found!] -@pause 0 -@exit 3 - -:error -@echo. -@echo -------------------------------------------------------[ERROR during making firmware] -@pause 0 -@exit 3 - -:quit -@echo ------------------------------------------------------------[Build firmware done] -@echo. -@cd .. -@IF %NO_STOP% == "3" pause 0 -@IF %NO_STOP% == "0" pause 0 -@goto :eof diff --git a/src/make_firmware.cmd b/src/make_firmware.cmd deleted file mode 100644 index 2019faa..0000000 --- a/src/make_firmware.cmd +++ /dev/null @@ -1,19 +0,0 @@ -@echo ------------------------------------------------------------[Make firmware start] -@if [%1]==[] (set NO_STOP=0) else (set NO_STOP=%1) -@cd altera -@call make_altera.cmd - -@cd ..\.. -@call src\bios\make_bios.cmd %no_stop% -@if %error_level% == "0" goto exit - -:error -@echo. -@echo -------------------------------------------------------[ERROR during making firmware] -@pause 0 -@exit 3 - -:exit -@echo ------------------------------------------------------------[Make firmware done] -@echo. -