Pascal -> Delphi convert help needed !

I need help to convert following code for Delphi :

http://www.bsdg.org/SWAG/INTERRUP/0022.PAS.html
simohaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mirzasConnect With a Mentor Commented:
you can use WinIO library from http://www.internals.com/

0
 
Melih SARICAIT ManagerCommented:
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


0
 
simohaAuthor Commented:
Ok, no interrupt handling command with Delphi....

What about inline ASM ? is it possible with it ?

0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
scrapdogCommented:
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.
0
 
simohaAuthor Commented:
WHY ?!?!

What is problem with that ?

With Win98 you can easily access i/o ports.

WHat do you mean ?
0
 
DragonSlayerCommented:
in Win2k/NT/XP, the software is not allowed to have direct access to I/O ports without a driver.
0
 
mirzasCommented:
use the library I posted above... it should work on all Win platforms
0
 
mirzasCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.