Interrupts and FAR calls from DPMI (Developers)
> I see. Thank you, I didn't know about function
> __dpmi_simulate_real_mode_procedure_retf_stack
>
> It is not in Freepascal's GO32 unit but I can code it in assembler - no
> problem.
If you can code it in assembler, better push the parameters on your PM stack (as words if their size is smaller than dword, i.e. "pushw" or "push word"), and fill CX with the total number of words pushed. Before executing the interrupt, ESP has to point to the last parameter pushed.
If you still want to use your own RM stack:
regs_ss:regs_sp has to point to the end of the DOS memory buffer minus the size of parameters, the parameter values having to be copied at its end. The buffer has to be large enough because the procedure may use stack allocated local variables etc.
---
Glory to God for all things
Complete thread:
- Interrupts and FAR calls from DPMI - Laaca, 27.02.2012, 10:03 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Interrupts and FAR calls from DPMI - Khusraw, 27.02.2012, 13:48
- Interrupts and FAR calls from DPMI - Laaca, 28.02.2012, 16:02
- Interrupts and FAR calls from DPMI - Khusraw, 28.02.2012, 17:19
- Interrupts and FAR calls from DPMI - marcov, 29.02.2012, 10:35
- Interrupts and FAR calls from DPMI - RayeR, 02.03.2012, 20:51
- Interrupts and FAR calls from DPMI - Khusraw, 02.03.2012, 20:59
- Interrupts and FAR calls from DPMI - RayeR, 02.03.2012, 21:25
- Interrupts and FAR calls from DPMI - Laaca, 03.03.2012, 21:31
- Interrupts and FAR calls from DPMI - RayeR, 05.03.2012, 15:16
- Interrupts and FAR calls from DPMI - Laaca, 07.03.2012, 07:17
- Interrupts and FAR calls from DPMI - bretjohn, 07.03.2012, 18:08
- Interrupts and FAR calls from DPMI - Laaca, 07.03.2012, 07:17
- Interrupts and FAR calls from DPMI - RayeR, 05.03.2012, 15:16
- Interrupts and FAR calls from DPMI - Laaca, 03.03.2012, 21:31
- Interrupts and FAR calls from DPMI - RayeR, 02.03.2012, 21:25
- Interrupts and FAR calls from DPMI - Khusraw, 02.03.2012, 20:59
- Interrupts and FAR calls from DPMI - Laaca, 28.02.2012, 16:02
- Interrupts and FAR calls from DPMI - Khusraw, 27.02.2012, 13:48
Mix view