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.2 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c9d5fc258548b22a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Tue, 08 Feb 2011 22:07:01 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Trace: individual.net BpKoiFArcc7u3/bkfBvjoAi7HVbyNrJkazmj6Uw98pHue6ABMe Cancel-Lock: sha1:v9xDtdAZ4+P4UBq+uhrJZDwCHnQ= User-Agent: Opera Mail/11.01 (Win32) Xref: g2news1.google.com comp.lang.ada:17037 Date: 2011-02-08T22:07:01+01:00 List-Id: Yannick Duch=C3=AAne (Hibou57) wrote: > Le Thu, 03 Feb 2011 09:08:50 +0100, mockturtle = a > =C3=A9crit: > >> type Vidmem_Array is array (natural range <>) of Character; >> Vidmem : Vidmem_Array (0 .. Max_Size); >> >> for Vidmem'Address use 16#000B_8000#; > > There may be a real issue here. This was segment register =3D B800 and= > offset register =3D 0000, for the base address. Ada does not make any > distinction about segment and offset. So it should map the linear address - if possible at all. > There should be something stated in > the compiler's documentation, to know how it maps linear address to > segment:offset address. Technically there's only one address, even if there are several ways to address it. It's never been a real issue unless you were comparing addresses, but even then they were usually normalized before doing so. Vinzent. -- = You know, we're sitting on four million pounds of fuel, one nuclear weap= on, and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it? -- Rockhound, "Armageddon"