Mail Archives: djgpp/1999/10/03/11:15:41
On Sat, 2 Oct 1999, Alex Mendes da Costa wrote:
> 2. Now I don't understand this bit. It says call
> __dpmi_lock_linear_region a series of times. But how do I know what
> region I have to lock?
I already answered this one in another thread where you asked about
it.
> 3. Then call __dpmi_set_protected_mode_interrupt_vector with _my_cs()
> and my function offset. How do I get my function offset?
The offset of a function is just its address cast to an unsigned
long. Here's how to compute an offset of a hypothetical function
my_func:
unsigned long func_offset = (unsigned long)my_func;
The offset of a variable is its address cast to an unsigned long:
unsigned long var_offset = (unsigned long)&my_var;
- Raw text -