class GBA::Reg::BGREF

Included Modules

Defined in:

crab/gba/reg.cr

Constant Summary

FIELDS = [{fraction, T, 8, false, false}, {integer, T, 19, false, false}, {sign, Bool, 1, false, false}, {not_used, T, 4, true, false}] of Tuple(String, Crystal::Macros::Path, Int32, Bool, Bool)
SIZE = 32

Constructors

Instance Method Summary

Instance methods inherited from module GBA::Reg::Base32

read_byte(byte_num : Int) : UInt8 read_byte, write_byte(byte_num : Int, byte : UInt8) : UInt8 write_byte

Constructor Detail

def self.new(value : T) #

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def fraction : UInt32 #

def fraction=(val : UInt32) : Nil #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def integer : UInt32 #

def integer=(val : UInt32) : Nil #

def not_used : UInt32 #

def not_used=(val : UInt32) : Nil #

def num : Int32 #

[View source]
def sign : Bool #

def sign=(val : Bool) : Nil #

def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

def value : T #

def value=(value : T) #