User Tools

Site Tools


cdc:nos2.source:nam5871:ssbfpb

SSBFPB

Table Of Contents

  • [00004] SSBFPB - FIND PRIORITY BIT.

Source Code

SSBFPB.txt
  1. *DECK SSBFPB
  2. IDENT SSBFPB
  3. ENTRY SSBFPB
  4. TITLE SSBFPB - FIND PRIORITY BIT.
  5. *COMMENT FIND PRIORITY BIT.
  6. SSBFPB SPACE 4,10
  7. *** SSBFPB- FIND PRIORITY BIT.
  8. *
  9. * S. H. FISCHER. 81/07/16.
  10. SPACE 4,10
  11. *** SSBFPB IS A ROUTINE TO EFFICIENTLY FIND THE FIRST BIT SET
  12. * IN A WORD TO THE RIGHT OF BIT 48. THE VALUE RETURNED IS 1
  13. * FOR BIT 47, 2 FOR BIT 46 ETC. 49 IS RETURNED FOR ALL BITS
  14. * CLEAR.
  15. SPACE 4,10
  16. *** SYMPL CALLING SEQUENCE.
  17. *
  18. * SSBFPB( WORD, BITN).
  19. *
  20. * WORD = WORD TO FIND BIT IN.
  21. *
  22. * BITN = BIT NUMBER RETURNED.
  23. FPB SPACE 4,10
  24. SSBFPB EQ *+1S17D
  25. FPBX EQU *
  26. SA2 X1 WORD
  27. SA1 A1+1 ADDRESS TO RETURN BIT
  28. PX2 B0 GENERATE LEGAL EXPONENT
  29. NX2,B7 X2 FIND BIT
  30. SX6 B7+1
  31. SA6 X1 STORE BIT NUMBER
  32. EQ FPBX RETURN
  33. END
cdc/nos2.source/nam5871/ssbfpb.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator