Mail Archives: djgpp/2000/01/06/14:39:09
According to Eli Zaretskii:
> On Thu, 6 Jan 100, Martin Str|mberg wrote:
> I think I can help you ;-)
>
> > movw %ss, %ax
> > movw %ax, _org_ss
> > movw _my_ds, %ax
> > movw %ax, %es
> > movw %ax, %ss
>
> You changed SS, but left ESP at its previous value. This is a disaster
> waiting to happen.
Ooops (Blush)! Thanks!
> What you need to do is to save ESP in some variable before calling the
> DPMI functions, then use that saved value inside the hook (decrement it
> by some slack, to guard against usage inside the DPMI functions).
>
> Or, better still, don't call any library functions from within the hook;
> then you don't need to worry about SS and ESP.
Yes, but I need call cputs to get some debug information out.
Pettersson, Symphony 13,
MartinS
- Raw text -