# RS232C — independent transport service (source intake 2026-10-30)
**Classification:** first-class communications library, peer of `vt20/`, `vt21/`, `vt22/`, `menu/` and `u32/`.
**Status:** source-exact imported candidate; not a portable, standalone assembled, dual-model, or stable release.
This module is NOT part of VT21 and does not need a document viewer. A report-producing application may call `RS_PUTS`, `RS_WRITE` or `RS_WRRAM` without importing any VT library. It owns report text, CR/LF and any EOF policy.
## Files
- `rs232c.inc` — project-origin fixed RAM symbols and public declarations.
- `rs232c.s` — backend-facing `RS_*` transport interface, ROM-string, exact-length ROM and exact-length RAM transmission.
- `om52c.s` — **private PB-2000C OM52C-specific backend** (`RSOM_*`). This implementation depends on the consumer's `SYSCAL` and CPU context. No AI-1000 claim.
## Interface
| Entry | Behavior |
|---|---|
| `RS_INIT` | Initialize driver options (4800, flow off), not a complete application cold start |
| `RS_CONFIG` | `$10` speed 0=4800,1=9600; `$11` flow 0=none,1=XON/XOFF |
| `RS_OPEN` / `RS_CLOSE` | Open/close OM52C serial session |
| `RS_PUTC` | One raw byte in `$16`, including NUL/CR/LF |
| `RS_PUTS` | NUL-terminated ROM-accessible string at `$10/$11`, no terminator transmitted |
| `RS_WRITE` | `$10/$11` ROM-accessible source, `$12/$13` 16-bit exact byte count; includes NUL |
| `RS_WRRAM` | `$10/$11` RAM source via IX, `$12/$13` 16-bit exact byte count; includes NUL |
The application provides an initialized stack, `SYSCAL`, `UA=14h`, `$SX=0`, `$SY=1`, accessible RAM/ROM bank, and exclusive keyboard/firmware ownership. Private RAM is fixed at `27F0..27F1`, `27F5..27F8` in `UA=14h`; do not link before checking the target's resource ledger. Methods are blocking/non-reentrant. Firmware return is **not receiver acknowledgement**. No auto-CRLF, auto-EOF, document viewer, or report display is included. `RS_INIT`/`RS_CONFIG` do not replace platform boot.
The public byte-output layer is logically separable from the backend, but currently the only backend is OM52C. A future target requires an independently verified backend contract; no simulated portability claim is permitted.
**Source custody:** these exact three files were copied, not moved, from `HD61700/projects/RS232C/src/lib/rs232c/`. File SHA values and original Drive IDs are in `lib-set-01/docs/RS232C_LIBRARY_INTAKE_20261030.md`. `lib-set-01/src/libset01.s`, current numerical Lab, RS232C original, and `stable/r012a` are unchanged.
*Praeteritum ad futurum servamus.*