User Tools

Site Tools


cdc:nos2.source:nam5871:octdis

OCTDIS

Table Of Contents

Source Code

OCTDIS.txt
  1. *DECK OCTDIS
  2. *IF DEF,STAT
  3. IDENT OCTDIS 000100
  4. EXT XTRACE 000200
  5. ENTRY OCTDIS 000300
  6. M1 VFD 60/55B 000400
  7. M2 VFD 60/55555500000000000000B 000500
  8. OCTDIS EQ *+4S12 000600
  9. *#
  10. *1DC OCTDIS
  11. * 1. PROC NAME AUTHOR DATE
  12. * OCTDIS P.C.TAM 77/08/03
  13. *
  14. * 2. FUNCTIONAL DESCRIPTION.
  15. * EXAMINE A DISPLAY CODE WORD, REPLACING ALL 00B BY BLANKS.
  16. *
  17. * 3. METHOD USED.
  18. * BLANK LEADING ZEROS FOR THE FIRST SEVEN CHARACTERS.
  19. * BLANK THE LAST THREE CHARACTERS OF WORD.
  20. *
  21. * 4. ENTRY PARAMETERS.
  22. * FIRST PARAMETER REPRESENT WORD TO BE EXAMINED.
  23. *
  24. * 5. EXIT PARAMETERS.
  25. * SECOND PARAMETER IS STORAGE OF RESULT.
  26. *
  27. * 6. COMDECKS CALLED
  28. * INPARU MACDEF
  29. *
  30. * 7. ROUTINES CALLED.
  31. * XTRACE
  32. *
  33. * 8. DAYFILE MESSAGES.
  34. * NONE
  35. *#
  36. *CALL MACDEF
  37. *CALL INPARU
  38. DEBUG1 IFEQ DEBUG,1,6
  39. SX6 A1
  40. SA6 TEMP
  41. SX1 XOCTDIS
  42. RJ XTRACE
  43. SA1 TEMP
  44. SA1 X1
  45. ENDIF DEBUG1 001000
  46. 001100
  47. SA2 A1+1 (X1) = ADDR OF WORD TO BE CHECKED 001200
  48. (X2) = ADDR OF WORD FOR STORAGE 001300
  49. MX0 54 (X0) = 77777777777777777700B 001400
  50. SB1 1 (B1) = START OF LOOP VALUE 001500
  51. MX6 0 001600
  52. SA4 M1 (X4) = 00000000000000000055B 001700
  53. SB2 7 (B2) = END VALUE OF LOOP 001800
  54. SA3 X1 (X3) = WORD TO BE CHECHED 001900
  55. LOOP GT B1,B2,EOL 002000
  56. LX3 6 GET NEXT CHAR FROM RIGHT 002100
  57. LX6 6 PREPARE TO ACCEPT CHAR 002200
  58. BX7 -X0*X3 GET A CHAR 002300
  59. NZ X7,SKIP1 002400
  60. 002500
  61. BX6 X6+X4 CONVERT TO BLANK 002600
  62. JP SKIP2 002700
  63. 002800
  64. SKIP1 BX6 X6+X7 002900
  65. 003000
  66. SKIP2 SB1 B1+1 CONTINUE PROCESSING 003100
  67. JP LOOP 003200
  68. 003300
  69. EOL SA5 M2 (X5) = 55555500000000000000B 003400
  70. BX6 X6+X5 BLANK OUT THE REST OF THE WORD 003500
  71. LX6 18 003600
  72. SA6 X2 003700
  73. JP OCTDIS 003800
  74. XOCTDIS DATA L*OCTDS*
  75. TEMP BSS 1
  76. END 003900
  77. *ENDIF
cdc/nos2.source/nam5871/octdis.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator