comp.lang.ada
 help / color / mirror / Atom feed
* Bit operators
@ 2000-02-12  0:00 Joshua Grant
  2000-02-13  0:00 ` Robert Dewar
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Joshua Grant @ 2000-02-12  0:00 UTC (permalink / raw)


I was recently assigned a project for one of my classes that gave us the
option of implementing a simplified MIPS assempler in any preferred higher
level language.  I have choosen ADA, but I am running into a problem with
the bit operators.  I can't find them!  In case someone isn't sure of my
question.  In C++ if you perform an 'and' operation with the '&'
operator like...

base 10 
1 = 1 & 3
3 = 3 & 3
2 = 6 & 3
3 = 7 & 3

base 2 (same as above)
001 = 001 & 011
011 = 011 & 011
010 = 110 & 011
011 = 111 & 011

Can anyone tell me if ADA has an equivalent set of functions for 'and' and
'or'?  If you know please respond ASAP, I need to know if I should rewrite
my project in a language that supports those operations.


Thanks,
Josh





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-02-13  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-12  0:00 Bit operators Joshua Grant
2000-02-13  0:00 ` Robert Dewar
2000-02-13  0:00   ` Gautier
2000-02-13  0:00 ` Gautier
2000-02-13  0:00 ` Matthew Heaney
2000-02-13  0:00   ` Bit operators & asm in Ada (novice question) G
2000-02-13  0:00     ` Vladimir Olensky
2000-02-13  0:00     ` Gautier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox