BASIC editor: Right copies one character, End the rest, Up recalls

After a bare line number, Right copies that program line one character at
a time and End copies the rest; Delete skips a character of it. Up brings
back the last line entered, cursor at the end. The last line is kept in a
256-byte buffer taken from the end of the program arena, so programs still
start at 8482h and have about 20.3 KB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
brad ArantandClaude Opus 5.5 committed 2026-11-30 08:12:59 -08:00
1 parent eb72d85834
commit b629cbec00
7 files changed
+2033 -1978

No files matched your search

+14 -8
View File
@@ -47,6 +47,7 @@ RUN
- **Left** and **Right** move the cursor along the line; **Home** and **End**
(or Ctrl-A and Ctrl-E) jump to its start and end. What you type goes in at
the cursor.
- **Up** brings back the last line you entered, with the cursor at its end.
- **Backspace** rubs out the character before the cursor, **Delete** the one
under it.
- **Ctrl-U** erases the whole line.
@@ -57,18 +58,23 @@ case, except inside quotes.
### Editing a program
- To change a line, type its number and press **Right**: the line comes up
as `LIST` would show it, with the cursor at the end, ready to edit. Move
back with Left or Home, fix it, and press Enter. If there is no such line,
Right does nothing.
- To copy a line, bring it up the same way and change its number.
- To change a line, type its number and press **Right**: each press copies
one more character of the old line, as if you were retyping it. **End**
copies the rest of it at once. While copying, anything you type goes in
as new text, and **Delete** skips a character of the old line, so to
change a word, copy up to it, press Delete once for each old letter, and
type the new one. Enter takes the line as it now stands: whatever has not
been copied yet is left off, so press End first to keep it. If there is no
such line, Right and End do nothing.
- To copy a line to a new number, type the old number, press End, then Home,
Delete the old number and type the new one.
- To replace a line, you can also type it again with the same number.
- To delete a line, type its number alone.
```
10 PRINT "HELO"
10→ the line comes back: 10 PRINT "HELO"
←←←L Enter now it is 10 PRINT "HELLO"
10→→→→→→→→→→→ copies 10 PRINT "HEL
L End Enter now it is 10 PRINT "HELLO"
```
- Lines are kept in number order whatever order you type them in. Number in
@@ -1277,7 +1283,7 @@ while keeping the cave connected, mirrored and free of dead ends
| Item | Limit |
|---|---|
| Program and arrays together | about 20.5 KB |
| Program and arrays together | about 20.3 KB |
| Line numbers | 0 – 65535 |
| Line length | 250 characters typed |
| Numeric variables | A–Z and A0–Z9 |