Browse Prior Art Database

Code Objects Independent of Operating System

IP.com Disclosure Number: IPCOM000115172D
Original Publication Date: 1995-Mar-01
Included in the Prior Art Database: 2005-Mar-30
Document File: 2 page(s) / 26K

Publishing Venue

IBM

Related People

Celi, J: AUTHOR [+2]

Abstract

Disclosed is a method allowing the use of the same code, without modifications, for both DOS systems, including Virtual DOS Machines (VDM), and for systems using OS/2* 2.x. Without this method, separate code must be written for accessing Input/Output Ports of DOS systems and of OS/2 systems.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Code Objects Independent of Operating System

      Disclosed is a method allowing the use of the same code,
without modifications, for both DOS systems, including Virtual DOS
Machines (VDM), and for systems using OS/2* 2.x.  Without this
method, separate code must be written for accessing Input/Output
Ports of DOS systems and of OS/2 systems.

      With this method, code executed under OS/2 is treated as a code
object executed by a program.  This program reads the code object
into its data segment, grants an IOPL (Input/Output Privilege Level)
to the code, and executes it.  The code is executed directly in a DOS
system or a VDM.

      This method may be used, for example, in setting the video
refresh rate.  A single code routine required to set this rate is
executed under the 0S/2 2.x Presentation Manager*, in a DOS system,
or in a VDM running WIN-OS2*.
  *  Trademark of IBM Corp.