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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c1b618c3b35129ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-12 19:44:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!sunqbc.risq.qc.ca!news3.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Freelancer" Newsgroups: comp.lang.ada References: <87pugp2x4p.fsf@deneb.enyo.de> Subject: Re: logical operations in Ada X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <512i6.239390$JT5.8526649@news20.bellglobal.com> Date: Tue, 13 Feb 2001 03:40:49 GMT NNTP-Posting-Host: 64.229.200.7 X-Trace: news20.bellglobal.com 982035649 64.229.200.7 (Mon, 12 Feb 2001 22:40:49 EST) NNTP-Posting-Date: Mon, 12 Feb 2001 22:40:49 EST Organization: Sympatico Xref: supernews.google.com comp.lang.ada:5211 Date: 2001-02-13T03:40:49+00:00 List-Id: I am well aware of ada.characters.handling. That isn't my objective. As you said, I am trying to fiddle with bits. How to do this in Ada? A small example would be greatly appreciated. :) Thank you for your references though. "Florian Weimer" wrote in message news:87pugp2x4p.fsf@deneb.enyo.de... > "Freelancer" writes: > > > Could anyone tell me how to do basic operation on ASCii characters? > > Why do you think these are 'logical operations'? > > > More specifically, I would like to do a to_upper function for example : > > > > 'a' becomes 'A' ( a to_upper function) > > Do you need a function for case conversion, or do you want to do > fiddle with bits? Have a look at the package Ada.Characters.Handling > or modular types (for which logical operations are defined). > > > Is it possible to define a block of assembly language code in an ada > > program as well? > > Yes, see your compiler documentation on 'Machine Code Insertions'.