class CPU
Defined in:
chip-8/cpu.cr
Constructors
Instance Method Summary
Constructor Detail
def self.
new(rom : Bytes, display :
Display)
#
Instance Method Detail
def
delay_timer : UInt8
#
def
delay_timer=(delay_timer : UInt8)
#
def
emulate_cycle : Nil
#
def
get_keypress : UInt8
#
def
handle_events : UInt8 | Nil
#
def
keys=(keys : Array(Bool))
#
def
memory : Array(UInt8)
#
def
memory=(memory : Array(UInt8))
#
def
process_opcode(opcode : UInt16) : Nil
#
def
read_opcode : UInt16
#
def
sound_timer : UInt8
#
def
sound_timer=(sound_timer : UInt8)
#
def
stack : Array(UInt16)
#
def
stack=(stack : Array(UInt16))
#
def
update_timers : Nil
#
def
v=(v : Array(UInt8))
#