Thread View: comp.os.os2.programmer
1 messages
1 total messages
Started by Marty Klos
Thu, 11 Apr 1991 22:54
OS/2 device drivers
Author: Marty Klos
Date: Thu, 11 Apr 1991 22:54
Date: Thu, 11 Apr 1991 22:54
20 lines
1180 bytes
1180 bytes
References: <1991Apr09.151935.19325@lut.fi> I know that in IBM C/2 (MSC 5.1), the i/o routines were already in a separate segment in the large model libraries. You could access them by using a .def file to the linker containing the line: SEGMENTS '_IOSEG' CLASS 'IOSEG_CODE' IOPL Although I haven't used MSC 6.0, I would suspect it still works. Try looking in the .map file for your program that uses inp or outp. If you see 'IOSEG_CODE', then this should work. Beware, there is a performance hit (vs DOS) because every call to an IOPL routine from a non-IOPL routine goes through a call gate. Also, be aware that you will need the function versions of inp and outp, not the *intrinsic* (translation: in-line) versions. Marty Klos/Internet: klos@vnet.ibm.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads