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?
 
mirzasCommented:
you can use WinIO library from http://www.internals.com/

0
 
Melih SARICAOwnerCommented:
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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
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.