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.
 
 
 
 
 
 

18 lines
399 B

  1. 10 REM 'GOSUB-OF' TEST PROGRAM
  2. 20 PRINT "ENTER THE NUMBER 1, 2, OR 3";
  3. 30 INPUT X
  4. 35 IF X < 0 THEN 999
  5. 40 PRINT "THE GOSUB-0F STATEMENT ";
  6. 50 GOSUB X OF 100, 200, 300
  7. 60 GOTO 20
  8. 100 REM SUBROUTINE #1
  9. 110 PRINT "BRANCHED TO SUBROUTINE #1"
  10. 120 RETURN
  11. 200 REM SUBROUTINE #2
  12. 210 PRINT "BRANCHED TO SUBROUTINE #2"
  13. 220 RETURN
  14. 300 REM SUBROUTINE #3
  15. 310 PRINT "BRANCHED TO SUBROUTINE #3"
  16. 320 RETURN
  17. 999 END