www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/23/13:00:22

Date: Wed, 23 Nov 94 08:46:52 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: trav AT clark DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Interrupts

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019