MIP-7 `EXTENSION` decode
Implements the MIP-7 EXTENSION (0xAE) decode at MONAD_NEXT. No selector is assigned yet, so every extended opcode still behaves as INVALID. EXE-232
0xAEdispatches on its selector through a second opcode table. An unassigned or excluded selector isINVALIDand is not consumed, so0xAE 0x5Bkeeps itsJUMPDEST. A compile-time check keeps0x5BandPUSHnunassigned.- The compiler's selector table is the only list of assigned selectors. The interpreter builds its table from it, and the compiler decodes each assigned selector to its own
OpCode(0x100 | selector), so the emitter switch covers every extension. - A trailing
0xAEhas no selector and halts exceptionally, as MIP-7 requires. The interpreter's end-of-code check only becomes observable once a selector is assigned; MIP-18 in #2621, stacked on this, tests it.
馃 Generated with Claude Code