code wiki / x86

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.

moduledescriptionlinesfuncs
nx_x86.nxImplements a 16-bit real-mode x86 CPU skeleton for running COM-style programs and DOS interrupts.40522
nx_x86_64.nxx86_64 Linux SysV asm emitter (foundation; session 1).107085
nx_x86_64_arith_test.nxsession 4 smoke for mul/div/shift/bitwise.691
nx_x86_64_branch_test.nxsession 3 smoke for cmp/setcc/branch.1102
nx_x86_64_call_test.nxsession 5 smoke for call / return.821
nx_x86_64_ctx.nxIR-driven codegen for x86_64 (session 6). 409498
nx_x86_64_ctx_test.nxsession 6 smoke for IR-driven x86_64 codegen.501
nx_x86_64_loadstore_test.nxsession 2 smoke for load/store/GEP.1001
nx_x86_64_module_test.nxsession 7 prove: module-level emission.531
nx_x86_64_test.nxfoundation smoke for the x86_64 emit library.671
nx_x86_basic_test.nxminimal syscall-free smoke for x86_64.703
nx_x86_dos_gate.nxR1.1: run a REAL DOS .COM on the sovereign x86 emulator. Hello-World program:794
nx_x86_dosfs_gate.nxR-DOS1: Nishi-DOS file I/O over a sovereign virtual FS (our own, clean-room).884
nx_x86_gate.nxNATIVE correctness gate for nx_x86 (R1.0a). Three hand-assembled 16-bit programs:885
nx_x86_kat_gate.nxSOVEREIGN x86_64 backend run-KAT gate (the gold per-ISA emit-proof tier,775
nx_x86_modrm_gate.nxR1.0b: ModR/M + memory operands. Program round-trips a value through memory via764
nx_x86_open_diag2_test.nxtry /etc/passwd to check path encoding.291
nx_x86_open_diag_test.nxdiagnose sys_openat on x86_64 native.251
nx_x86_regalloc.nxgenuine x86_64 register allocation (G1 keystone).221852
nx_x86_regalloc_use_gate.nxGATE for LN7 "backend consumes its register allocation"1532
nx_x86_syscall_test.nxminimal x86_64 syscall surface smoke.351