TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Transfer-Encoding: 7bit
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Tom Moran <[log in to unmask]>
Date: Tue, 9 Apr 2002 09:35:11 -0700
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Reply-To: Tom Moran <[log in to unmask]>
Parts/Attachments: text/plain (12 lines)
>    Direccion : System.Address := System'To_Address (16#378#);
  The LPT port is not at virtual memory address 378, it is at IO address
378.  On the PC you must use IO instructions to access an IO port, not
memory accessing instructions.

> I'm not sure if Ada can manage devices over the Windows Layer.
  Just as much, or as little, as C or anything else.  But you may need
to write a device driver to access protected resources.

As previously noted, however, Martin Carlisle has posted Ada code to
access the printer port under Windows, so you are in luck. :)

ATOM RSS1 RSS2