User Tools

Site Tools


cdc:nos2.source:nam5871:ssbcbw

SSBCBW

Table Of Contents

  • [00004] SSBCBW - CLEAR BIT IN WORD.
  • [00007] CLEAR BIT IN WORD.

Source Code

SSBCBW.txt
  1. *DECK SSBCBW
  2. IDENT SSBCBW
  3. ENTRY SSBCBW
  4. TITLE SSBCBW - CLEAR BIT IN WORD.
  5. COMMENT CLEAR BIT IN WORD.
  6. SSBCBW SPACE 4,10
  7. *** SSBCBW - CLEAR BIT IN WORD.
  8. *
  9. * S. H. FISCHER. 81/07/15.
  10. SPACE 4,10
  11. *** SSBCBW IS A ROUTINE TO EFFICIENTLY CLEAR A BIT IN A WORD TO
  12. * THE RIGHT OF BIT 48. THE BIT NUMBER IS 1 FOR BIT 47, 2 FOR
  13. * BIT 46, ETC
  14. SPACE 4,10
  15. *** SYMPL CALLING SEQUENCE.
  16. *
  17. * SSBCBW( WORD,BITN)
  18. *
  19. * WORD = WORD TO CLEAR BIT IN.
  20. *
  21. * BITN = BIT NUMBER TO CLEAR.
  22. CBW SPACE 4,10
  23. SSBCBW EQ *+1S17D
  24. CBWX EQU *
  25. SA3 A1+1 BIT NUMBER ADDRESS
  26. SA2 X1 WORD
  27. MX4 1
  28. SA3 X3 BIT NUMBER
  29. SB7 X3-49 B7 = N - 49 = -( 49 - N )
  30. LX4 -B7 POSITION BIT
  31. BX6 -X4*X2 CLEAR BIT
  32. SA6 X1
  33. EQ CBWX RETURN
  34. END
cdc/nos2.source/nam5871/ssbcbw.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator