Mail Archives: djgpp/1999/06/01/02:46:22
On Tue, 1 Jun 1999, leroy wrote:
> I have a variable called stack that is initialised like so
> int stack[] = {0x10};
>
> I then call the function
> __dpmi_simulate_real_mode_procedure_retf_stack(&r, 4, &stack);
This is wrong. You need to pass either "stack" or "&stack[0]" as the
last parameter.
If that doesn't help, please post a short complete test program that
can be compiled and used to find out what's wrong.
> I'm not so sure how the values for the stack should be passed, so I did
> some assumed values, like 4. Is this right?
No, 4 is not entirely correct, since "pop dx" only takes 2 bytes (but
I don't think this should matter in your case).
I would really advise to read the relevant parts of the DPMI spec if
you want to mess with low-level stuff like this. Every `__dpmi_xxx'
function has its corresponding DPMI call that is described in the spec
with much more detail.
- Raw text -