Skip to main content

Module cmdline

Module cmdline 

Source
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§

CommandLine
The commandLine protocol answer.
Editor
The editor as the ROM left it.
EditorLayout
Where a model’s ROM keeps its editor in RAM (wiki: hardware/command-line). *_ptr fields 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.