Login

Subversion Repositories NedoOS

Rev

Rev 1542 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

if "%settedpath%"=="" call ../../_sdk/setpath.bat
set installdir=nedogame
if not exist worms mkdir worms
set LOCALDIR=worms
set NEDORES="../../_sdk/nedores.exe"
set SJASMPLUS=sjasmplus
set SJASMPLUSFLAGS=--nologo --msg=war

@echo off
%NEDORES% gfx/sprites_bw.bmp sprites.dat sprites.ast
%NEDORES% gfx/texmars_bw.bmp texture.dat texture.ast
%NEDORES% gfx/texforrest.bmp texforrest.dat texforrest.ast
%NEDORES% gfx/grass.bmp grass16.dat grass16.ast
%NEDORES% gfx/panel.bmp pal.dat pal.ast
%NEDORES% gfx/panel.bmp panel16.dat panel16.ast
%NEDORES% gfx/panel_bw.bmp panel.dat panel.ast
%NEDORES% gfx/panel_bw.bmp numfont.dat numfont.ast

echo ATM=1 > settings.ast
%SJASMPLUS% %SJASMPLUSFLAGS% main.asm

echo ATM=0 > settings.ast
%SJASMPLUS% %SJASMPLUSFLAGS% main.asm
rem sjasmplus depkmain.asm
nedotrd basic.trd -eh boot.$b > nul
rem del test.scl
rem mhmt -mlz code.c
rem del code.c
rem copy /b depkcode.c + code.c.mlz code.c
nedotrd worms.trd -n
nedotrd worms.trd -ah boot.$b
nedotrd worms.trd -ac code.c
nedotrd worms.trd -ac hicode.c
nedotrd worms.trd -ac hicode2.c
rem del code.c
rem del code.c.mlz
rem del depkcode.c

%SJASMPLUS% %SJASMPLUSFLAGS% main.asm
rem sjasmplus depkmain.asm
rem del test.tap
del worms.tap
rem mhmt -mlz code.c
del code.bin
rem copy /b depkcode.c + code.c.mlz code.bin
copy /b code.c code.bin
copy /b hicode.c hicode.bin
copy /b hicode2.c hicode2.bin
bas2tap -a10 loader.txt worms.tap
rem bin2tap -b -a 24576 -r 24576 -o worms.tap code.bin
bin2tap -append -a 49152 -o worms.tap hicode.bin
bin2tap -append -a 49152 -o worms.tap hicode2.bin
bin2tap -append -a 24576 -o worms.tap code.bin
rem del code.bin
rem del code.c.mlz
rem del depkcode.c

@SET releasedir2=../../../release/
@if "%currentdir%"=="" (
  @FOR %%j IN (*.com) DO (
  @"../../../tools/dmimg.exe" ../../../us/sd_nedo.vhd put %%j /nedogame/%%j
  @move "*.com" "%releasedir2%nedogame" > nul
  @IF EXIST %%~nj xcopy /Y "%%~nj" "%releasedir2%nedogame\%%~nj\" > nul
  )
@cd ../../../src/
@call ..\tools\chkimg.bat sd
rem pause
rem @if "%makeall%"=="" ..\us\emul.exe games\worms\worms.trd games\worms\worms.tap
@if "%makeall%"=="" ..\us\emul.exe games\worms\worms.trd
)