| @@ -205,6 +205,20 @@ RUN 20 | |||
| 205 | 205 | B | |
| 206 | 206 | ``` | |
| 207 | 207 | ||
| 208 | + | `RUN "<name>"` (or `RUN <string variable>`) loads a program from the [flash storage](#10-flash-storage) | |
| 209 | + | and runs it. It also works inside a program, which then continues as the loaded one (the old program and | |
| 210 | + | its variables are gone): | |
| 211 | + | ||
| 212 | + | ```basic | |
| 213 | + | 10 PRINT "CHILD PROGRAM" | |
| 214 | + | SAVE "CHILD" | |
| 215 | + | NEW | |
| 216 | + | RUN "CHILD" | |
| 217 | + | ``` | |
| 218 | + | ```text | |
| 219 | + | CHILD PROGRAM | |
| 220 | + | ``` | |
| 221 | + | ||
| 208 | 222 | ### LIST | |
| 209 | 223 | ||
| 210 | 224 | `LIST` lists the whole program. `LIST <line>` lists one line, `LIST <first>,<last>` a range. | |
| @@ -924,7 +938,8 @@ See [STORAGE.md](STORAGE.md) for the details of the file system and for copying | |||
| 924 | 938 | ||
| 925 | 939 | ### SAVE, LOAD | |
| 926 | 940 | ||
| 927 | - | `SAVE "<name>"` stores the program, `LOAD "<name>"` replaces the program in memory with a stored one. | |
| 941 | + | `SAVE "<name>"` stores the program, `LOAD "<name>"` replaces the program in memory with a stored one | |
| 942 | + | (it does not start it; `RUN "<name>"` loads and starts it, see [RUN](#run)). | |
| 928 | 943 | ||
| 929 | 944 | ```basic | |
| 930 | 945 | 10 PRINT "HELLO FROM DISK" | |
| @@ -953,6 +968,9 @@ TWO.BAS BAS 11 | |||
| 953 | 968 | 2 FILES, 1008 KB FREE | |
| 954 | 969 | ``` | |
| 955 | 970 | ||
| 971 | + | A file browser written in BASIC (list, run, view, rename, copy, delete) is in | |
| 972 | + | [`examples/filer.bas`](../examples/filer.bas), see [FILER.md](FILER.md). | |
| 973 | + | ||
| 956 | 974 | ### ERASE, RENAME | |
| 957 | 975 | ||
| 958 | 976 | `ERASE "<name>"` deletes a file, `RENAME "<old>","<new>"` renames it. | |
revised this gist 4 hours ago
·
ac8a8f9
1 file changed, 19 insertions, 1 deletion
revised this gist 4 hours ago
·
92e283b
1 file changed, 1216 insertions
Diff is too large to be shown