ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
828 B

  1. 10 ' Test LSET & RSET - contributed by ChipMaster
  2. 20 OPEN "R", #1, "test.dat", 24
  3. 30 FIELD #1, 24 AS F1$
  4. 40 FOR X=1 TO 3
  5. 50 READ S$, M$
  6. 60 LSET F1$=S$
  7. 70 IF F1$<>M$ THEN PRINT "ERROR @ LSET '"; S$; "'" : GOTO 900
  8. 80 NEXT
  9. 100 FOR X=1 TO 3
  10. 110 READ S$, M$
  11. 120 RSET F1$=S$
  12. 130 IF F1$<>M$ THEN PRINT "ERROR @ LSET '"; S$; "'" : GOTO 900
  13. 140 NEXT
  14. 150 PRINT "pass"
  15. 900 CLOSE #1
  16. 910 END
  17. 1000 '*** TEST DATA ***
  18. 1010 DATA "THE RABBIT WENT LEFT", "THE RABBIT WENT LEFT "
  19. 1020 DATA "DOG", "DOG "
  20. 1030 DATA "", " "
  21. 1040 DATA "THE RABBIT WENT LEFT", " THE RABBIT WENT LEFT"
  22. 1050 DATA "DOG", " DOG"
  23. 1060 DATA "", " "