cartridge

package
v0.0.0-...-3a42d68 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const KB, MB = 1024, 1024 * 1024

Variables

View Source
var RAM_SIZES = map[uint8]uint{
	2: 8 * KB,
	3: 32 * KB,
	4: 128 * KB,
	5: 64 * KB,
}

Functions

This section is empty.

Types

type Cartridge

type Cartridge struct {
	ROM []uint8
	// contains filtered or unexported fields
}

func New

func New(rom []uint8) (*Cartridge, error)

func (*Cartridge) CGBFlag

func (c *Cartridge) CGBFlag() uint8

func (*Cartridge) LoadSRAM

func (c *Cartridge) LoadSRAM(data []uint8) error

func (*Cartridge) Read

func (c *Cartridge) Read(addr uint16) uint8

func (*Cartridge) SRAM

func (c *Cartridge) SRAM() []uint8

func (*Cartridge) Title

func (c *Cartridge) Title() string

func (*Cartridge) Write

func (c *Cartridge) Write(addr uint16, val uint8)

Jump to

Keyboard shortcuts

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