class Cr6502::Flags

Defined in:

flags.cr

Constant Summary

SHIFTS = {carry: 0, zero: 1, interrupt: 2, decimal: 3, brk: 4, _blank: 5, overflow: 6, negative: 7}

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : UInt8 = 32_u8) #

[View source]

Instance Method Detail

def [](flagname) : UInt8 #

[View source]
def []?(flagname) : Bool #

[View source]
def clear(flagname) : Nil #

[View source]
def set(flagname) : Nil #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def value : UInt8 #

[View source]