User Tools

Site Tools


cdc:nos2.source:nam5871:ns_xdfn

NS$XDFN

Table Of Contents

  • [00002] FUNC NS$XDFN(CHAR)U
  • [00004] NS$XDFN - CONVERT ASCII CHARACTER TO DISP. CODE.
  • [00008] CONVERT ASCII CHARACTER TO DISP. CODE.
  • [00032] PROC NS$DBG

Source Code

NS$XDFN.txt
  1. *DECK NS$XDFN
  2. FUNC NS$XDFN(CHAR)U; # CONVERT ASCII CHARACTER TO DISPLAY CODE #
  3.  
  4. # TITLE NS$XDFN - CONVERT ASCII CHARACTER TO DISP. CODE. #
  5.  
  6. BEGIN # NS$XDFN #
  7. #
  8. ** NS$XDFN - CONVERT ASCII CHARACTER TO DISP. CODE.
  9. *
  10. * J.C. LEE 1981
  11. *
  12. * THIS IS A FUNCTION SUBPROGRAM. ITS FUNCTION IS TO CONVERT
  13. * ASCII CHARACTER TO DISPLAY CODE.
  14. *
  15. * FUNC NS$XDFN(CHAR)U
  16. *
  17. * ENTRY:
  18. * CHAR - ASCII CHARACTER TO BE CONVERTED.
  19. *
  20. * EXIT:
  21. * NONE.
  22. *
  23. * METHOD:
  24. * *CHAR* IS USED AS AN INDEX INTO DISPLAY CODE CONVERSION
  25. * TABLE.
  26. *
  27. #
  28.  
  29. $BEGIN
  30. XREF
  31. BEGIN
  32. PROC NS$DBG; # TRACE PROCEDURE CALL #
  33. END
  34. $END
  35.  
  36. ITEM CHAR U; # ASCII CHARACTER #
  37.  
  38. ITEM DISPLAYTAB C(128) = " # ASCII TO DISPLAY CODE CONVERSION #
  39. !""#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
  40. ABCDEFGHIJKLMNOPQRSTUVWXYZ ";
  41.  
  42. CONTROL EJECT;
  43.  
  44. $BEGIN
  45. NS$DBG("XDFN"); # TRACE CALL #
  46. $END
  47.  
  48. NS$XDFN = C<CHAR,1>DISPLAYTAB; # CONVERT TO DISPLAY CODE #
  49.  
  50. RETURN;
  51. END # NS$XDFN #
  52. TERM
cdc/nos2.source/nam5871/ns_xdfn.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator