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,4588fd816b58b081 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-08 03:33:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!isdnet!enst!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: How to output values in Hex on screen? Date: Fri, 8 Mar 2002 05:39:22 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <200203081033.LAA14218@bulgaria.otn.eurocopter.de> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1015587182 54509 137.194.161.2 (8 Mar 2002 11:33:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 8 Mar 2002 11:33:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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:20937 Date: 2002-03-08T05:39:22-06:00 Since Ada.Text_IO.Modular_IO is a generic package, the code needs to be something like this: -- Instantiate a package for unsigned_16 IO. package Unsigned_16._IO is Ada.Text_IO.Modular_IO (Interfaces.unsigned_16); -- Output a value to the screen Unsigned_16_IO.Put (Item => , Width => 9, -- output looks like 16#CDEF# Base => 16); ----- Original Message ----- From: "Christoph Grein" To: Sent: Friday, March 08, 2002 4:33 AM Subject: Re: How to output values in Hex on screen? > Ada.Text_IO.Modular_IO.Put (File : in File_Type; > Item : in Num; > Width: in Field := Default_Width; > Base : in Number_Base := Default_Base); > > > Which package or how do you do to put values of Unsigned_16 on screen in hex > > format? > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >