class

Vm::Interpreter

Inherits Reference < Object

Constants

FONTSET = [240, 144, 144, 144, 240, 32, 96, 32, 32, 112, 240, 16, 240, 128, 240, 240, 16, 240, 16, 240, 144, 144, 240, 16, 16, 240, 128, 240, 16, 240, 240, 128, 240, 144, 240, 240, 16, 32, 64, 64, 240, 144, 240, 144, 240, 240, 144, 240, 16, 240, 240, 144, 240, 144, 144, 224, 144, 224, 144, 224, 240, 128, 128, 128, 240, 224, 144, 144, 144, 224, 240, 128, 240, 128, 240, 240, 128, 240, 128, 128]

Constructors

new(file : File, debug : Bool = false)

Instance methods

char_font_p(char)
cpu_cycle
load_fontset!
load_program!
log(str)
next_code!
process_(opcode) : Nil
read_opcode
repeat(hz : Int, in_fiber : Bool, &block)
repeat(hz : Int, &block)
run!

stealing go brrr (thanks https://github.com/mattrberry/chip-8 for good practices!)

skip_next_code!
timers_cycle