跳转至

97 项能力入口

本页从 tools/phase2_isa.pyruntime/runtime.asmruntime/net/net_instructions.asmruntime/skills/skill_instructions.asmruntime/comm/comm_instructions.asm 提取。计数口径必须固定为:85 条核心静态指令 + 11 条 Runtime 静态 adapter + 1 项动态注册协议 = 97 项。

核心指令按 opcode:u8 后接 little-endian 定宽操作数编码。操作数类型宽度为 reg/u8=1u16=2u32=4u64=8 字节;寄存器只能是 R0..R15。示例调用来自 tools/phase2_isa.py::encode_instruction,不是 Linux syscall。

85 条核心静态指令

NOP (0x01)

功能: 空操作,不改变 VM 状态。

签名: NOP()编码示例: encode_instruction("NOP")参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

LOAD_IMM (0x02)

功能: 把 16 位立即数写入寄存器。

签名: LOAD_IMM(reg,u16)编码示例: encode_instruction("LOAD_IMM", 0, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

LOAD_MEM (0x03)

功能: 从受管内存地址读取值。

签名: LOAD_MEM(reg,reg)编码示例: encode_instruction("LOAD_MEM", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

STORE_MEM (0x04)

功能: 把寄存器值写入受管内存。

签名: STORE_MEM(reg,reg)编码示例: encode_instruction("STORE_MEM", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

ADD (0x05)

功能: 执行无符号加法。

签名: ADD(reg,reg,reg)编码示例: encode_instruction("ADD", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

SUB (0x06)

功能: 执行无符号减法。

签名: SUB(reg,reg,reg)编码示例: encode_instruction("SUB", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

MUL (0x07)

功能: 执行无符号乘法。

签名: MUL(reg,reg,reg)编码示例: encode_instruction("MUL", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

DIV (0x08)

功能: 执行有界除法,除零会 fault。

签名: DIV(reg,reg,reg)编码示例: encode_instruction("DIV", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

MOD (0x09)

功能: 计算余数,除零会 fault。

签名: MOD(reg,reg,reg)编码示例: encode_instruction("MOD", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

AND (0x0A)

功能: 执行按位与。

签名: AND(reg,reg,reg)编码示例: encode_instruction("AND", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

OR (0x0B)

功能: 执行按位或。

签名: OR(reg,reg,reg)编码示例: encode_instruction("OR", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

XOR (0x0C)

功能: 执行按位异或。

签名: XOR(reg,reg,reg)编码示例: encode_instruction("XOR", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

NOT (0x0D)

功能: 执行按位取反。

签名: NOT(reg,reg)编码示例: encode_instruction("NOT", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

SHL (0x0E)

功能: 执行左移。

签名: SHL(reg,reg,reg)编码示例: encode_instruction("SHL", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

SHR (0x0F)

功能: 执行逻辑右移。

签名: SHR(reg,reg,reg)编码示例: encode_instruction("SHR", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

CMP (0x10)

功能: 比较两个寄存器并更新条件标志。

签名: CMP(reg,reg)编码示例: encode_instruction("CMP", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

JMP (0x11)

功能: 无条件跳转到字节码偏移。

签名: JMP(u16)编码示例: encode_instruction("JMP", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

JZ (0x12)

功能: 零标志置位时跳转。

签名: JZ(u16)编码示例: encode_instruction("JZ", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

JNZ (0x13)

功能: 零标志未置位时跳转。

签名: JNZ(u16)编码示例: encode_instruction("JNZ", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

JG (0x14)

功能: 大于条件成立时跳转。

签名: JG(u16)编码示例: encode_instruction("JG", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

JL (0x15)

功能: 小于条件成立时跳转。

签名: JL(u16)编码示例: encode_instruction("JL", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

CALL (0x16)

功能: 调用字节码函数并压入返回地址。

签名: CALL(u16)编码示例: encode_instruction("CALL", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

RET (0x17)

功能: 从调用栈返回。

签名: RET()编码示例: encode_instruction("RET")参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

SENSE (0x18)

功能: 从输入边界读取一个感知值。

签名: SENSE(reg)编码示例: encode_instruction("SENSE", 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

ACT (0x19)

功能: 把寄存器低字节写到输出边界。

签名: ACT(reg)编码示例: encode_instruction("ACT", 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

REMEMBER (0x1A)

功能: 把受管内存记录持久化。

签名: REMEMBER(reg,reg)编码示例: encode_instruction("REMEMBER", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

RECALL (0x1B)

功能: 从持久记忆检索记录。

签名: RECALL(reg,reg,reg)编码示例: encode_instruction("RECALL", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

HALT (0x1C)

功能: 以当前状态停止 VM。

签名: HALT()编码示例: encode_instruction("HALT")参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

SELF_MOD (0x1D)

功能: 在校验边界内修改自身字节码。

签名: SELF_MOD(reg,reg)编码示例: encode_instruction("SELF_MOD", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

REWRITE (0x1E)

功能: 用受管数据重写代码范围。

签名: REWRITE(reg,reg,reg)编码示例: encode_instruction("REWRITE", 0, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

TRACE (0x1F)

功能: 切换或记录确定性执行 trace。

签名: TRACE(u16)编码示例: encode_instruction("TRACE", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

ALLOC (0x20)

功能: 分配受管内存并返回 selector。

签名: ALLOC(reg,reg)编码示例: encode_instruction("ALLOC", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

FREE (0x21)

功能: 释放受管内存块。

签名: FREE(reg,reg)编码示例: encode_instruction("FREE", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

FORK (0x22)

功能: 创建确定性子执行分支。

签名: FORK(reg)编码示例: encode_instruction("FORK", 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

JOIN (0x23)

功能: 等待并合并子执行结果。

签名: JOIN(reg,reg)编码示例: encode_instruction("JOIN", 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

RAND (0x24)

功能: 生成确定性伪随机值。

签名: RAND(reg)编码示例: encode_instruction("RAND", 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

TIME (0x25)

功能: 读取单调逻辑时间。

签名: TIME(reg)编码示例: encode_instruction("TIME", 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

LOG (0x26)

功能: 写入分级审计日志。

签名: LOG(u8,reg,reg)编码示例: encode_instruction("LOG", 1, 0, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

ASSERT (0x27)

功能: 断言寄存器条件,否则 fault。

签名: ASSERT(reg,u8)编码示例: encode_instruction("ASSERT", 0, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

META (0x28)

功能: 写入元事件记录。

签名: META(u8,reg)编码示例: encode_instruction("META", 1, 0)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

OBSERVE (0x29)

功能: 捕获执行或记忆快照。

签名: OBSERVE(u8,u64,u32)编码示例: encode_instruction("OBSERVE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

DOUBT (0x2A)

功能: 评估候选结果的不确定性。

签名: DOUBT(u64,u64,u64)编码示例: encode_instruction("DOUBT", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

REFLECT (0x2B)

功能: 基于快照生成受限重写。

签名: REFLECT(u64,u64,u32,u64)编码示例: encode_instruction("REFLECT", 1, 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

SUPERPOSE (0x30)

功能: 建立归一化叠加态。

签名: SUPERPOSE(u64,u32,u64,u64)编码示例: encode_instruction("SUPERPOSE", 1, 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

INTERFERE (0x31)

功能: 对振幅应用干涉操作。

签名: INTERFERE(u64,u64,u8)编码示例: encode_instruction("INTERFERE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

MEASURE (0x32)

功能: 测量状态并写出结果。

签名: MEASURE(u64,u64,u64)编码示例: encode_instruction("MEASURE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

ENTANGLE (0x33)

功能: 关联多个执行或量子状态。

签名: ENTANGLE(u32,u64,u32)编码示例: encode_instruction("ENTANGLE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

PHASEFLIP (0x34)

功能: 对指定分支应用相位翻转。

签名: PHASEFLIP(u16,u8)编码示例: encode_instruction("PHASEFLIP", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

DECOHERE (0x35)

功能: 按有界强度施加退相干。

签名: DECOHERE(u64,u16)编码示例: encode_instruction("DECOHERE", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

TENSOR (0x40)

功能: 构造张量视图。

签名: TENSOR(u64,u64,u8)编码示例: encode_instruction("TENSOR", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

MATMUL (0x41)

功能: 执行有界矩阵乘法。

签名: MATMUL(u64,u64,u64)编码示例: encode_instruction("MATMUL", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

GRADIENT (0x42)

功能: 计算确定性反向梯度。

签名: GRADIENT(u64,u64,u64)编码示例: encode_instruction("GRADIENT", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

EVOLVE (0x43)

功能: 按目标函数评估演化候选。

签名: EVOLVE(u64,u32,u64,u64,u64,u32)编码示例: encode_instruction("EVOLVE", 1, 1, 1, 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

MUTATE (0x44)

功能: 对字节序列执行有界变异。

签名: MUTATE(u64,u32,u64,u64)编码示例: encode_instruction("MUTATE", 1, 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

RANDOM (0x50)

功能: 向缓冲区写入指定分布的随机值。

签名: RANDOM(u64,u64,u8)编码示例: encode_instruction("RANDOM", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

MEMCPY (0x51)

功能: 执行可重叠的有界内存复制。

签名: MEMCPY(u64,u64,u32)编码示例: encode_instruction("MEMCPY", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

BARRIER (0x52)

功能: 等待确定性执行屏障。

签名: BARRIER(u32)编码示例: encode_instruction("BARRIER", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

DISCOVER (0x60)

功能: 搜索满足约束的新候选。

签名: DISCOVER(u64,u64,u32)编码示例: encode_instruction("DISCOVER", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

NOVELTY (0x61)

功能: 计算候选新颖度。

签名: NOVELTY(u64,u64)编码示例: encode_instruction("NOVELTY", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

ABSTRACT (0x62)

功能: 从样本提取抽象表示。

签名: ABSTRACT(u64,u32,u64)编码示例: encode_instruction("ABSTRACT", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

GENERALIZE (0x63)

功能: 把策略泛化到新输入。

签名: GENERALIZE(u64,u64,u64)编码示例: encode_instruction("GENERALIZE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

COMPOSE (0x64)

功能: 组合两个策略或程序。

签名: COMPOSE(u64,u64,u64)编码示例: encode_instruction("COMPOSE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

MUTATE_CREATIVE (0x65)

功能: 执行指令级确定性创意变异。

签名: MUTATE_CREATIVE(u64,u64,u64)编码示例: encode_instruction("MUTATE_CREATIVE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

META_OBSERVE (0x66)

功能: 观察元执行状态。

签名: META_OBSERVE(u64,u64)编码示例: encode_instruction("META_OBSERVE", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

META_REFLECT (0x67)

功能: 对元状态执行有界反思。

签名: META_REFLECT(u64,u64,u32)编码示例: encode_instruction("META_REFLECT", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

SPAWN (0x70)

功能: 生成受控子代理。

签名: SPAWN(u64,u32,u64)编码示例: encode_instruction("SPAWN", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

PROPOSE (0x71)

功能: 向协作总线提交提案。

签名: PROPOSE(u64,u64)编码示例: encode_instruction("PROPOSE", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

CRITIQUE (0x72)

功能: 提交对提案的评议。

签名: CRITIQUE(u64,u64)编码示例: encode_instruction("CRITIQUE", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

VOTE (0x73)

功能: 对提案投票。

签名: VOTE(u64,u8)编码示例: encode_instruction("VOTE", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

CONSENSUS (0x74)

功能: 计算参与者共识。

签名: CONSENSUS(u64,u32,u64)编码示例: encode_instruction("CONSENSUS", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

DIVIDE_LABOR (0x75)

功能: 把工作拆分并分派。

签名: DIVIDE_LABOR(u64,u64,u64)编码示例: encode_instruction("DIVIDE_LABOR", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

DYNAMIC_OPCODE (0x76)

功能: 验证并注册动态扩展实现。

签名: DYNAMIC_OPCODE(u16,u64,u32)编码示例: encode_instruction("DYNAMIC_OPCODE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

DEPRECATE (0x77)

功能: 停用动态扩展并设置回退。

签名: DEPRECATE(u16,u64)编码示例: encode_instruction("DEPRECATE", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

SELF_ASSEMBLE (0x78)

功能: 装配受限字节码片段。

签名: SELF_ASSEMBLE(u64,u64)编码示例: encode_instruction("SELF_ASSEMBLE", 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

ENABLE_DYNAMIC (0x79)

功能: 显式开启或关闭动态执行。

签名: ENABLE_DYNAMIC(u8)编码示例: encode_instruction("ENABLE_DYNAMIC", 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QSTATE (0x80)

功能: 初始化量子状态。

签名: QSTATE(u8,u64,u64)编码示例: encode_instruction("QSTATE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QGATE (0x81)

功能: 应用指定量子门。

签名: QGATE(u8,u64,u64,u64)编码示例: encode_instruction("QGATE", 1, 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QMEASURE (0x82)

功能: 测量量子态并写出经典结果。

签名: QMEASURE(u64,u64,u64)编码示例: encode_instruction("QMEASURE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QFT (0x83)

功能: 执行量子傅里叶变换。

签名: QFT(u64,u8,u8)编码示例: encode_instruction("QFT", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QGROVER (0x84)

功能: 执行有界 Grover 搜索。

签名: QGROVER(u64,u64,u32)编码示例: encode_instruction("QGROVER", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QPE (0x85)

功能: 执行量子相位估计。

签名: QPE(u64,u64,u8)编码示例: encode_instruction("QPE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QENTANGLE (0x86)

功能: 创建量子纠缠关系。

签名: QENTANGLE(u64,u32,u64)编码示例: encode_instruction("QENTANGLE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QNOISE (0x87)

功能: 施加指定量子噪声模型。

签名: QNOISE(u8,u64,u64)编码示例: encode_instruction("QNOISE", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QTOMOGRAPHY (0x88)

功能: 生成量子态层析结果。

签名: QTOMOGRAPHY(u64,u64,u64)编码示例: encode_instruction("QTOMOGRAPHY", 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

QVQE (0x89)

功能: 执行有界变分量子本征求解。

签名: QVQE(u64,u64,u64,u32)编码示例: encode_instruction("QVQE", 1, 1, 1, 1)参见: tools/phase2_isa.py::INSTRUCTIONStools/phase7_vm.py

11 条 Runtime 静态 adapter

这些入口由 Runtime 的定宽解码层调用,遵循 x86-64 寄存器 ABI;R15=0 表示成功,非零值是稳定结果码。

EVALUATE_SKILL (0x93)

功能: 运行技能测试集并写入评估报告。

签名: RDI=UUID selector, RSI=testset selector, RDX=report selector, RCX=flags -> RAX=0, R15=result参见: runtime/skills/skill_instructions.asm

PROMOTE_SKILL (0x94)

功能: 提升技能优先级,最大值为 100。

签名: RDI=UUID selector, RSI=delta -> RAX=new priority, R15=result参见: runtime/skills/skill_instructions.asm

DEMOTE_SKILL (0x95)

功能: 降低技能优先级,达到边界时标记废弃。

签名: RDI=UUID selector, RSI=delta -> RAX=new priority, R15=result参见: runtime/skills/skill_instructions.asm

FS_READ (0x96)

功能: 从白名单路径读取到受管缓冲区。

签名: RDI=path selector, RSI=output selector, RDX=max length, RCX=flags -> RAX=bytes, R15=result参见: runtime/runtime.asm::fs_read_instruction

FS_WRITE (0x97)

功能: 把受管缓冲区写入白名单路径。

签名: RDI=path selector, RSI=input selector, RDX=length, RCX=flags -> RAX=bytes, R15=result参见: runtime/runtime.asm::fs_write_instruction

NET_CONNECT (0x98)

功能: 解析受控主机并建立 TCP 连接。

签名: RDI=host selector, RSI=port, RDX=timeout_ms, RCX=flags, R8=result selector -> RAX=socket, R15=result参见: runtime/net/net_instructions.asm

NET_REQUEST (0x99)

功能: 在既有连接上发送 GET 或 POST 并写出响应。

签名: RDI=method, RSI=socket, RDX=path, RCX=data, R8=data_len, R9=output, stack=output_len/timeout -> RAX=bytes, R15=result参见: runtime/net/net_instructions.asm

SPAWN_PROC (0x9A)

功能: 从受管镜像和参数启动受限子进程。

签名: RDI=name selector, RSI=argv selector, RDX=argv length, RCX=flags -> RAX=handle, R15=result参见: runtime/comm/spawn_proc.asm

SEND_MSG (0x9B)

功能: 构造带 UUID/CRC 的消息并发送到共享队列。

签名: RDI=target, RSI=type, RDX=data selector, RCX=length, R8=flags -> RAX=status, R15=result参见: runtime/comm/send_msg.asm

RECV_MSG (0x9C)

功能: 按来源过滤并从共享队列接收消息。

签名: RDI=source or 0, RSI=output selector, RDX=capacity, RCX=timeout_ms -> RAX=type, RDX=payload length, R15=result参见: runtime/comm/recv_msg.asm

BARRIER_RUNTIME (0x9D)

功能: 使用代际计数器等待有界多实例屏障。

签名: RDI=barrier id, RSI=parties, RDX=timeout_ms -> RAX=status, R15=result参见: runtime/comm/barrier.asm

第 97 项:REGISTERED_EXTENSION

REGISTERED_EXTENSION (动态范围 0x90..0xFF)

功能: 通过静态指令 DYNAMIC_OPCODE (0x76) 验证、注册和调用扩展实现。

签名: DYNAMIC_OPCODE(opcode:u16, implementation:u64, length:u32);目标 opcode 必须在动态范围内,并且禁止覆盖 0x93..0x9D 等保留入口。停用使用 DEPRECATE,执行前必须使用 ENABLE_DYNAMIC 显式授权。

示例: encode_instruction("DYNAMIC_OPCODE", 0x90, implementation_selector, implementation_length)

参见: tools/phase6_vm.py::_phase4_executetests/test_phase6.py::test_dynamic_security_*

计数铁律

REGISTERED_EXTENSION 是协议能力,不是第 97 条静态 opcode。禁止把任意动态槽位写成冻结指令,也禁止覆盖 Runtime adapter。