User Tools

Site Tools


cdc:nos2.source:nam5871:imns

Table of Contents

IMNS

Table Of Contents

  • [00006] IMNS - MOVE NON-OVERLAPPING STRING
  • [00010] MOVE NON-OVERLAPPING STRING.

Source Code

IMNS.txt
  1. *DECK IMNS
  2. IDENT IMNS
  3. *CALL COPYRITE CDCNET - COPYRIGHT CONTROL DATA. 1992.
  4. ENTRY IMNS
  5. SYSCOM B1
  6. TITLE IMNS - MOVE NON-OVERLAPPING STRING
  7. COMMENT IMNS - MOVE NON-OVERLAPPING STRING.
  8. COMMENT COPYRIGHT CONTROL DATA SYSTEMS INC. 1994.
  9. SPACE 4,10
  10. ** IMNS - MOVE NON-OVERLAPPING STRING.
  11. *
  12. * MOVE DATA FROM A SOURCE BUFFER TO A DESTINATION BUFFER.
  13. *
  14. * *SYMPL* CALL.
  15. *
  16. * IMNS (NUMBITS, SRCBUF, SRCBIT, DSTBUF, DSTBIT);
  17. *
  18. * ENTRY NUMBITS = NUMBER OF BITS TO MOVE.
  19. * SRCBUF = ADDRESS OF THE SOURCE BUFFER.
  20. * SRCBIT = STARTING BIT POSITION IN THE SOURCE BUFFER
  21. * FIRST WORD.
  22. * DSTBUF = ADDRESS OF THE DESTINATION BUFFER.
  23. * DSTBIT = STARTING BIT POSITION IN THE DESTINATION
  24. * BUFFER FIRST WORD.
  25. *
  26. * EXIT SRCBUF = NEXT WORD ADDRESS OF THE SOURCE BUFFER.
  27. * SRCBIT = NEXT BIT POSITION IN THE SOURCE BUFFER.
  28. * DSTBUF = NEXT WORD ADDRESS OF THE DESTINATION BUFFER.
  29. * DSTBIT = NEXT BIT POSITION IN THE DESTINATION BUFFER
  30. * FIRST WORD.
  31. *
  32. * CALLS XMNS=
  33. *
  34. * USES A1, A2, A3, A5, A6.
  35. * B1, B2, B4.
  36. * X0, X1, X3, X4, X5, X6.
  37. *
  38. IMNS SPACE 4,10
  39. IMNS SUBR ENTRY/EXIT
  40. SB1 1
  41. SX6 A1 SAVE PARAMETER ARRAY ADDRESS
  42. SA6 PARRAY
  43. SA2 A1 GET NUMBER OF BITS TO MOVE
  44. SA2 X1
  45. BX0 X2
  46. SA2 A1+B1 GET SOURCE BUFFER ADDRESS
  47. SA3 A2+B1 GET SOURCE STARTING BIT
  48. SA2 X2
  49. SA4 X3
  50. SB2 X4
  51. SA3 A3+B1 GET DESTINATION BUFFER ADDRESS
  52. SA4 X3
  53. SA3 A3+B1 GET DESTINATION STARTING BIT
  54. SA5 X3
  55. SB4 X5
  56.  
  57. RJ =XMNS= MOVE DATA
  58.  
  59. SA1 PARRAY
  60. SX6 X2
  61. SA3 X1+B1 SET SOURCE BUFFER NEW POSITION
  62. SA6 X3
  63. SX6 B2
  64. SA3 X1+2
  65. SA6 X3 SET SOURCE NEW BIT POSITION
  66. SX6 X4
  67. SA3 X1+3 SET DESTINATION BUFFER NEW POSITION
  68. SA6 X3
  69. SX6 B4
  70. SA3 X1+4
  71. SA6 X3 SET DST BIT POSITION
  72. EQ IMNSX RETURN
  73.  
  74.  
  75. PARRAY BSS 1 PARAMETER ARRAY ADDRESS
  76.  
  77. END
  78. *WEOR
cdc/nos2.source/nam5871/imns.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator