Mail Archives: djgpp/1997/02/25/05:38:12
Envirnoment: djgpp V201, cwsdpmi
I'm trying to communicate with a TSR (stepper motor driver).
The vendor supplies a INT 0x78 interface and using __dpmi_int()
works fine so far. I could test some basic functions.
Now comes the following difficulty:
My program is in protected mode - flat linear addressing. The driver
requires for some functions an address to be passed (as far pointer,
seg,offset) where the driver can find a parameter list (of 12 to 16,
maybe max 32 bytes).
How can I supply these parameters from an address (linear) in my
program and convert it into a seg:offset to be used by the
realmode program? Would that work at all or would it be better to
use some low memory area as the transfer buffer where seg:offset
is know beforehand.
--
Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de
- Raw text -