From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,407c579dbfad5c2c X-Google-Attributes: gid103376,public From: "Ed Falis" Subject: Re: Parallel Port Date: 2000/03/19 Message-ID: <036B4.16780$YU2.364519@typhoon.ne.mediaone.net>#1/1 X-Deja-AN: 599540175 References: <172B4.2690$wl2.12638330@nnrp4.proxad.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 953478460 24.218.120.235 (Sun, 19 Mar 2000 10:07:40 EST) Organization: Road Runner X-MSMail-Priority: Normal NNTP-Posting-Date: Sun, 19 Mar 2000 10:07:40 EST Newsgroups: comp.lang.ada Date: 2000-03-19T00:00:00+00:00 List-Id: "Philippe Bourzeix" 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 : > function Entier_Octet is new Unchecked_Conversion (Entier_8_bits,Octet); > 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#); > 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