User Tools

Site Tools


cdc:nos2.source:nam5871:exfrstf

EXFRSTF

Table Of Contents

Source Code

EXFRSTF.txt
  1. *DECK EXFRSTF
  2. IDENT FIRSTF
  3. ENTRY FIRSTF
  4. USE /TSBMDAT/
  5. CTSBLWA BSS 1
  6. TSBFWA BSS 1
  7. PTSBLWA BSS 1
  8. BIGFREE BSS 1
  9. FFFWA BSS 1
  10. USE /*/
  11. **
  12. * FIRSTF
  13. *
  14. * FIRSTF SEARCHES THE TSB AREA TO LOCATE THE FIRST FREE TSB
  15. * ADDRESS AND SETS THE LOCATION INTO CELL FFFWA
  16. *
  17. *
  18. EJECT
  19. FIRSTF BSS 1
  20. SA3 CTSBLWA LAST ADDRESS TO CHECK
  21. SA1 TSBFWA START ADDRESS OF TSB
  22. SB3 X3
  23. SA2 X1 GET TSB HEADER
  24. FF1 PL X2,FINISH FREE TSB, SEARCH FINISHED
  25. SB2 X2
  26. SA2 A2+B2 NEXT ADDRESS TO CHECK
  27. SB4 A2
  28. LE B4,B3,FF1 NOT AT END OF TSB AREA, SO LOOP
  29. SA2 B3 FORCE ADDRESS TO LAST TSB HEADER
  30. *
  31. * FOUND FREE TSB OR REACHED END OF SEARCH AREA
  32. *
  33. FINISH SX6 A2 SAVE ADDRESS
  34. SA6 FFFWA
  35. EQ FIRSTF RETURN
  36. END
cdc/nos2.source/nam5871/exfrstf.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator