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.
 
 
 
 
 
 

44 lines
1.3 KiB

  1. 010 OPTION VERSION BYWATER
  2. 020 OPTION BUGS OFF
  3. 100 REM PAD80.BAS
  4. 101 REM Pad the test output to 80 characters.
  5. 102 REM bwbasic P001.BAS > P001.OUT
  6. 103 REM echo "500 DATA P001.OUT, P001.80" > PAD80.INP
  7. 104 REM bwbasic PAD80.BAS
  8. 105 REM diff P001.run P001.80
  9. 109 REM ----------------------------------------------------------
  10. 120 REM GET FILE NAME INTO A$
  11. 125 DELETE 500
  12. 126 MERGE "PAD80.INP"
  13. 127 RESTORE 500
  14. 130 READ A$
  15. 135 REM PRINT "SOURCE:"; A$
  16. 140 READ B$
  17. 145 REM PRINT "TARGET:"; B$
  18. 300 REM ----------------------------------------------------------
  19. 301 REM PROCESS FILENAME IN A$
  20. 302 REM ----------------------------------------------------------
  21. 310 OPEN A$ FOR INPUT AS #2
  22. 315 OPEN B$ FOR OUTPUT AS #3
  23. 320 REM PRINT "PROCESS TEXT LINE"
  24. 330 IF EOF( 2 ) THEN 390
  25. 335 REM PRINT "NOT EOF"
  26. 340 LINE INPUT #2, C$
  27. 345 REM PRINT "C$=";C$
  28. 350 C$ = LEFT$( C$ + SPACE$( 80 ), 80 )
  29. 355 REM PRINT "yyy"
  30. 360 REM WRITE OUTPUT LINE
  31. 370 PRINT #3, C$
  32. 375 REM PRINT "zzz"
  33. 380 GOTO 320
  34. 390 REM CLOSE FILES
  35. 400 CLOSE #3
  36. 410 CLOSE #2
  37. 499 REM ----------------------------------------------------------
  38. 500 REM REPLACED BY CONTENTS OF "PAD80.INP"
  39. 501 REM ----------------------------------------------------------
  40. 900 REM ----------------------------------------------------------
  41. 910 REM THE END
  42. 920 REM ----------------------------------------------------------
  43. 999 END