topic: x86
21 modules sharing the x86 name family (derived from the tree's prefix discipline).
The x86 topic family in the Nishi sovereign ecosystem provides tools for implementing and testing x86 and x86_64 architectures within the NishiLang framework. It includes modules like nx_x86, which serves as a 16-bit real-mode CPU skeleton for running COM-style programs, nx_x86_64, which forms the foundation for x86_64 Linux SysV assembly emission, and nx_x86_64_ctx, which drives IR-based code generation. These modules collectively support various stages of development, from basic CPU emulation to advanced code generation and testing.
auto-narrated by the local model from this topic's module headers; links verified against the wiki index.
narrated overview -- maintained by the narration lane, module links verified against this wiki.
| module | description | lines | funcs |
|---|---|---|---|
| nx_x86.nx | Implements a 16-bit real-mode x86 CPU skeleton for running COM-style programs and DOS interrupts. | 405 | 22 |
| nx_x86_64.nx | x86_64 Linux SysV asm emitter (foundation; session 1). | 1070 | 85 |
| nx_x86_64_arith_test.nx | session 4 smoke for mul/div/shift/bitwise. | 69 | 1 |
| nx_x86_64_branch_test.nx | session 3 smoke for cmp/setcc/branch. | 110 | 2 |
| nx_x86_64_call_test.nx | session 5 smoke for call / return. | 82 | 1 |
| nx_x86_64_ctx.nx | IR-driven codegen for x86_64 (session 6). | 4094 | 98 |
| nx_x86_64_ctx_test.nx | session 6 smoke for IR-driven x86_64 codegen. | 50 | 1 |
| nx_x86_64_loadstore_test.nx | session 2 smoke for load/store/GEP. | 100 | 1 |
| nx_x86_64_module_test.nx | session 7 prove: module-level emission. | 53 | 1 |
| nx_x86_64_test.nx | foundation smoke for the x86_64 emit library. | 67 | 1 |
| nx_x86_basic_test.nx | minimal syscall-free smoke for x86_64. | 70 | 3 |
| nx_x86_dos_gate.nx | R1.1: run a REAL DOS .COM on the sovereign x86 emulator. Hello-World program: | 79 | 4 |
| nx_x86_dosfs_gate.nx | R-DOS1: Nishi-DOS file I/O over a sovereign virtual FS (our own, clean-room). | 88 | 4 |
| nx_x86_gate.nx | NATIVE correctness gate for nx_x86 (R1.0a). Three hand-assembled 16-bit programs: | 88 | 5 |
| nx_x86_kat_gate.nx | SOVEREIGN x86_64 backend run-KAT gate (the gold per-ISA emit-proof tier, | 77 | 5 |
| nx_x86_modrm_gate.nx | R1.0b: ModR/M + memory operands. Program round-trips a value through memory via | 76 | 4 |
| nx_x86_open_diag2_test.nx | try /etc/passwd to check path encoding. | 29 | 1 |
| nx_x86_open_diag_test.nx | diagnose sys_openat on x86_64 native. | 25 | 1 |
| nx_x86_regalloc.nx | genuine x86_64 register allocation (G1 keystone). | 2218 | 52 |
| nx_x86_regalloc_use_gate.nx | GATE for LN7 "backend consumes its register allocation" | 153 | 2 |
| nx_x86_syscall_test.nx | minimal x86_64 syscall surface smoke. | 35 | 1 |