Solved

Read/Write a register on a DAC Card.

Posted on 1997-06-12
1
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi - replicating a form 8 112
DBGrid or StringGrid ? 6 137
PHP preg_replace code convert to Delphi 14 98
DBCtrlGrid, Delphi, Scroll 7 35
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 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