On Sat, 24 Aug 2002 01:33:04 +0400, Stas Sergeev wrote:

>Hello.
>
>Per Jessen wrote:
>>>No. What DOSEMU could do is to intercept int21,4d and "peek" the code
>>>from DOS memory, at the SDA (obtained via int21/5d06), location 14h.
>>>SDA=DOS Swappable Data Area, basically the current state of DOS,
>>>combined with all its "static" variables and internal stacks.
>>>The "Undocumented DOS" books attempt to do multitasking with DOS by
>>>swapping the SDA. Of course multitasking with DOSEMU is trivial and 
>>not nearly as dangerous and full of potholes :)
>>>The SDA is already used by the redirector code, so DOSEMU knows its
>>>location.
>> Thanks Bart - I'll have a think about it.
>Just wondering: is it really worth doing it
>that way? Can you just create a .bat file
>that will execute your program and then exitemu
>with an argument to depend on ERRORLEVEL?

Yes that should work too. But it's nowhere near as neat :-) However, 
as Bart pointed out, COMMAND.COM is the one nicking the returncode,
so I decided to circumvent COMMMAND.COM. I'll write it up and publish
everything some time soon. 






regards,
Per Jessen, Zurich
http://www.enidan.com - home of the J1 serial console.

Genius may have its limitations, but stupidity is not thus handicapped.


-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to