User Tools

Site Tools


cdc:nos2.source:nam5871:exzero

EXZERO

Table Of Contents

  • [00004] ZERO A BUFFER

Source Code

EXZERO.txt
  1. *DECK,EXZERO
  2. IDENT ZERO
  3. SPACE 4
  4. ** ZERO - ZERO A BUFFER
  5. *
  6. * ZERO(LOC(BUFFER),SIZE) ; (SYMPL CALL)
  7. *
  8. * ENTRY BUFFER - LOCATION OF FIRST WORD OF BUFFER
  9. * SIZE - WORD COUNT OF BUFFER
  10.  
  11. ENTRY ZERO
  12. ZERO BSS 1
  13. SB1 1
  14. SA2 A1+B1 GET LOC OF SIZE
  15. MX6 0
  16. SA2 X2 GET SIZE
  17. ZR X2,ZERO EXIT IF ZERO
  18. SA3 X1
  19. SA6 X3 FIRST ADDRESS TO CLEAR
  20. SB2 X2-1 RESIDUAL COUNT
  21. EQ B2,B0,ZERO EXIT IF ONLY ONE
  22. ZERO.LP SB2 B2-B1
  23. SA6 A6+B1
  24. NZ B2,ZERO.LP
  25. EQ ZERO DONE
  26. END
cdc/nos2.source/nam5871/exzero.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator