home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / EDUCATIN / K-CHING.LBR / TRILOGY.DZC / TRILOGY.DOC
Text File  |  2000-06-30  |  2KB  |  38 lines

  1.    I'm really pleased to see all the CP/M stuff on TABBS. I'm 
  2. currently  posting original items in Downloads, continuing the 
  3. CP/M tradition of putting things in the P.D.
  4.    Many of these are written specificly for the KAYPRO, but the 
  5. source should be valid if once you recompile it. My latest  
  6. project has been a small program to perform "tri-logical" 
  7. operations -- like Boolean arithmetic but in base 3
  8. instead of binary.
  9.    In this system,TRUE/FALSE (ON/OFF) are joined by a third 
  10. state: MAYBE. Consider this propostion:
  11.         (EATS GRASS) AND (SAYS MOO) --> (IS A COW)
  12.      The truth-table for this situation is that of the AND 
  13. operator. The corresponding tri-logic operation, &, is a little 
  14. more complex.
  15.              & | R O G
  16.              --+------
  17.              R | R R R
  18.              O | R O O
  19.              G | R O G
  20. [ROG] stands for a traffic light or NO,MAYBE,YES. thus:
  21.    1]  (EATS GRASS)yes & (SAYS MOO)maybe --> (IS A COW)maybe
  22.    2]  or "(EATS GRASS)R (SAYS MOO)O &." --> [red] ...et cetera.
  23.    Just remember to use Reverse Polish Notation, as in [2], which 
  24. Trilogy Interpreter will execute if entered as shown in "".
  25.    If this program doesn't behave on your screen, try running 
  26. TRINSTAL.COM first. (Be sure to include the DTA and MSG files 
  27. too.) But there are no machine specific codes in this program,
  28. so LF/CR is likely to be the only reason for TRINSTAL. 
  29.  
  30. ,,, jeff 
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.