<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">////////////////////////////////////////////////////////////////////
//
// Bitfield definitions.
//

def bitfield OPCODE_HI  &lt;31:29&gt;;
def bitfield OPCODE_LO  &lt;28:26&gt;;

def bitfield FUNCTION_HI   &lt; 5: 3&gt;;
def bitfield FUNCTION_LO   &lt; 2: 0&gt;;

def bitfield RT	      &lt;20:16&gt;;
def bitfield RT_HI    &lt;20:19&gt;;
def bitfield RT_LO    &lt;18:16&gt;;

def bitfield RS	      &lt;25:21&gt;;
def bitfield RS_HI    &lt;25:24&gt;;
def bitfield RS_LO    &lt;23:21&gt;;

def bitfield RD	      &lt;15:11&gt;;

// Floating-point operate format
def bitfield FMT	  &lt;25:21&gt;;
def bitfield FT	      &lt;20:16&gt;;
def bitfield FS	      &lt;15:11&gt;;
def bitfield FD	      &lt;10:6&gt;;

def bitfield MOVCI    &lt;16:16&gt;;
def bitfield MOVCF    &lt;16:16&gt;;
def bitfield SRL      &lt;21:21&gt;;
def bitfield SRLV     &lt; 6: 6&gt;;
def bitfield SA       &lt;10: 6&gt;;

// Interrupts
def bitfield SC       &lt; 5: 5&gt;;

// Integer operate format(s&gt;;
def bitfield INTIMM	&lt;15: 0&gt;; // integer immediate (literal)

// Branch format
def bitfield OFFSET &lt;15: 0&gt;; // displacement

// Memory-format jumps
def bitfield JMPTARG	&lt;25: 0&gt;; 
def bitfield JMPHINT	&lt;10: 6&gt;; 

def bitfield SYSCALLCODE &lt;25: 6&gt;; 
def bitfield TRAPCODE    &lt;15:13&gt;; 

// M5 instructions
def bitfield M5FUNC &lt;7:0&gt;;
</pre></body></html>