🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2832

Re: DOS Box Programming

#2832
From: Kevin Vigor
Date: Mon, 14 Dec 1992 18:07
32 lines
1626 bytes
boh@fraser.sfu.ca (Changhao Boh) writes:

>Hi, I am wondering about programming a serial communication programme in DOS
>but would like to make it "OS/2 aware".  Thus I have the following questions.

>   1.  Is there a way to detect if a programme is operation in OS/2 2.0's
>       dos box ?

A question I'd like an answer to myself; however, at the moment, I am just 
checking the DOS version; if the major version is 20 or higher, I assume
I'm dealing with OS/2 2.x or better.

>   2.  Is there a way a programme, running in OS/2 2.0's DOS box, can release
>       clock cycles to OS/2 ?

Call interrupt 2F (hex) with AX set to 1680 (hex). The call returns with
AL set to zero on sucess and 80 on failure. N.B.: this same call works
in a Windows 3.x DOS box and under DPMI.

>   3.  What happens when a programme hooks onto the serial communication
>       inturrupt as provided by DOS INT 21h ? Will a interrupt driven
>       serial communication driver written this way be efficient in the
>       DOS box of OS/2 ?

Don't know, but as it's completely inefficient under DOS, I doubt it'll be
any better under OS/2 DOS box.

-- 
		Peace & PopTarts, 
			Kevin
Email to the reply address will almost certainly bounce; use
72500.3705@compuserve.com
Technical Details
Message-ID: <1992Dec14.180704.29564@wicat.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!walter!att-out!pacbell.com!sgiblab!spies!wicat!kevin
References: <boh.724320875@sfu.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!walter!att-out!pacbell.com!sgiblab!spies!wicat!kevin
From: kevin@wicat.com (Kevin Vigor)
Subject: Re: DOS Box Programming
Message-ID: <1992Dec14.180704.29564@wicat.com>
Organization: WICAT Systems
References: <boh.724320875@sfu.ca>
Date: Mon, 14 Dec 1992 18:07:04 GMT
Lines: 32