Link to home
Start Free TrialLog in
Avatar of simoha
simoha

asked on

Pascal -> Delphi convert help needed !

I need help to convert following code for Delphi :

http://www.bsdg.org/SWAG/INTERRUP/0022.PAS.html
ASKER CERTIFIED SOLUTION
Avatar of mirzas
mirzas
Flag of Bosnia and Herzegovina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Melih SARICA
U can not use this code in windows nt systems (after win 2000)

and u can convert it to delphi.. there is no Interrupt handling Commands in delphi..

Can u tell wot r u trying to do ..  then we can help u about it


Avatar of simoha
simoha

ASKER

Ok, no interrupt handling command with Delphi....

What about inline ASM ? is it possible with it ?

Yes, you can do inline ASM, but the ASM in the code you refer to accesses ports, which is something you don't want to do in Windows.
Avatar of simoha

ASKER

WHY ?!?!

What is problem with that ?

With Win98 you can easily access i/o ports.

WHat do you mean ?
in Win2k/NT/XP, the software is not allowed to have direct access to I/O ports without a driver.
use the library I posted above... it should work on all Win platforms
From Internals.com

This library allows direct I/O port and physical memory access under Windows 9x/NT/2000 and XP. Version 2.0 provides faster I/O port access, better memory mapping support and can be used from non-administrative accounts under Windows NT/2000 and XP.


Too bad if you didnt use it.