mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-09 20:51:51 +09:00
basic: proof that gosub in the middle of the statements works now
This commit is contained in:
7
assets/gosubtest.bas
Normal file
7
assets/gosubtest.bas
Normal file
@@ -0,0 +1,7 @@
|
||||
1 GOTO START
|
||||
100 LABEL PRINTRNDNUM
|
||||
110 K=FIX(RND(1)*256)
|
||||
120 PRINT " ";K;" ";
|
||||
130 RETURN
|
||||
1000 LABEL START
|
||||
1010 PRINT "HELLO,";:GOSUB PRINTRNDNUM:PRINT(IF K==1 THEN "WORLD" ELSE "WORLDS")
|
||||
Reference in New Issue
Block a user