Solved

Read/Write a register on a DAC Card.

Posted on 1997-06-12
1
219 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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dev Express grid collapse 2 47
Controlled Assessment GCSE - desperate help needed 4 111
Tidtcpserver listening on multiports? 1 43
Delphi: sending SMS on android platform 1 63
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

761 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