;
In a msg of , Rafa Gawenda writes to Bob Sewell:
;
Rafa,
RG> ~[is_os2.bas]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RG> reg 1,&h4010
RG> call interrupt &h2F
RG> if (reg(1) xor &h10) then
RG> mtask$="OS/2"
RG> end if
Have you tried this? When I run it, the routine returns reg(1) equal to
&h4010 when run from an OS/2 VBDM, an OS/2 DOS box, and when booted to real
DOS.
I found a reference to the INT call in Ralf Brown's interrupt document, and
it seems to indicate that AX should return &h4010 if OS/2 is *NOT* installed,
and &h0000 if Warp 3.0 is installed. However, my experiments seem to
contradict that, since I'm running Warp.
I'm confused! :^)
-[Steve]-
--- GoldED/2 2.50+/#1057US3
---------------
* Origin: -[Steve's Place]- New Berlin, WI (FidoNet 1:3641/1.202)
|