Solved

Read/Write a register on a DAC Card.

Posted on 1997-06-12
1
203 Views
Last Modified: 2010-04-03
I am using a PCL812G DAC Card and I want read and write the registers of this card.
With TP 7.0 or Pascal Object for Windows 3.1, the Port and PortW instructions was a simply way to do this.
How can I do this with Delphi 2.0 ?
On the same way, what are the new instruction Delphi for Intr instruction in Pascal
Thank's for your answer.
0
Comment
Question by:jllavie
1 Comment
 

Accepted Solution

by:
japala earned 200 total points
ID: 1336978
You may use Delphis inline-assembler. It is not recommended
to use any direct hardware access methods but in Win95 it usually
works but in WinNT you have to use some external driver to
access hardware because of winNTs security and whole kernel system.

But if you are using 95 then you may try this approach:

var
 i:integer;
begin
 I:=0;
 asm
  mov eax,i
  inc eax
  mov i, ex
end;

and the i is incremented by one. I haven't tested that with
inp and outp instructions but I think that they work just
like that.

If you are using WinNT you may want to go and check
http://www.bluewatersystems.com/
for driver you to access hardware under WinNT.

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now