From: "Ed Falis" <falis@gnat.com>
Subject: Re: Parallel Port
Date: 2000/03/19
Date: 2000-03-19T00:00:00+00:00 [thread overview]
Message-ID: <036B4.16780$YU2.364519@typhoon.ne.mediaone.net> (raw)
In-Reply-To: 172B4.2690$wl2.12638330@nnrp4.proxad.net
"Philippe Bourzeix" <philippe.bourzeix@free.fr> wrote in message
news:172B4.2690$wl2.12638330@nnrp4.proxad.net...
> I have already asked some questions, but i would like to know why this
> program works on Alsys and not on objectada :
<snip>
> function Entier_Octet is new Unchecked_Conversion
(Entier_8_bits,Octet);
<snip>
> Registre_1, Registre_2, Registre_3 : Octet ;
> for Registre_1 use at Integer_Address(16#378#); -- Parallel port
address
> for Registre_2 use at Integer_Address(16#379#);
> for Registre_3 use at Integer_Address(16#37A#);
<snip>
> procedure Ecrire (Caractere : in Character) is
> begin
> Registre_1:=Dico(Caractere);
> Registre_2:=Entier_Octet(2#0000_0000#);
> Registre_3:=Entier_Octet(2#0000_0000#);
> end Ecrire;
I don't see how this could have worked for either compiler, assuming x86
architecture without memory-mapped I/O (which can be inferred from the
standard PC I/O space address used for the port base).
You need to use port I/O instructions to read and write these addresses.
Take a look at Machine_Instructions_386. If you're running on NT or Win2K,
it won't work in either case, because of OS hardware protection.
- Ed
next prev parent reply other threads:[~2000-03-19 0:00 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-19 0:00 Parallel Port Philippe Bourzeix
2000-03-19 0:00 ` Ed Falis [this message]
2000-03-20 0:00 ` Philippe BOURZEIX
2000-03-20 0:00 ` Gautier
2000-03-20 0:00 ` Jerry van Dijk
2000-03-20 0:00 ` Gautier
2000-03-19 0:00 ` Dale Stanbrough
2000-03-20 0:00 ` Philippe BOURZEIX
2000-03-21 0:00 ` Philippe BOURZEIX
2000-03-21 0:00 ` tmoran
-- strict thread matches above, loose matches on Subject: below --
2001-01-17 9:18 PARALLEL PORT Szymar
2000-03-05 0:00 Parallel port Philippe Bourzeix
2000-03-05 0:00 ` Tarjei Tj�stheim Jensen
2000-03-05 0:00 ` Jerry van Dijk
2000-03-06 0:00 ` Philippe BOURZEIX
2000-03-06 0:00 ` Philippe Bourzeix
2000-03-06 0:00 ` Ted Dennison
2000-03-06 0:00 ` tmoran
2000-03-06 0:00 ` Philippe Bourzeix
2000-03-07 0:00 ` tmoran
2000-03-06 0:00 ` Gisle S�lensminde
2000-03-06 0:00 ` Philippe Bourzeix
2000-03-08 0:00 ` Gisle S�lensminde
2000-03-06 0:00 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox