home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / CUPL30-4.ZIP / LOOKUP.SI < prev    next >
Encoding:
Text File  |  1986-03-02  |  2.0 KB  |  67 lines

  1. Name            Lookup;
  2. Partno          CA0017;
  3. Revision        01;
  4. Date            3/10/85;
  5. Designer        T. Kahl;     
  6. Company         Assisted Technology, Inc.;
  7. Location        San Jose, CA.;
  8. Assembly        Example;
  9. Device        ra8p8;
  10.  
  11. /****************************************************************/
  12. /*                                                              */
  13. /* This is an example of the TABLE format for CUPL.  The lookup */
  14. /* table input consists of a 6 bit number for the radius of a   */
  15. /* circle (R0-5) and the output is the value for the perimeter  */
  16. /* of the circle (P0-7).                                        */
  17. /****************************************************************/
  18. /* Target Devices: 256 x 8 PROM  (RA8P8)                        */
  19. /****************************************************************/
  20.  
  21. ORDER:  Radius, %2, Perimeter;
  22. BASE:   DECIMAL;
  23. VECTORS:
  24. /* Radius       Perimeter */
  25. /* ------       --------- */
  26.     '00'          "000"
  27.     '01'          "006"
  28.     '02'          "013"
  29.     '03'          "006"
  30.     '04'          "025"
  31.     '05'          "019"
  32.     '06'          "040"
  33.     '07'          "031"
  34.     '08'          "050"    
  35.     '09'          "044"
  36.     '10'          "063"
  37.     '11'          "069"
  38.     '12'          "075"
  39.     '13'          "082"
  40.     '14'          "088"
  41.     '15'          "094"
  42.     '16'          "101"
  43.     '17'          "107"
  44.     '18'          "113"
  45.     '19'          "119"
  46.     '20'          "126"
  47.     '21'          "132"
  48.     '22'          "138"
  49.     '23'          "145"
  50.     '24'          "151"
  51.     '25'          "157"
  52.     '26'          "163"
  53.     '27'          "170"
  54.     '28'          "176"
  55.     '29'          "182"
  56.     '30'          "188"
  57.     '31'          "195"
  58.     '32'          "201"
  59.     '33'          "207"
  60.     '34'          "214"
  61.     '35'          "220"
  62.     '36'          "226"
  63.     '37'          "232"
  64.     '38'          "239"
  65.     '39'          "245"
  66.     '40'          "251"
  67.