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.9 required=5.0 tests=BAYES_00 autolearn=ham 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,ASCII-7-bit Date: Thu, 03 Feb 2011 09:00:24 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110123 Thunderbird/3.1.8 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> In-Reply-To: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4d4a6096$0$6881$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 03 Feb 2011 09:00:22 CET NNTP-Posting-Host: d86526ed.newsspool2.arcor-online.net X-Trace: DXC=@dHl]QmAC@T<<0iRN7DLEQA9EHlD;3YcR4Fo<]lROoRQ8kFejVX4b On 2/3/11 6:52 AM, Syntax Issues wrote: > I am planning to start learning lower-level programming with ada, > however, I was unable to find a solid tutorial on writing directly to > a memory address or interfacing with assembly. Does anyone know where > I can find a reference to some tutorials/information? Below is an > example of code I would like to be able to implement. Keywords include the 'Address attribute, representations (LRM 13.3), possibly address-to-access conversions, some details from Annex C; many text books on Ada 95 and later will explain. A compiler will explain how it supports machine code insertions on a given platform. The tutorial "Accessing memory as a string" by Robert Dewar might be useful. The Ada archives should, I think, have examples of writing to DOS's video buffer.