rem ёъЁшяЄ ёсюЁъш яЁюхъЄр
PATH=..\_sdk\tools\sdcc\bin;..\_sdk;%PATH%
rem ёючфр╕ь тЁхьхээє■ фшЁхъЄюЁш■ фы ъюьяшы Ўшш
rem ёючфр╕ь ёяшёюъ ярышЄЁ
echo rem palette
>%temp%\palette.lst
FOR /F "tokens=2* delims=.="
%%A IN ('
SET palette'
) DO ECHO %%B>>%temp%\palette.lst
rem ёючфр╕ь ёяшёюъ шчюсЁрцхэшщ
echo rem image
>%temp%\image.lst
FOR /F "tokens=2* delims=.="
%%A IN ('
SET image'
) DO ECHO %%B>>%temp%\image.lst
rem ёючфр╕ь ёяшёюъ ёяЁрщЄют
echo rem sprite
>%temp%\sprite.lst
FOR /F "tokens=2* delims=.="
%%A IN ('
SET sprite'
) DO ECHO %%B>>%temp%\sprite.lst
rem ёючфр╕ь ёяшёюъ ьєч√ъш
echo rem music
>%temp%\music.lst
for /F "tokens=2* delims=.="
%%a in ('
set music'
) do echo %%b>>%temp%\music.lst
rem ёючфр╕ь ёяшёюъ ё¤ьяыют
echo rem sample
>%temp%\sample.lst
FOR /F "tokens=2* delims=.="
%%A IN ('
SET sample'
) DO ECHO %%B>>%temp%\sample.lst
rem ёючфр╕ь resources.h ё шфхэЄшЇшърЄюЁрьш ЁхёєЁёют
sjasmplus --nologo --msg=war ..\_sdk\lib_sndpage.asm
sjasmplus.exe --nologo --msg=war --exp=_temp_/nedoload.exp nedoload.asm
rem java -jar ../_sdk/exp2hConverter.jar _temp_/nedoload.exp > nul
perl ../_sdk/exp2hConverter.pl _temp_/nedoload.exp
> nul
makeresh "%temp%\image.lst" "%temp%\palette.lst" "%temp%\music.lst" "%temp%\sample.lst" "%temp%\sprite.lst" "%soundfx%"
rem ъюьяшышЁєхь шёїюфэшъ эр C
sdcc -mz80 -I. -c ..\_sdk\evo.c
rem copy evo.rel ..\_sdk\
rem sdcc -mz80 --fno-omit-frame-pointer --xstack --code-loc 0x4000 --data-loc 0 --no-std-crt0 -I..\_sdk ..\_sdk\crt0.rel ..\_sdk\evo.rel --opt-code-size main.c -o %temp%\out.ihx
sdcc -mz80 --code-loc 0x4000 --data-loc 0 --no-std-crt0 -I..\_sdk ..\_sdk\crt0.rel evo.rel --opt-code-size --nogcse main.c -o %temp%\out.ihx
rem т√ч√трхь ъюьяшы ЄюЁ ЁхёєЁёют
rem юэ ёючфр╕Є эрсюЁ сшэрЁэ√ї Їрщыют яю юфэюьє эр срэъ ярь Єш
rem яы■ё ёъЁшяЄ√ фы ёцрЄш Їрщыют megalz ш ёсюЁъш юсЁрчр фшёър
rem evoresc "%temp%\out.ihx" "..\_sdk\startup.bin" "%soundfx%" "%temp%\music.lst" "%temp%\palette.lst" "%temp%\image.lst" "%temp%\sample.lst" "%temp%\sprite.lst"
rem echo tools\sjasmplus\sjasmplus.exe "%temp%\..\nedoload.asm"
sjasmplus.exe --nologo --msg=war --exp=_temp_/nedoload.exp nedoload.asm
rem echo -CALL NEDORESC------------------------------
rem evoresc_new.exe BINARY_FILE "%temp%\out.ihx" STARTUP_FILE "..\_sdk\startup.bin" SFX_LIST "%soundfx%" MUSIC_LIST "%temp%\music.lst" PALETTE_LIST "%temp%\palette.lst" IMAGE_LIST "%temp%\image.lst" SAMPLE_LIST "%temp%\sample.lst" SPRITE_LIST "%temp%\sprite.lst" ALT_PAGE_NUMERING "1"
evoresc_new.exe BINARY_FILE "%temp%\out.ihx" STARTUP_FILE "..\_sdk\startup.bin" SFX_LIST "%soundfx%" MUSIC_LIST "%temp%\music.lst" PALETTE_LIST "%temp%\palette.lst" IMAGE_LIST "%temp%\image.lst" SAMPLE_LIST "%temp%\sample.lst" SPRITE_LIST "%temp%\sprite.lst" ALT_PAGE_NUMERING "0" SOUND_BIN_FILE "../_sdk/sound.bin" SND_PAGE 0 SPRTBL_PAGE 1 PAL_PAGE 2 SPRBUF_PAGE 3 GFX_PAGE 10 CC_PAGE0 100 CC_PAGE1 101 CC_PAGE2 102 CC_PAGE3 103
rem echo %PATH%
rem echo %CD%
perl ../_sdk/getMainAddr.pl .\_temp_\out.map _temp_\addr.bin
rem яхЁхїюфшь тю тЁхьхээє■ фшЁхъЄюЁш■
rem echo -11----------------------------
rem echo %CD%
rem яръєхь Їрщы√
rem kills PATH!!!
rem call compress.bat
rem ёюсшЁрхь чруЁєчўшъ
rem echo -12----------------------------
rem copy ..\..\_sdk\loader.asm loader.asm >nul
rem echo -13----------------------------
rem copy ..\..\_sdk\unmegalz.asm unmegalz.asm >nul
rem echo -14----------------------------
rem copy ..\..\_sdk\target.asm target.asm >nul
rem echo -15----------------------------
rem ..\..\_sdk\tools\sjasmplus\sjasmplus.exe loader.asm >nul
rem ёюсшЁрхь юсЁрч ш фхырхь хую ьюэюсыюўэ√ь
rem call createscl.bat
rem echo -12----------------------------
rem echo %CD%
rem copy %temp%\disk.scl %output% >nul
rem ..\..\_sdk\monoscl %output%
rem єфры хь тЁхьхээє■ фшЁхъЄюЁш■
:clean
rem rd /s /q %temp%
:end