home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt.edu!wbdst
- From: wbdst+@pitt.edu (William B Dwinnell)
- Newsgroups: comp.lang.pascal
- Subject: Re: help ??
- Message-ID: <2330@blue.cis.pitt.edu>
- Date: 22 Jan 93 13:54:16 GMT
- References: <8269@kielo.uta.fi>
- Sender: news+@pitt.edu
- Organization: University of Pittsburgh
- Lines: 13
-
-
- "SHR" means "shift right" (thus "SHL" means "shift left". These are bit-level
- operations, which can be quite handy, although I don't know if they
- are supported in all Pascals (Turbo has them, though). SHR, for instance,
- shifts all the bits right in the variable it is given, and typically
- you can tell it how many bits to shoftxxxx shift.
- The AND is probably a Booleand AND, where Booleans are represented
- by integer values.
- What would happen if vi = 2, etc. would depend on your compiler,
- but the usual thing is for the lowest bit to be the actual Boolean
- value, the rest of the number being wasted space (no, kids, Boolansxxx
- Booleans DON'T usually take up 1 bit of space: its usually 8 at least).
- Got it?
-