class Rom

Defined in:

rom.cr

Constant Summary

CHR_ROM_SIZE = 8192
HEADER_SIZE = 16
PRG_ROM_SIZE = 16384
SRAM_SIZE = 8192
TRAINER_SIZE = 512

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(data : Array(UInt8)) #

[View source]

Class Method Detail

def self.from_file(path) #

[View source]

Instance Method Detail

def chr_banks : UInt8 #

[View source]
def flags6 #

[View source]
def flags7 #

[View source]
def has_trainer? #

[View source]
def mapper_number #

[View source]
def mirror_mode : Symbol #

[View source]
def prg_banks : UInt8 #

[View source]
def read_chr(address) #

[View source]
def read_prg(address) #

[View source]
def read_sram(address) #

[View source]
def valid_header? #

[View source]
def write_chr(address, value) #

[View source]
def write_sram(address, value : UInt8) #

[View source]