delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/23/08:51:14

Date: Fri, 23 Dec 94 08:26:39 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: jwvm AT umdsun2 DOT umd DOT umich DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Calling 16 bit functions

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


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