doc: Add more extensive docs to asmap implementation

Also makes minor improvement on the python implementation documentation.
This commit is contained in:
Fabian Jahr
2025-11-15 21:53:11 +02:00
parent cf4943fdcd
commit 79e97d45c1
2 changed files with 131 additions and 18 deletions

View File

@@ -157,7 +157,7 @@ class _Instruction(Enum):
JUMP = 1
# A match instruction, encoded as [1,1,0] inspects 1 or more of the next unused bits
# in the input with its argument. If they all match, execution continues. If they do
# not, failure is returned. If a default instruction has been executed before, instead
# not, failure (represented by 0) is returned. If a default instruction has been executed before, instead
# of failure the default instruction's argument is returned. It is followed by an
# integer in match encoding, and a subprogram. That value is at least 2 bits and at
# most 9 bits. An n-bit value signifies matching (n-1) bits in the input with the lower