library-newlib skillA
library-newlib is agent-read markdown (skill) from feilipu/8085-skills: z88dk newlib architecture: CRT m4 FILE* instantiation, character_00 vs console_01, static stdio heap sizing, asm_target_open disk path, dual-stack FCB vs FatFs, open_max/fopen_max. Use when migrating targets, adding serial or disk drivers, or debugging fopen/open on -clib=new..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Library — newlib
## 2. Serial / character FILE* instantiation (newlib)
### Layers
```text
stdio (printf / FILE*)
→ console_01 (line-edited terminals; default on many CRTs)
→ character_00 (thin byte streams; good for multi-port + RDR/PUN/LST)
→ device (UART/SIO/ACIA/ASCI/HBIOS/BDOS CON…)
```
| Layer | Typical path |
|-------|----------------|
| stdio core | `libsrc/newlib/stdio` |
| character_00 | `libsrc/newlib/drivers/character/` |
| console_01 | `libsrc/newlib/drivers/terminal/console_01/` |
| Target terminals | `libsrc/target/<t>/driver/terminal/*.m4` + `.asm` |
| Devices | `libsrc/target/<t>/device/…` |
**Defaults:** most hardware CRTs still instantiate full **console_01** / `rc_01_*` terminals. Thin **character_00** is the additive multi-port pattern (keep `m4_file_dup` / optional `crt_driver_instantiation.asm.m4`).
### CRT m4 wiring (where FILEs are born)
Startup `*_crt_N.asm.m4` includes driver m4 macros inside:
```text
clib_instantiate_begin.m4
m4_<driver>(_stdin, …)
m4_<driver>(_stdout, …)
m4_file_dup(_stderr, 0x80, __i_fcntl_fdstruct_1) ; often dup of stdout
… extra ports …
…Read the whole file at its exact version.
How to install
mdr add feilipu/8085-skills/library-newlib@git:20260821.71d8484mdr add feilipu/8085-skills/library-newlib@sha256:ed535adaafa09448Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_m7j72f6gnsdghd5k)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (15196 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
feilipu/8085-skills · 3 stars · license MIT · pushed 2026-09-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_m7j72f6gnsdghd5k GET https://markdownregistry.com/api/v1/resolve?ref=feilipu/8085-skills/library-newlib GET https://markdownregistry.com/api/v1/blob/ed535adaafa0944889bf0282fe7b129e521f9dec660cbd4f215d43599d7fbb6c
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.