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 Path: g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe10.iad.POSTED!1d9d5bd3!not-for-mail From: David Thompson Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Message-ID: References: <4d51169e$0$7657$9b4e6d93@newsspool1.arcor-online.net> <1bnp0pw1c8r5b$.guxc48qweiwe.dlg@40tude.net> <4d51a1c0$0$19486$882e7ee2@usenet-news.net> <0c9a8fbb-465e-4a9b-a9e6-dba67b648283@t19g2000prd.googlegroups.com> <6cf0950a-d2a3-4df4-9f19-23474d568c28@q40g2000prh.googlegroups.com> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Mon, 21 Feb 2011 07:17:18 UTC Organization: TeraNews.com Date: Mon, 21 Feb 2011 02:17:37 -0500 Xref: g2news2.google.com comp.lang.ada:18480 Date: 2011-02-21T02:17:37-05:00 List-Id: On Tue, 8 Feb 2011 18:33:46 -0800 (PST), Adam Beneschan wrote: > ... Dmitry asks, "How do you set the third > bit?", and you say, "Well, if the third bit is a Ready bit in a > hardware I/O register, I'd define a struct with bit components [yes, I > think C has those] and just assign 1 to the component, which would be > more readable than using a mask." ... C does have bit-field members of structs, but the standard leaves implementation-defined whether they go top-to-bottom or bottom-to-top, and in what size 'storage unit' (NOT the same thing as Ada's).