User Tools

Site Tools


cdc:nos2.source:nam5871:ssdacr

SSDACR

Table Of Contents

  • [00005] SSDACR - ASCII CONVERSION ROUTINES.
  • [00008] ASCII CONVERSION ROUTINES.

Source Code

SSDACR.txt
  1. *DECK SSDACR
  2. IDENT SSDACR
  3. ENTRY SSDCAD
  4. ENTRY SSDCDA
  5. TITLE SSDACR - ASCII CONVERSION ROUTINES.
  6. *COMMENT ASCII CONVERSION ROUTINES.
  7. SSDACR SPACE 4,10
  8. *** SSDACR - ASCII CONVERSION ROUTINES.
  9. *
  10. * S. H. FISCHER. 81/08/11.
  11. SPACE 4,10
  12. *** THIS FUNCTION CONVERTS ASCII CHARACTERS TO 6 BIT DISPLAY
  13. * CODE CHARACTERS AND ASCII DISPLAY CODE CHARACTERS TO ASCII
  14. * CHARACTERS.
  15. SPACE 4,10
  16. *** SYMPL CALLING SEQUENCE.
  17. *
  18. * ASC = SSDCDA(DIS)
  19. *
  20. * DIS = SSDCAD(ASC)
  21. *
  22. * ASC = 7 BIT ASCII CHARACTER.
  23. * DIS = 6 BIT DISPLAY CODE CHARACTER.
  24. SSDCDA SPACE 4,10
  25. SSDCDA EQ *+1S17D CONVERT DISPLAY TO ASCII
  26. CDAX EQU *
  27. SA2 X1 FETCH DISPLAY CODE CHARACTER
  28. MX3 -6
  29. BX4 -X3*X2 INSURE 6 BIT CHARACTER
  30. SA5 TVXD+X4 READ ASCII TRANSLATION
  31. AX5 18
  32. SX6 X5
  33. EQ CDAX RETURN WITH CHARACTER
  34. SSDCAD SPACE 4,10
  35. SSDCAD EQ *+1S17D CONVERT ASCII TO DISPLAY CODE
  36. CADX EQU *
  37. SA2 X1 FETCH ASCII CHARACTER
  38. SX3 177B
  39. BX4 X3*X2 INSURE 7 BIT CHARACTER
  40. SA5 TVXD+X4 READ DISPLAY CODE
  41. SX3 77B
  42. BX6 X3*X5 EXTRACT CHARACTER
  43. EQ CADX RETURN WITH CHARACTER
  44.  
  45. LIST X
  46.  
  47. *CALL COMTVDT - IVT VIRTUAL ASCII / DISPLAY CODE TRANSLATION
  48.  
  49. END
cdc/nos2.source/nam5871/ssdacr.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator