When using pywasm to load a module containing instructions not supported by pywasm (such as memory.copy and memory.fill, encoded with the 0xfc byte prefix), the binary decoder assumes they are one byte long and proceeds decoding, leading to all kinds of confusion.
This change makes sure that all decoded instructions are explicitly listed in instruction.opcode, which prevents this kind of confusion at decode time.
When using pywasm to load a module containing instructions not supported by pywasm (such as memory.copy and memory.fill, encoded with the 0xfc byte prefix), the binary decoder assumes they are one byte long and proceeds decoding, leading to all kinds of confusion.
This change makes sure that all decoded instructions are explicitly listed in
instruction.opcode
, which prevents this kind of confusion at decode time.