Mail Archives: djgpp/1994/12/23/08:51:14
> I am trying to call a Microsoft C function void foo(void) using
> _go32_dpmi_simulate_fcall(regs). I have set regs.x.cs and regs.x.ip to
> values corresponding to the C function. What other registers do I need to
> set? Are there any other gcc functions that need to be called?
SS and SP should be set to a specific stack if you need to pass
parameters (you can point them to the transfer buffer). Flags should
be zeroed. Other registers need to be set only if the function
requires them set.
- Raw text -