Documentation ¶
Index ¶
Constants ¶
View Source
const ( JOYP = 0xFF00 SB = 0xFF01 SC = 0xFF02 DIV = 0xFF04 TIMA = 0xFF05 TMA = 0xFF06 TAC = 0xFF07 IF = 0xFF0F NR10 = 0xFF10 NR11 = 0xFF11 NR12 = 0xFF12 NR13 = 0xFF13 NR14 = 0xFF14 NR21 = 0xFF16 NR22 = 0xFF17 NR23 = 0xFF18 NR24 = 0xFF19 NR30 = 0xFF1A NR31 = 0xFF1B NR32 = 0xFF1C NR33 = 0xFF1D NR34 = 0xFF1E NR41 = 0xFF20 NR42 = 0xFF21 NR43 = 0xFF22 NR44 = 0xFF23 NR50 = 0xFF24 NR51 = 0xFF25 NR52 = 0xFF26 LCDC = 0xFF40 STAT = 0xFF41 SCY = 0xFF42 SCX = 0xFF43 LY = 0xFF44 LYC = 0xFF45 DMA = 0xFF46 BGP = 0xFF47 OBP0 = 0xFF48 OBP1 = 0xFF49 WY = 0xFF4A WX = 0xFF4B IE = 0xFFFF )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
Memory allows read and write access to memory
func New ¶
func New(rom []byte, interrupts *interrupts.Interrupts, oam *oam.OAM, ppu *ppu.PPU, controller *controller.Controller, serial *serial.Serial, timer *timer.Timer, audio *audio.Audio) *Mapper
NewMemory creates the memory struct and initializes it with ROM contents and default values
func (*Mapper) EndMachineCycle ¶
func (m *Mapper) EndMachineCycle()
Click to show internal directories.
Click to hide internal directories.