Hi, I have done some more testing and now have more information...

> http://www.coli.uni-sb.de/~eric/stuff/soft/specials/volinfxl.zip

... causes FreeCOM 0.84 confusion: When startet from the prompt,
one keypress after the return to the prompt gets lost, plus the
errorlevel will be 95. Uhm, starteD, of course. When VOLINFXL is,
however, called from within a batch file, I get the "Ctrl-Break
pressed, abort batch file?" type message.
If I answer N to that, errorlevel will be 0. Otherwise, the batch
file is, of course, aborted. The errorlevel returned by the
batch file itself will be 95 in that case.

Now the interesting part: The problem ONLY happens with SHSUCDX loaded!
Tested for SHSUCDX 2.1a and SHSUCDX 3.02... And the problem also happens
when you use the /Y option of FreeCOM to step through the test batch file,
which is:

C:\HOME\RAMDISK>type test.bat
volinfxl
echo 0 returned
echo done
 
The CD-related part of VOLINFXL is:
 reg.ax:=$1500; reg.bx:=0; intr($2f,reg); case reg.bl of
  0: writeln('[ No CDROM ]');
  1: writeln('[ Remote CD-ROM is ',chr($41+reg.cl),': ]');   else
  writeln ('CDROM are ',chr($41+reg.cl),': to ',chr(su+reg.cl+reg.bl),':');
 end; {case}

I know that my Pascal style of 1998 could use some improvement ;-).

Relevant RBIL section for this: INT 2F - CD-ROM - INSTALLATION CHECK
  AX = 1500h  BX = 0000h
Return: BX = number of CD-ROM drive letters used
        CX = starting drive letter (0=A:)
        AX = 15FFh (Novell DOS 7 NWCDEX only!)

In the Pascal program, reg is a global variable of type "registers". Sure.
The value of su is the constant ord('A')-1
For my case, there is a single CD-ROM drive letter N:, and the problem
happens for both plain DOS as well as DOSEmu, but, as told, only with
FreeCOM 0.84, while FreeCOM 0.82pl3 is okay.

Eric



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to