Refresh the coverage numbers and document the new verbs
94.6% line, 98.6% function, measured from a coverage tree outside the source directory. The akgl targets are not in that figure and the entry now says so, because a reader of the table would otherwise read it as untested. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
16
README.md
16
README.md
@@ -135,19 +135,31 @@ The following commands/verbs are implemented:
|
||||
30 NEXT I#
|
||||
```
|
||||
|
||||
* `CLR`: Drop every variable and function definition, keeping the program
|
||||
* `CONT`: Resume a program stopped by `STOP`, from where it stopped. Refused if nothing stopped
|
||||
* `GOTO n`: Go to line n in the program
|
||||
* `GOSUB n`: Go to line n in the program and return here when `RETURN` is found
|
||||
* `IF (comparison) THEN (statement) [ELSE (statement)]` : Conditional branching
|
||||
* `HELP`: Re-list the line the last error happened on
|
||||
* `IF (comparison) THEN (statement) [ELSE (statement)]` : Conditional branching. Everything after
|
||||
`THEN` on the line belongs to the condition, and everything after an `ELSE` belongs to the
|
||||
`ELSE` — the same scoping a C128 uses
|
||||
* `INPUT "PROMPT STRING" VARIABLE`: Read input from the user and store it in the named variable
|
||||
* `LABEL IDENTIFIER`: Place a label at the current line number. Labels are constant integer identifiers that can be used in expressions like variables (including GOTO) but which cannot be assigned to. Labels do not have a type suffix (`$`, `#` or `%`).
|
||||
* `LIST [n-n]`: List all or a portion of the lines in the current program, with the same range forms as `DELETE`
|
||||
* `NEW`: Erase the program *and* every variable, and take the line counter home
|
||||
* `POKE ADDRESS, VALUE`: Poke the single byte VALUE into the ADDRESS
|
||||
* `PRINT (expression)`
|
||||
* `QUIT` : Exit the interpreter
|
||||
* `READ IDENTIFIER[, ...]` : Fill the named variables with data from a subsequent DATA statement
|
||||
* `RETURN` : return from `GOSUB` to the point where it was called
|
||||
* `RUN [n]`: Run the program currently in memory, optionally starting at line `n`
|
||||
* `STOP`: Stop program execution at the current point
|
||||
* `STOP`: Stop program execution at the current point. `CONT` resumes from there
|
||||
* `SWAP A, B`: Exchange two variables of the same type, arrays and their dimensions included
|
||||
* `TRON` / `TROFF`: Turn line tracing on and off. A traced program prints `[10][20]` inline
|
||||
ahead of each line, as a C128 does
|
||||
|
||||
Statements are separated by colons, so a line can hold several: `10 A# = 1 : PRINT A#`. An empty
|
||||
statement is legal, so a trailing colon and a run of them are both fine.
|
||||
|
||||
## Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user