cart

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ROM = iota
	MBC1
	MBC2
	MBC3
	MBC5
)
View Source
const (
	NO_RAM = iota
	RAM_UNUSED
	RAM_8KB
	RAM_32KB
	RAM_128KB
	RAM_64KB
)

ram size

Variables

This section is empty.

Functions

This section is empty.

Types

type Cartridge

type Cartridge struct {
	Title                  string
	IsCGB                  bool // gameboy color ROM is true
	Type, ROMSize, RAMSize byte
	MBC                    int
}

Cartridge - Cartridge info from ROM Header

func New

func New(rom []byte) *Cartridge

Parse - load cartridge info from byte slice

func (*Cartridge) HasRTC

func (c *Cartridge) HasRTC() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL