basic: LABEL statement for GOTO/SUB

This commit is contained in:
minjaesong
2020-12-15 21:19:39 +09:00
parent f4f1f51804
commit 615db3b2ad
2 changed files with 49 additions and 14 deletions

12
assets/labeltest Normal file
View File

@@ -0,0 +1,12 @@
10 GOSUB PRINTHELLO
20 GOSUB PRINTHAI
30 GOSUB PRINTBYE
40 END
100 LABEL PRINTHELLO
110 PRINT "HELLO"
120 RETURN
200 LABEL PRINTHAI
210 PRINT "HAI"
220 RETURN
230 PRINT "BYE":LABEL PRINTBYE
240 RETURN