class

Shrimp::Interpreter

Inherits Reference < Object

Constants

CYCLES_PER_FRAME = 10
FONTSET = Bytes[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]
FONTSET_START_ADDRESS = 80_u16
MEMORY_SIZE = 4096
REGISTER_CAP = 255_u8
ROM_START_ADDRESS = 512_u16

Constructors

new(display : Display)
Source

Instance methods

cycle
Source
instruction_from(table : Array(Instruction), &block : Opcode -> UInt16) : Instruction
Source
load_rom(bytes : Bytes)
Source
render
Source
step
Source
tick_timers
Source

Nested types