Documentation ¶
Index ¶
- Constants
- type APU
- type Control
- type DMA
- type DMCChannel
- type FrameCounter
- type MappableMemory
- type MappedMemory
- func (mem *MappedMemory) AddMappings(mappable MappableMemory, which Mapping) (err error)
- func (mem *MappedMemory) AddMirrors(mirrors map[uint16]uint16) (err error)
- func (mem *MappedMemory) Fetch(address uint16) (value uint8)
- func (mem *MappedMemory) Reset()
- func (mem *MappedMemory) Store(address uint16, value uint8) (oldValue uint8)
- type Mapping
- type NoiseChannel
- type PulseChannel
- type RP2A03
- type Registers
- type Status
- type TriangleChannel
Constants ¶
View Source
const NTSC_CLOCK_RATE time.Duration = 187 * time.Nanosecond // 21.477272MHz / 4 = 5.369318MHz
View Source
const NTSC_CPU_CLOCK_DIVISOR uint16 = 3
View Source
const PAL_CLOCK_RATE time.Duration = 187 * time.Nanosecond // 26.601712MHz / 5 = 5.3203424MHz
View Source
const PAL_CPU_CLOCK_DIVISOR uint16 = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DMA ¶
func (*DMA) PerformDMA ¶
type DMCChannel ¶
type DMCChannel [4]uint8
type FrameCounter ¶
type FrameCounter uint8
type MappableMemory ¶
type MappedMemory ¶
func NewMappedMemory ¶
func NewMappedMemory(base m65go2.Memory) *MappedMemory
func (*MappedMemory) AddMappings ¶
func (mem *MappedMemory) AddMappings(mappable MappableMemory, which Mapping) (err error)
func (*MappedMemory) AddMirrors ¶
func (mem *MappedMemory) AddMirrors(mirrors map[uint16]uint16) (err error)
func (*MappedMemory) Fetch ¶
func (mem *MappedMemory) Fetch(address uint16) (value uint8)
func (*MappedMemory) Reset ¶
func (mem *MappedMemory) Reset()
type NoiseChannel ¶
type NoiseChannel [3]uint8
type PulseChannel ¶
type PulseChannel [4]uint8
type RP2A03 ¶
type RP2A03 struct { *m65go2.M6502 *APU Memory *MappedMemory // contains filtered or unexported fields }
type Registers ¶
type Registers struct { Pulse1 PulseChannel Pulse2 PulseChannel Triangle TriangleChannel Noise NoiseChannel Dmc DMCChannel Control Control Status Status FrameCounter FrameCounter }
type TriangleChannel ¶
type TriangleChannel [3]uint8
Click to show internal directories.
Click to hide internal directories.