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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,be0ffa00e7ee1ac6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-28 20:30:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: An OS in Ada, why not RTEMS ? Date: Sun, 28 Apr 2002 21:29:45 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1020051003 13929 137.194.161.2 (29 Apr 2002 03:30:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 29 Apr 2002 03:30:03 +0000 (UTC) Return-Path: X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19-4.3mdk i686) X-Accept-Language: en Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:23210 Date: 2002-04-28T21:29:45-05:00 Hi, >- GNAT (or GCC) compiles to a logically flat memory model. That > ... >--- >with System; use System; >with System.Storage_Elements; use System.Storage_Elements; >procedure Hello is > Char : Character; > for Char'Address use To_Address (16#B8000#); >begin > Char := 'H'; >end Hello; >--- > ... >GNAT Do you expect this to put the character 'H' on the screen ? I think of storage elements as bytes, with bytes and characters being synonymous. However, the PC VGA card "thinks" storage_elements are words; 8-bits are for color attributes, and 8-bits are for the character. It took me a while to solve the mystery of very strange and seemingly random colored characters popping up on the screen. o o | \_/ -- ------------------------------------- -- Merge vertically for real address ------------------------------------- s n p @ t . o k i e k c c m -------------------------------------