Documentation
¶
Index ¶
Constants ¶
View Source
const ( ButtonA = (1 << iota) ButtonB ButtonSelect ButtonStart ButtonUP ButtonDown ButtonLeft ButtonRight )
https://www.nesdev.org/wiki/Controller_reading_code
View Source
const ( ScreenWidth = 256 ScreenHeight = 240 )
View Source
const ( // ref: https://www.nesdev.org/wiki/CPU#Frequencies // NTSC CPUClockFrequency = 1789773 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cassette ¶
type Cassette struct { PRG []byte CHR []byte Mapper byte Mirror MirroringType // contains filtered or unexported fields }
func (*Cassette) MirroingType ¶
func (c *Cassette) MirroingType() MirroringType
type Mapper ¶
type Mapper interface { Read(addr uint16) byte Write(addr uint16, val byte) MirroingType() MirroringType String() string Reset() }
func NewMapperFromCassette ¶
type MirroringType ¶
type MirroringType int
const ( MirroringVertical MirroringType = iota MirroringHorizontal MirroringFourScreen )
func (*MirroringType) IsFourScreen ¶
func (m *MirroringType) IsFourScreen() bool
func (*MirroringType) IsHorizontal ¶
func (m *MirroringType) IsHorizontal() bool
func (*MirroringType) IsVertical ¶
func (m *MirroringType) IsVertical() bool
type Mnemonic ¶
type Mnemonic int
const ( UnknownMnemonic Mnemonic = iota LDA LDX LDY STA STX STY TAX TAY TSX TXA TXS TYA ADC AND ASL BIT CMP CPX CPY DEC DEX DEY EOR INC INX INY LSR ORA ROL ROR SBC PHA PHP PLA PLP JMP JSR RTS RTI BCC BCS BEQ BMI BNE BPL BVC BVS CLC CLD CLI CLV SEC SED SEI BRK NOP KIL SLO ANC RLA SRE ALR RRA ARR SAX XAA AHX TAS SHY SHX LAX LAS DCP AXS ISB )
type NES ¶
type NES struct {
// contains filtered or unexported fields
}
func (*NES) PeekMemory ¶
func (*NES) SetButtonStatus ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.