class Tchipi8::Chip8

Defined in:

chip8.cr

Constant Summary

TIMER_TICK_PERIOD = Time::Span.new(nanoseconds: 1000000000 // 60)

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : Tchipi8::IO::Controller) #

[View source]

Instance Method Detail

def custom_flags : Hash(Symbol, Bool) #

[View source]
def custom_flags=(custom_flags : Hash(Symbol, Bool)) #

[View source]
def delay_timer : UInt8 #

[View source]
def delay_timer=(delay_timer : UInt8) #

[View source]
def hault : Bool #

[View source]
def hault=(hault : Bool) #

[View source]
def i : UInt16 #

[View source]
def i=(i : UInt16) #

[View source]
def io : IO::Controller #

[View source]
def io=(io : IO::Controller) #

[View source]
def load_program(file : File) : Nil #

[View source]
def memory : Array(UInt8) #

[View source]
def memory=(memory : Array(UInt8)) #

[View source]
def pc : UInt16 #

[View source]
def pc=(pc : UInt16) #

[View source]
def pixels : Array(Array(UInt8)) #

[View source]
def pixels=(pixels : Array(Array(UInt8))) #

[View source]
def run(clock_mhz = 10) : Nil #

[View source]
def sound_timer : UInt8 #

[View source]
def sound_timer=(sound_timer : UInt8) #

[View source]
def stack : Array(UInt16) #

[View source]
def stack=(stack : Array(UInt16)) #

[View source]
def v : Array(UInt8) #

[View source]
def v=(v : Array(UInt8)) #

[View source]