T3ISA Explorer

Browse the balanced ternary instruction set architecture. Click a category to view its instructions, then click an instruction for encoding details.

Instruction Set

Instruction Categories

Category

Format

27-Trit Instruction Word

General Encoding Format

Opcode Identifies operation Trits 26..21
Rd Destination Trits 20..18
Rs1 Source 1 Trits 17..15
Rs2 Source 2 Trits 14..12
Immediate / Addr Constant or address Trits 11..0

Each instruction is encoded in a fixed-width 27-trit word. The field layout above shows the general R-type format. Some instruction classes use alternate field arrangements (e.g., branch instructions may encode a wider address field). The 27-trit width equals 33 = one ternary "word" in the T3ISA convention.

Registers

Register File

General Purpose Registers

Special Registers

Status Register (SR) Fields

PRIV Privilege level
SCHED Scheduler state
IRQ Interrupt flags
IO I/O status

The status register encodes processor state using balanced ternary flags. Each field uses trit values −1, 0, +1 to represent three-valued conditions (e.g., PRIV: kernel / supervisor / user).