@echo Joining %1.SPR & %1.PSX  into %1.SPX
@echo >\temp.txt incbin "%1.SPR"
@echo >\temp1.txt incbin "%1.PSX"
@echo >\temp2.c main(){}
@asmpsx /l /o c+ /x c:\psx\bin\spr2spx.s,spr2spx.obj
@ccpsx32 -O2 -Xo$0 -comments-c++ spr2spx.obj \temp2.c -ospr2sp.cpe
@echo All Compiling Done!
@erase \temp.txt
@erase \temp1.txt
@erase \temp2.c
@erase spr2spx.obj
@cpe2x spr2sp.cpe
@erase spr2sp.cpe
@echo Now clipping front and back of binary
@chopfile spr2sp.exe  /SSTARTOFFILE /EENDOFFILE
@copy spr2sp!.exe %1.spx
@erase spr2sp!.exe
@erase spr2sp.exe
@echo %1.SPX all done!

