First post, by Scorpion Illuminati
I am using the following batch file to assemble my game:
@echo off
rem save the old path
@echo on
SET oldpath=%path%
@echo off
rem set the path to the working folder, otherwise compilation will fail
@echo on
path c:\;%path%
@echo off
rem delete old assembled binary if it exists
@echo on
if exist ..\..\bin\emu\rom.bin del ..\..\bin\emu\rom.bin
@echo off
rem /j set include search directory
rem /p pure binary
rem /k enable if assembler directives
rem /o enable optimisations
rem ow+ optimise absolute long addressing
@echo on
..\..\asm\dosbox\snasm68k.exe /j ..\..\src\ /p /k /o op+,os+,ow+,oz+,oaq+,osq+,omq+ ..\..\src\source.asm,..\..\bin\emu\rom.bin,..\..\bin\emu\rom,..\..\bin\emu\rom > ..\..\logs\emu.log
@echo off
rem restore the old path
@echo on
path %oldpath%
pause
However when i check emu.log i get:
SNASM68K, version 2.02Ex, Mar 24 1995, 15:22:35 (c) 1993-95 Cross Products Ltd. All Rights Reserved Warning : Could not open lis […]
SNASM68K, version 2.02Ex, Mar 24 1995, 15:22:35
(c) 1993-95 Cross Products Ltd. All Rights Reserved
Warning : Could not open list file '..\..\bin\'
*********************
* Binary Statistics *
******************************************
* Rom Usage *
*********************
43554 bytes used
4150238 bytes left*********************
* Ram Usage *
*********************
772 bytes of ram used
64763 bytes of ram left
This refers to the last path before the < redirect for the log file. However when I remove the
/o op+,os+,ow+,oz+,oaq+,osq+,omq+
portion it seems to no longer cut off the path to the list file. I tried concatinating the string using & like so:
@echo off
rem save the old path
@echo on
SET oldpath=%path%
@echo off
rem set the path to the working folder, otherwise compilation will fail
@echo on
path c:\;%path%
@echo off
rem delete old assembled binary if it exists
@echo on
if exist ..\..\bin\emu\rom.bin del ..\..\bin\emu\rom.bin
@echo off
rem /j set include search directory
rem /p pure binary
rem /k enable if assembler directives
rem /o enable optimisations
rem ow+ optimise absolute long addressing
@echo on
..\..\asm\dosbox\snasm68k.exe /j ..\..\src\ /p /k /o op+,os+,ow+,oz+,oaq+,osq+,omq+ &
..\..\src\source.asm,..\..\bin\emu\rom.bin,..\..\bin\emu\rom,..\..\bin\emu\rom > ..\..\logs\emu.log
@echo off
rem restore the old path
@echo on
path %oldpath%
pause
but it seems to just ignore the second part altogether and treat the & as the source file. Any assistance in this matter would be greatly appreciated.
Sincerely,
Scorpion Illuminati