module Tchipi8

Defined in:

chip8.cr
decoder.cr
errors.cr
io.cr
opcodes.cr
tchipi8.cr

Constant Summary

ADDRESS_MASK = 4095
BASE_16 = 16
DISPLAY_HEIGHT = 32
DISPLAY_WIDTH = 64
FONT = [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] of UInt8

Sourced from https://tobiasvl.github.io/blog/write-a-chip-8-emulator/#font

FONT_ADDRESS = 80.to_u16
Log = ::Log.for("tchipi8")
MAX_RAM = 4096
MAX_STACK = 16
MEGAHERTZ = 1000
PROGRAM_ADDRESS = 512.to_u16
VERSION = "0.1.0"
VREG_COUNT = 16