API docs / Open libraries / console.device
API · Devicesconsole.device jump table
Our open console.device: 2 calls with the same LVOs and registers as AmigaOS 3.2's, checked against the NDK 3.2 .fd file.
console.device's vectors past the six every device has (Open, Close, Expunge, Null, BeginIO, AbortIO), as GFOpenConsole builds them: LVO, call, registers. build-amiga.sh (with ../../libraries/common/check_fd.py) checks this against the NDK 3.2 console_lib.fd in the stove and stops on any difference; openconsole_dev.c's dev_vectors[] follows it line for line.
| LVO | Call | Registers | Notes |
|---|---|---|---|
| -42 | CDInputHandler | a0, a1 | |
| -48 | RawKeyConvert | a0, a1, d1, a2 | |
| -54 | private | none | ours: GetConSnip -> d0 the snip, 0-ended, or 0 (read it under Forbid) |
| -60 | private | none | ours: SetConSnip a0 (0-ended text, or 0 for none): a copy becomes the snip |
| -66 | private | none | ours: AddConSnipHook a0 (a Hook: A2 the base, A1 a ULONG CSH_COPY = 1) |
| -72 | private | none | ours: RemConSnipHook a0 |