class Opcode

Overview

Split opcode into four nibbles

Defined in:

cpu.cr

Constant Summary

FIELDS = [{fourth, T, 4, false, false}, {third, T, 4, false, false}, {second, T, 4, false, false}, {first, T, 4, false, false}] of Tuple(String, Crystal::Macros::Path, Int32, Bool, Bool)

Split opcode into four nibbles

SIZE = 16

Split opcode into four nibbles

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : T) #

Split opcode into four nibbles


Instance Method Detail

def ==(other : self) #

Split opcode into four nibbles


def first : UInt16 #

Split opcode into four nibbles


def first=(val : UInt16) : Nil #

Split opcode into four nibbles


def fourth : UInt16 #

Split opcode into four nibbles


def fourth=(val : UInt16) : Nil #

Split opcode into four nibbles


def hash(hasher) #

Split opcode into four nibbles


def second : UInt16 #

Split opcode into four nibbles


def second=(val : UInt16) : Nil #

Split opcode into four nibbles


def third : UInt16 #

Split opcode into four nibbles


def third=(val : UInt16) : Nil #

Split opcode into four nibbles


def to_s(io : IO) : Nil #

Split opcode into four nibbles


def value : T #

Split opcode into four nibbles


def value=(value : T) #

Split opcode into four nibbles