basic: proof that gosub in the middle of the statements works now

This commit is contained in:
minjaesong
2020-12-16 11:50:21 +09:00
parent 5b3d569d06
commit b67c8ede6f

7
assets/gosubtest.bas Normal file
View 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")