[fpc-pascal]Calling intr from Windows

XHajT03 at mbox.vol.cz XHajT03 at mbox.vol.cz
Wed Mar 13 21:40:07 CET 2002


Date sent:      	Wed, 13 Mar 2002 17:55:30 -0300
From:           	Fernando Lozano <fsl at centroin.com.br>
To:             	fpc-pascal at deadlock.et.tudelft.nl
Subject:        	[fpc-pascal]Calling intr from Windows
Send reply to:  	fpc-pascal at deadlock.et.tudelft.nl

> 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.

HTH

Tomas





More information about the fpc-pascal mailing list