Documentation ¶
Index ¶
- Constants
- func NewEmptyCHRROM() []byte
- type GamePak
- func (gamePak *GamePak) Header() Header
- func (gamePak *GamePak) ReadCHRROM(address types.Address) byte
- func (gamePak *GamePak) ReadPrgROM(address types.Address) byte
- func (gamePak *GamePak) WriteCHRRAM(address types.Address, value byte)
- func (gamePak *GamePak) WritePrgROM(address types.Address, value byte)
- type GamePakInterface
- type Header
- type INesHeader
- func (ines INesHeader) CHRSize() byte
- func (ines INesHeader) HasPersistentMemory() bool
- func (ines INesHeader) HasTrainer() bool
- func (ines INesHeader) IgnoreMirroringControl() bool
- func (ines INesHeader) MapperNumber() byte
- func (ines INesHeader) Mirroring() byte
- func (ines INesHeader) PRGRAM() byte
- func (ines INesHeader) ProgramSize() byte
- func (ines INesHeader) TvSystem() byte
- type Mapper
- type Mapper000
- func (mapper *Mapper000) ChrBanks() byte
- func (mapper *Mapper000) PrgBanks() byte
- func (mapper *Mapper000) ReadChrROM(address types.Address) byte
- func (mapper *Mapper000) ReadPrgROM(address types.Address) byte
- func (mapper *Mapper000) WriteChrROM(address types.Address, value byte)
- func (mapper *Mapper000) WritePrgROM(address types.Address, value byte)
Constants ¶
View Source
const FourScreenMirroring = byte(0b11)
View Source
const GAMEPAK_HIGH_RANGE = 0xFFFF
View Source
const GAMEPAK_LOW_RANGE = 0x4020
View Source
const GAMEPAK_MEMORY_SIZE = 0xBFE0
View Source
const GAMEPAK_ROM_LOWER_BANK_START = 0x8000
View Source
const HorizontalMirroring = byte(0b00)
View Source
const OneScreenMirroring = byte(0b10)
View Source
const VerticalMirroring = byte(0b01)
Variables ¶
This section is empty.
Functions ¶
func NewEmptyCHRROM ¶
func NewEmptyCHRROM() []byte
Types ¶
type GamePak ¶
type GamePak struct {
// contains filtered or unexported fields
}
func NewDummyGamePak ¶
func NewGamePakWithINes ¶
func (*GamePak) WriteCHRRAM ¶
type GamePakInterface ¶
type INesHeader ¶
type INesHeader struct {
// contains filtered or unexported fields
}
func CreateINes1Header ¶
func (INesHeader) CHRSize ¶
func (ines INesHeader) CHRSize() byte
func (INesHeader) HasPersistentMemory ¶
func (ines INesHeader) HasPersistentMemory() bool
func (INesHeader) HasTrainer ¶
func (ines INesHeader) HasTrainer() bool
func (INesHeader) IgnoreMirroringControl ¶
func (ines INesHeader) IgnoreMirroringControl() bool
func (INesHeader) MapperNumber ¶
func (ines INesHeader) MapperNumber() byte
func (INesHeader) Mirroring ¶
func (ines INesHeader) Mirroring() byte
func (INesHeader) PRGRAM ¶
func (ines INesHeader) PRGRAM() byte
func (INesHeader) ProgramSize ¶
func (ines INesHeader) ProgramSize() byte
Flags6 76543210 |||||||| |||||||+- Mirroring: 0: horizontal (vertical arrangement) (CIRAM A10 = PPU A11) ||||||| 1: vertical (horizontal arrangement) (CIRAM A10 = PPU A10) ||||||+-- 1: GamePak contains battery-backed PRG RAM ($6000-7FFF) or other persistent memory |||||+--- 1: 512-byte trainer at $7000-$71FF (stored before PRG prgROM) ||||+---- 1: Ignore mirroring control or above mirroring bit; instead provide four-screen VRAM ++++----- Lower nybble of mapper number
func (INesHeader) TvSystem ¶
func (ines INesHeader) TvSystem() byte
type Mapper ¶
type Mapper000 ¶
type Mapper000 struct {
// contains filtered or unexported fields
}
func (*Mapper000) WriteChrROM ¶
Click to show internal directories.
Click to hide internal directories.