[fpc-pascal]Calling intr from Windows
Fernando Lozano
fsl at centroin.com.br
Thu Mar 14 02:18:20 CET 2002
Hi Tomas,
> > Running a simple program created for Turbo Pascal which uses some DOS
> > system calls (int 21h) I get from wrong results (invalid system date)
> > to a complete system crash. I am not calling functions that need a
> > memmory buffer, just functions where all arguments and return values
> > come from 8086 registers. Is this suposed to work?
>
> Maybe (depending on support of the particular DOS function in your
> environment, i.e. W95 here) if compiling for GO32v2 target.
> Absolutely not if compiling for Win32 target.
The Win32 API has a call to use DOS and BIOS interrupts. I Thought the
DOS unit on these systems should have used this call. So there are two
functions (intr and msdos) on the DOS unit for Win32 that do not work at
all?
[]s, Fernando Lozano
More information about the fpc-pascal
mailing list