home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / arch / 11970 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.9 KB  |  49 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!munnari.oz.au!uniwa!cujo!cc.curtin.edu.au!zrepachol
  3. From: zrepachol@cc.curtin.edu.au
  4. Subject: Re: Any use for Branch if Even/Odd ?
  5. Message-ID: <1992Dec28.213231.1@cc.curtin.edu.au>
  6. Lines: 37
  7. Sender: news@cujo.curtin.edu.au (News Manager)
  8. Organization: Curtin University of Technology
  9. References: <endecotp.723992157@cs.man.ac.uk> <Bz2MMK.GIL@world.std.com> <JAN.92Dec15131734@pallas.neuroinformatik.ruhr-uni-bochum.de>
  10. Date: Mon, 28 Dec 1992 12:32:31 GMT
  11.  
  12. In article <JAN.92Dec15131734@pallas.neuroinformatik.ruhr-uni-bochum.de>, jan@pallas.neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen) writes:
  13. > In article <1992Dec14.203631.16388@CSDNewsHost.Stanford.EDU> 
  14. > andy@SAIL.Stanford.EDU (Andy Freeman) writes:
  15. >    Does anyone know why they preferred even/odd to >=0/<0?  Sometimes one
  16. >    has to test the sign bit, so why not use it whenever one can use any
  17. >    bit to split things into two classes?
  18. > Part of the reason might be that this distinction (>=0/<0) is used
  19. > in a number of places to distinguish a system address, which has the
  20. > MSB set, from other data, eg. a PID; this is used in I/O completion:
  21. > if <0, the PID cell is reinterpreted as a routine in system space
  22. > to call, as this I/O has been started by some system component and 
  23. > not a user process.)
  24.  
  25. No, No, No... It was in BLISS before the vax was speced, let allone VMS written.
  26.  
  27. The pain of 0/~=0 is that you have a horror session in getting ~true to always
  28. be false and visa versa. To parody some user code from a vax system...
  29.  
  30. TRUE  = byte 1
  31. False = byte 0   IBMs don't have bits, and we must be 'standard'
  32. ...
  33. foo = ~TRUE      foo now contains 376 oct, not 0
  34. ...
  35. if FALSE(foo)    ah hum,... oh shit...
  36. ...
  37.  
  38. Add in programers who inc/dec logicals and life can soon become a nightmare
  39.  
  40. ~Paul
  41.  
  42. PS The above example is lifted from a real life PL/I system that could make
  43. news headlines if it failed...
  44.  
  45.  
  46.