Mail Archives: djgpp/1994/11/23/13:00:22
> If I need to call an interrupt that expects a segment:offset pair to be
> in the registers, how do I do that in DJGPP? Here's the things that I've
> tried, with no success:
Use _go32_dpmi_simulate_int, but first you have to transfer the data
you want the interrupt to see into the transfer buffer (go32.h,
_go32_info_block.linear_address_of_transfer_buffer) using dosmemput.
Then, you use L/16 and L%16 to figure out the seg:ofs of the transfer
buffer, and put that in the registers. Do the interrupt. Use
dosmemget to transfer the data back to your application.
- Raw text -