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: a07f3367d7,c9d5fc258548b22a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!y26g2000yqd.googlegroups.com!not-for-mail From: John McCormick Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Thu, 3 Feb 2011 09:43:49 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> NNTP-Posting-Host: 134.161.242.221 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1296755030 4008 127.0.0.1 (3 Feb 2011 17:43:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 Feb 2011 17:43:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y26g2000yqd.googlegroups.com; posting-host=134.161.242.221; posting-account=jVm7MAoAAABZ69ylB7L9PjZAVQg4j4fC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:16849 Date: 2011-02-03T09:43:49-08:00 List-Id: On Feb 2, 11:52=A0pm, 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. Warning self promotion follows: Chapter 2 of the book "Building Parallel, Embedded, and Real-Time Applications with Ada" by McCormick, Singhoff, and Hugues includes a long section on low level programming with Ada. It covers both memory mapped and port I/O architectures. We develop polling and interrupt based device drivers. Everything is done using high level Ada abstractions for low level features. It includes a small amount of machine code insertion. We just turned in the final page proofs and expect to have hard oopy by April. See http://www.cambridge.org/gb/knowled= ge/isbn/item5659578 John