class CPU

Defined in:

chip-8/cpu.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rom : Bytes, display : Display) #

[View source]

Instance Method Detail

def delay_timer : UInt8 #

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

[View source]
def emulate_cycle : Nil #

[View source]
def get_keypress : UInt8 #

[View source]
def handle_events : UInt8 | Nil #

[View source]
def i : UInt16 #

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

[View source]
def keys : Array(Bool) #

[View source]
def keys=(keys : Array(Bool)) #

[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 process_opcode(opcode : UInt16) : Nil #

[View source]
def read_opcode : UInt16 #

[View source]
def reset : Nil #

[View source]
def run : Nil #

[View source]
def sound_timer : UInt8 #

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

[View source]
def sp : UInt16 #

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

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

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

[View source]
def update_timers : Nil #

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

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

[View source]