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.
 
 
 
 
 
 

63 lines
1.1 KiB

  1. 10 REM --------------------------------------------------------
  2. 20 REM GOSUB.BAS Test Bywater BASIC Interpreter GOSUB Statement
  3. 30 REM --------------------------------------------------------
  4. 40 GOSUB 160
  5. 50 PRINT "Test GOSUB Statements"
  6. 60 PRINT "---------------------"
  7. 70 PRINT
  8. 80 PRINT "1 - Run Subroutine"
  9. 90 PRINT "9 - Exit to system"
  10. 92 PRINT "x - Exit to BASIC"
  11. 100 PRINT
  12. 110 INPUT c$
  13. 120 IF c$ = "1" then
  14. gosub 430
  15. end if
  16. 125 IF c$ = "9" then
  17. goto 600
  18. end if
  19. 130 IF c$ = "x" then
  20. end
  21. end if
  22. 135 IF c$ = "X" then
  23. end
  24. end if
  25. 140 GOTO 10
  26. 150 END
  27. 160 REM subroutine to clear screen
  28. 170 PRINT
  29. 180 PRINT
  30. 190 PRINT
  31. 200 PRINT
  32. 210 PRINT
  33. 220 PRINT
  34. 230 PRINT
  35. 240 PRINT
  36. 250 PRINT
  37. 260 PRINT
  38. 270 PRINT
  39. 280 PRINT
  40. 290 PRINT
  41. 300 PRINT
  42. 310 PRINT
  43. 320 PRINT
  44. 330 PRINT
  45. 340 PRINT
  46. 350 PRINT
  47. 360 PRINT
  48. 370 PRINT
  49. 380 PRINT
  50. 390 PRINT
  51. 400 PRINT
  52. 410 PRINT
  53. 420 RETURN
  54. 430 REM subroutine to test branching
  55. 435 GOSUB 160
  56. 440 PRINT "This is the subroutine."
  57. 445 PRINT "Press any key: ";
  58. 450 INPUT x$
  59. 460 RETURN
  60. 600 GOSUB 160
  61. 610 PRINT "Exit from Bywater BASIC Test Program"
  62. 620 SYSTEM