Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crystal8
main
Top Level Namespace
Byte
Chip8
Cpu
Note
Opcode
Sound
Stream
Waveform
Word
Generated using Crystal 1.10.1
2024-01-09 19:01:00 UTC
class
Cpu
Cpu
Reference
Object
Defined in:
cpu.cr
Constructors
.new
(memory : Array(Byte), video_memory : Array(Array(Bool)), keypad : Array(Bool))
Instance Method Summary
#cycle
#decode
#delay_timer
: UInt8
#delay_timer=
(delay_timer : UInt8)
#sound_timer
: UInt8
#sound_timer=
(sound_timer : UInt8)
Constructor Detail
def self.
new
(memory : Array(
Byte
), video_memory : Array(Array(Bool)), keypad : Array(Bool))
#
[
View source
]
Instance Method Detail
def
cycle
#
[
View source
]
def
decode
#
[
View source
]
def
delay_timer
: UInt8
#
[
View source
]
def
delay_timer=
(delay_timer : UInt8)
#
[
View source
]
def
sound_timer
: UInt8
#
[
View source
]
def
sound_timer=
(sound_timer : UInt8)
#
[
View source
]