You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ Run this once after unpacking, and macOS will stop treating the binary as “fro
67
67
-**`READ` / `DATA`**: load numeric and string literals from `DATA` statements into variables.
68
68
-**`DEF FN`**: define simple user functions, e.g. `DEF FNY(X) = SIN(X)`.
69
69
-**`POKE`**: accepted as a no‑op (for compatibility with old listings; it does not touch real memory).
70
+
-**`CLR`**: resets all variables to 0/empty, clears GOSUB/FOR stacks and DATA pointer; DEF FN definitions are kept.
70
71
-**Variables**
71
72
-**Numeric variables**: `A`, `B1`, `AB`, `ATAKFLAG`, etc. Names may be longer than two characters; CBM-style **first two characters** identify the variable (e.g. `ATAKFLAG` and `ATA` refer to the same variable).
72
73
-**String variables**: names ending in `$`, e.g. `A$`, `NAME$`.
@@ -75,6 +76,7 @@ Run this once after unpacking, and macOS will stop treating the binary as “fro
* Ensure they round-trip correctly with PETSCII/ANSI mappings and existing `ASC`/`CHR$` behavior
32
-
33
26
* Include files / libraries
34
27
* Design a simple `INCLUDE "file.bas"` or similar directive processed at load time
35
28
* Allow splitting larger programs into multiple source files / libraries while preserving line-numbered semantics
36
29
* Consider search paths and guarding against recursive includes
37
30
38
-
* Multi-dimensional arrays(x,y,x)
31
+
---
32
+
33
+
**Completed (removed from list):**
34
+
- Multi-dimensional arrays — `DIM A(x,y)` (and up to 3 dimensions) in `basic.c`.
35
+
-**CLR statement** — Resets all variables (scalar and array elements) to 0/empty, clears GOSUB and FOR stacks, resets DATA pointer; DEF FN definitions are kept.
36
+
-**String case utilities** — `UCASE$(s)` and `LCASE$(s)` implemented (ASCII `toupper`/`tolower`); use in expressions and PRINT.
0 commit comments