Mail Archives: djgpp/1998/10/29/11:46:52
On Wed, 28 Oct 1998, Seyil Yoon wrote:
> Regs.h.ah = 0x42;
> Regs.h.dl = ucDrive;
> Regs.x.ds = ulPacketBufferSeg; // Segment number obtained from
> __dpmi_allocate_dos_memory
> Regs.x.si = 0;
>
> __dpmi_int(0x13, &Regs);
Insufficient details. Please post a more complete fragment that in
particular shows how did you allocate the DOS buffer and how exactly
was ulPacketBufferSeg computed. ``Segment number'' doesn't explain
enough to guess what might have gone wrong.
You might also benefit from reading section 18.5 of the latest version
2.11 of the DJGPP FAQ list, which lists some gotchas in code that calls
real-mode services from DJGPP programs.
- Raw text -