mmu

package
v0.0.0-...-dc33bde Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VRAMStart = 0x8000
	VRAMEnd   = 0x9fff
	VRAMSize  = VRAMEnd - VRAMStart + 1

	OAMRAMStart = 0xfe00
	OAMRAMEnd   = 0xfe9f
	OAMRAMSize  = OAMRAMEnd - OAMRAMStart + 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MMU

type MMU struct {
	// contains filtered or unexported fields
}

func NewMMU

func NewMMU(bootromPath string, cartridge Memory) (*MMU, error)

func (*MMU) LinkIC

func (m *MMU) LinkIC(ic Memory)

XXX

func (*MMU) LinkJoypad

func (m *MMU) LinkJoypad(joypad Memory)

func (*MMU) LinkPPU

func (m *MMU) LinkPPU(ppu Memory)

func (*MMU) LinkTimer

func (m *MMU) LinkTimer(timer Memory)

func (*MMU) ReadByte

func (m *MMU) ReadByte(address uint16) byte

func (*MMU) ReadWord

func (m *MMU) ReadWord(address uint16) uint16

func (*MMU) WriteByte

func (m *MMU) WriteByte(address uint16, value byte)

func (*MMU) WriteWord

func (m *MMU) WriteWord(address, value uint16)

type Memory

type Memory interface {
	ReadByte(address uint16) byte
	WriteByte(address uint16, value byte)
}

Jump to

Keyboard shortcuts

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