class GBA::CPU::PSR

Defined in:

crab/gba/cpu.cr

Constant Summary

FIELDS = [{mode, T, 5, false, false}, {thumb, Bool, 1, false, false}, {fiq_disable, Bool, 1, false, false}, {irq_disable, Bool, 1, false, false}, {reserved, T, 20, false, false}, {overflow, Bool, 1, false, false}, {carry, Bool, 1, false, false}, {zero, Bool, 1, false, false}, {negative, Bool, 1, false, false}] of Tuple(String, Crystal::Macros::Path, Int32, Bool, Bool)
SIZE = 32

Constructors

Instance Method Summary

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 carry : Bool #

def carry=(val : Bool) : Nil #

def fiq_disable : Bool #

def fiq_disable=(val : Bool) : Nil #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def irq_disable : Bool #

def irq_disable=(val : Bool) : Nil #

def mode : UInt32 #

def mode=(val : UInt32) : Nil #

def negative : Bool #

def negative=(val : Bool) : Nil #

def overflow : Bool #

def overflow=(val : Bool) : Nil #

def reserved : UInt32 #

def reserved=(val : UInt32) : Nil #

def thumb : Bool #

def thumb=(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) #

def zero : Bool #

def zero=(val : Bool) : Nil #