set CA_DIR=%~d0%~p0..\
set CA_COM="BKTurbo8.exe"
set CA_B2O="BKbin2obj.exe"

set ASSEMBLER=%CA_DIR%%CA_COM%
set BIN2OBJ=%CA_DIR%%CA_B2O%

%BIN2OBJ% -sbin -lFONT8 FONT8.FNT

md out
set SRC_FILE=ALT_test.v475f
set DST_FILE=ALTV475F
%ASSEMBLER% -l cl %SRC_FILE%.asm
copy %SRC_FILE%.lst %SRC_FILE%_1.lst
%ASSEMBLER% -l li %SRC_FILE%.bin %SRC_FILE%.obj FONT8.obj
%ASSEMBLER% -l -r li %SRC_FILE%.bin %SRC_FILE%.obj FONT8.obj
copy %SRC_FILE%.bin out\%DST_FILE%.BIN
copy %SRC_FILE%.raw out\%DST_FILE%


copy *.lst out\*

del *.bin
del *.raw
del *.obj
del *.lst
