home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8431 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1016 b 

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