Skip to main content

Module opcode_table

Module opcode_table 

Source
Expand description

UXN Opcode Reference Table

This module contains the complete UXN opcode table as specified in the official UXN Tal Reference: https://wiki.xxiivv.com/site/uxntal_reference.html

The table maps each opcode byte (0x00-0xFF) to its corresponding instruction with mode flags applied.

Constants§

BASE_INSTRUCTIONS
Base instruction names (without mode flags)
UXN_OPCODE_TABLE
Complete UXN opcode reference table

Functions§

create_instruction_map
Create a hashmap from instruction name to base opcode value
decode_opcode
Decode an opcode byte into its components
encode_opcode
Encode an opcode from base instruction and mode flags
get_opcode_name
Get the complete opcode name for a given byte value
verify_opcode_table
Verify that our opcode table matches the official specification