Pascal -> Delphi convert help needed !

I need help to convert following code for Delphi :
Who is Participating?

Improve company productivity with a Business Account.Sign Up

mirzasConnect With a Mentor Commented:
you can use WinIO library from

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

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

What about inline ASM ? is it possible with it ?

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.

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.
simohaAuthor Commented:
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

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