TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Tom Moran <[log in to unmask]>
Reply To:
Tom Moran <[log in to unmask]>
Date:
Tue, 9 Apr 2002 09:35:11 -0700
Content-Type:
text/plain
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