I'm trying to port an MSDOS application to OS/2 and I know almost nothing of
My problem is that inp() and outp() have disappeared. I tried to rewrite them
(essentially following an example of Ray Duncan) in a .asm declaring a
segment MY_TEXT of class CODE, I've defined them in the C code using the __pascal
modifier (as for a few API calls I used) and I linked all together.
The .def file contains a line "SEGMENTS \n MY_TEXT IOPL". The bcc help
description of tlink seems completely false, the accepted parameters of tlink
being apparently those of link (in the on-line help, the IOPL modifier to the
SEGMENTS definition is not supported).
Result: without a "CODE IOPL" line in the .def the program runs normally but stops at the execution of the IN or OUT. With it, it stops at the very beginning.
In both cases I get many "fixupp" warnings from the linker, in different
quantity in the two cases.
Can anybody help?
Thank you in advance!
=========================================================================== Paolo IENNE office: +41-21-693 3910
EPFL - Laboratoire de Microinformatique
CH - 1015 Lausanne
fax: +41-21-693 5263
office: +41-21-693 3910