fNET is licensed under the MIT License. Copyright (c) 2026 binsnake.
The opcode catalogue is derived from publicly documented opcode facts in:
ECMA-335, Common Language Infrastructure, sixth edition (June 2012),
Partition III and Partition VI Annex C:
https://ecma-international.org/wp-content/uploads/ECMA-335_6th_edition_june_2012.pdf
.NET runtime, revision b9bafb9d14ef9e02a3940f97164b6b231d3595bb:
https://github.com/dotnet/runtime/blob/b9bafb9d14ef9e02a3940f97164b6b231d3595bb/src/coreclr/inc/opcode.def
https://github.com/dotnet/runtime/blob/b9bafb9d14ef9e02a3940f97164b6b231d3595bb/src/mono/mono/cil/opcode.def
Committed verbatim source snapshots are in research/ (line endings may differ).
The .NET Foundation licenses runtime sources under the MIT License. Upstream's
license and copyright notices are preserved in research/LICENSE-dotnet.txt and
the snapshots. Generated derivatives retain attribution in src/generated.rs.
tools/generate.py extracts all named standard entries except the standalone
prefix1 descriptor (FE is an escape) and adds ECMA's no. prefix at FE19.
It also extracts all active Mono F0 entries. Reserved marker descriptors are
exposed only with a runtime option. Stack behaviours and operands follow the
source tables with audited corrections: Mono DYN_CALL pops two/pushes zero,
LDNATIVEOBJ falls through, and ICALL/DYN_CALL are classified as semantic calls.
jmp is classified Call to match Reflection.Emit's method transfer.
Historical Mono maps and retired instructions are derived from mono/mono's
opcode-table history. Exact revisions, source names, timestamps, and consumer /
emitter evidence are in research/MONO-AUDIT.md and its manifest/TSV. F011/F012
attach/detach have no payload; FUNC1/FUNC2/PROC2/PROC3 have unsigned u8 payloads;
the legacy F01B getter pushes one value while the modern saver pushes none.
Historical ICALL/DYN_CALL/JIT_ICALL_ADDR table sizing mistakes are corrected
against the actual consumers and emitters, rather than copied into decoding.
Upstream Mono notices and license material accompany the reference sources.
Historical C files are research references under their upstream licensing, not
part of the Rust implementation; they are excluded from the crate package.
research/COPYING-mono-2004.txt preserves the historical COPYING.LIB and
research/LICENSE-mono.txt preserves the later Mono license manifest. Original
source copyright headers are retained. Generated tables describe opcode facts;
no historical interpreter/JIT implementation code is compiled into fNET.
Structural prefix validation follows ECMA III.2 and contemporary .NET augments:
https://github.com/dotnet/runtime/blob/b9bafb9d14ef9e02a3940f97164b6b231d3595bb/docs/design/specs/Ecma-335-Augments.md
Mono's InlineI wrapper operands contain four-byte indices, not native pointers:
https://github.com/dotnet/runtime/blob/b9bafb9d14ef9e02a3940f97164b6b231d3595bb/src/mono/mono/metadata/method-builder-ilgen.c
https://github.com/dotnet/runtime/blob/b9bafb9d14ef9e02a3940f97164b6b231d3595bb/src/mono/mono/mini/method-to-ir.c
The existing local cildec project (D:\binsnake\fNET), MIT copyright binsnake,
was consulted as an architectural reference. This crate implements a separate
opcode-stream API and decoder; PE and metadata parsing are outside its scope.
Independent test fixtures in tests/data/ are generated by tools/oracle using
System.Reflection.Emit and System.Reflection.Metadata from the MIT-licensed
.NET runtime. runtime-corpus.txt records runtime and assembly identity. The
corpus includes short IL samples from .NET Framework 2/4 mscorlib and .NET
5/8/9/10 System.Private.CoreLib. Each corpus summary preserves the producer
runtime and the source assembly's MVID. Source runtime selection is independent
of the .NET 10 runtime hosting the oracle.