Mail Archives: djgpp/1999/06/02/03:23:40
On Tue, 1 Jun 1999, Davin McCall wrote:
> >iret
>
> This will pop half the return address.
Apart of the fact that the code needs to do a RETF instead of IRET, is
there anything else behind the ``half the return address'' remark? If
so, could you please explain?
> >I then call the function
> >__dpmi_simulate_real_mode_procedure_retf_stack(&r, 4, &stack);
>
> I suspect the 4 should be 1, or possibly 2. The DPMI spec is rather
> unclear.
But the library reference clearly says "bytes" (and the source works with
"REP MOVSB"). So 1 is definitely incorrect, as the RM code pops a 16-bit
word.
- Raw text -