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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60a3674f34a79420 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-03 08:45:10 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!feed2.onemain.com!feed1.onemain.com!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3C3485B0.94A423C3@west.raytheon.com> From: Jerry Petrey <"jdpetrey"@west.raytheon.com> X-Mailer: Mozilla 4.76 [en]C-CCK-MCD CSC;Raytheon (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: rep clause confusion References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 03 Jan 2002 09:24:16 -0700 NNTP-Posting-Host: 147.24.83.38 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1010075126 147.24.83.38 (Thu, 03 Jan 2002 10:25:26 CST) NNTP-Posting-Date: Thu, 03 Jan 2002 10:25:26 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:18484 Date: 2002-01-03T09:24:16-07:00 List-Id: "chris.danx" wrote: > > Hi, > > I've been looking at rep clauses(?), for laying seg descriptors for the x86, > and one thing confuses me. > > for some_type > use record > abc at 0 range 0..7; > def at 1 range 0..7; > end record; > > The 'at' bit confuses me. Does this mean the storage element (numbered from > zero)? If so that means, abc spans storage element zero bits 0..7 and def > spans storage element 1 bits 0..7. Is this correct? > > Happy New Year, > Chris Yes, the value after AT gives a storage unit (as defined in package System - in this case, apparently a byte) and it can extend outside the storage unit. You could have written the following with the same results: for some_type use record abc at 0 range 0..7; def at 0 range 8..15; end record; Jerry -- ----------------------------------------------------------------------------- -- Jerry Petrey -- Senior Principal Systems Engineer - Navigation, Guidance, & Control -- Raytheon Missile Systems - Member Team Ada & Team Forth -- NOTE: please remove in email address to reply -----------------------------------------------------------------------------