Expand description
The command line being edited and the state of the ROM’s editor (entry mode, alpha, shifts), read from RAM without pressing a key.
The ROM keeps the text reversed and NUL-terminated just below its temporary environments, with no length field; the cursor and the editor’s flags sit in system RAM. Locations per model were found by observation (wiki: hardware/command-line).
Structs§
- Command
Line - The
commandLineprotocol answer. - Editor
- The editor as the ROM left it.
- Editor
Layout - Where a model’s ROM keeps its editor in RAM (wiki:
hardware/command-line).
*_ptrfields hold 5-nibble pointers; the others are nibbles whose bits are listed with them.
Constants§
- MAX_
CHARS - Most characters read (the 49G’s RAM could hold more, but no line the ROM edits is that long; more means the pointers are not the ROM’s).
Functions§
- command_
line - The command line of
machine: open or not, its text and cursor. - editor
- The editor of
machine(48SX, 48GX, 49G). - read
- Read the editor through
layout.