Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper interface { // Read reads a byte from the mapper. Read(addr uint16) uint8 // Write writes a byte into the mapper. Write(addr uint16, value uint8) Mirroring() Mirroring PRG() []byte CHR() []byte }
Mapper emulates circuits, hardware, and the configuration and capabilities of cartridges.
type MapperMock ¶
type MapperMock struct{}
MapperMock for test
func (*MapperMock) CHR ¶
func (*MapperMock) CHR() []byte
func (*MapperMock) Mirroring ¶
func (*MapperMock) Mirroring() Mirroring
func (*MapperMock) PRG ¶
func (*MapperMock) PRG() []byte
func (*MapperMock) Read ¶
func (*MapperMock) Read(addr uint16) uint8
func (*MapperMock) Write ¶
func (*MapperMock) Write(addr uint16, value uint8)
type Mirroring ¶
type Mirroring int
Kind of Nametable Mirroring https://wiki.nesdev.org/w/index.php?title=Mirroring#Nametable_Mirroring
const ( Mirroring_Horizontal Mirroring Mirroring_Vertical )
Click to show internal directories.
Click to hide internal directories.