compiler/lib/terror/instructions.rb
# Public: encodes an Instruction into a compact 32-bit format.
#
# Returns a String encoded in hexadecimal format.
encodes an Instruction into a compact 32-bit format.
Returns a String encoded in hexadecimal format.
encodes an Instruction into a compact 32 - bit format . Returns a String encoded in hexadecimal format .
def encode
        "0x%0x" % (
          (self.class.value << 24) +
          (a << 16) +
          (b << 8) +
          c
        )
      end
def encode "0x%0x" % ( ( self . class . value << 24 ) + ( a << 16 ) + ( b << 8 ) + c ) end
Public: encodes an Instruction into a compact 32-bit format.
Public : encodes an Instruction into a compact 32 - bit format .