It would be nice to have these tools for Linux and have them give return codes for success and fail when running. I would like to create a make file on linux to compile apps. Interestingly the windows versions of these commands do not appear to set ErrorLevel for batch scripting in windows.
Interestingly the windows versions of these commands do not appear to set ErrorLevel for batch scripting in windows. That's strange. They all seem to set ERRORLEVEL on my computer. Jon
Well, we all know that the MS-DOS command line is pretty dim :-( I seem to remember some gotcha! that caused ERRORLEVEL values to be "lost"... Perhaps Adam could explain exactly what he's doing when his ERRORLEVEL values get "lost"...
Must have done something wrong a year or so ago when I last tested it because the ErrorLevel is working now. Even running C51.EXE with wine under linux returns the error code with $?.
well, you can use "wine": COMPILER_PATH=../dosasm/keil MAIN_FILE=monitor.asm all: wine compiler/A51.EXE @sps.dir wine compiler/BL51.EXE MONITOR.OBJ wine compiler/OH51.EXE MONITOR