Need help with DPMI function 301h (Developers)
> I can not just call the realmode BIOS entrypoint from protected mode so I
> have to use the emulation via DPMI function 301h.
Yes
> FillChar(r,sizeof(TRealRegs),0);
> r.cs:=seg_entry;
> r.ip:=offs_entry;
So far it's ok, real-mode CS:IP and SS:SP are set.
> push $b800
> push 0
> push $b800
> push 2
>
> push 0
In 32-bit protected-mode, when you're pushing a constant value, a 32-bit value is pushed! So the code above pushes 5 DWORDS, not 5 WORDS ( as was your intention, probably ).
Simplest workround: replace "push CONST" by "mov ax,CONST" & "push ax".
---
MS-DOS forever!
Complete thread:
- Need help with DPMI function 301h - Laaca, 12.08.2019, 22:19 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Need help with DPMI function 301h - RayeR, 15.08.2019, 03:35
- Need help with DPMI function 301h - Laaca, 16.08.2019, 08:09
- Need help with DPMI function 301h - Laaca, 16.08.2019, 08:11
- Need help with DPMI function 301h - Laaca, 16.08.2019, 08:09
- Need help with DPMI function 301h - marcov, 17.08.2019, 23:34
- Need help with DPMI function 301h - Japheth, 18.08.2019, 09:56
- Need help with DPMI function 301h - Laaca, 18.08.2019, 21:21
- Need help with DPMI function 301h - Japheth, 20.08.2019, 12:34
- Need help with DPMI function 301h - Laaca, 22.08.2019, 17:42
- Need help with DPMI function 301h - Japheth, 23.08.2019, 09:09
- Need help with DPMI function 301h - marcov, 24.08.2019, 15:53
- Need help with DPMI function 301h - Japheth, 24.08.2019, 17:52
- Need help with DPMI function 301h - marcov, 24.08.2019, 18:18
- Need help with DPMI function 301h - Rugxulo, 30.08.2019, 02:43
- Need help with DPMI function 301h - Japheth, 24.08.2019, 17:52
- Need help with DPMI function 301h - marcov, 24.08.2019, 15:53
- Need help with DPMI function 301h - Japheth, 23.08.2019, 09:09
- Need help with DPMI function 301h - Laaca, 22.08.2019, 17:42
- Need help with DPMI function 301h - Japheth, 20.08.2019, 12:34
- Need help with DPMI function 301h - Laaca, 18.08.2019, 21:21
- Need help with DPMI function 301h - RayeR, 15.08.2019, 03:35
Mix view