Versions in this module Expand all Collapse all v0 v0.0.2 Jun 22, 2013 v0.0.1 Jun 22, 2013 Changes in this version + const CGB_DOUBLE_SPEED_PREP_REG + const CGB_HDMA_DEST_HIGH_REG + const CGB_HDMA_DEST_LOW_REG + const CGB_HDMA_REG + const CGB_HDMA_SOURCE_HIGH_REG + const CGB_HDMA_SOURCE_LOW_REG + const CGB_INFRARED_PORT_REG + const CGB_WRAM_BANK_SELECT + const DMG_STATUS_REG + const PREFIX + const ZERO + var ROMIsBiggerThanRegion error = errors.New("ROM is bigger than addressable region") + type GbcMMU struct + DMARegister byte + RunningColorGBHardware bool + func NewGbcMMU() *GbcMMU + func (mmu *GbcMMU) ConnectPeripheral(p components.Peripheral, startAddr, endAddr types.Word) + func (mmu *GbcMMU) ConnectPeripheralOn(p components.Peripheral, addrs ...types.Word) + func (mmu *GbcMMU) IsCartridgeColor() bool + func (mmu *GbcMMU) LoadBIOS(data []byte) (bool, error) + func (mmu *GbcMMU) LoadCartridge(cart *cartridge.Cartridge) + func (mmu *GbcMMU) LoadCartridgeRam(savesDir string) + func (mmu *GbcMMU) PrintPeripheralMap() + func (mmu *GbcMMU) ReadByte(addr types.Word) byte + func (mmu *GbcMMU) ReadByteFromRegister(addr types.Word) byte + func (mmu *GbcMMU) ReadFromWorkingRAM(addr types.Word) byte + func (mmu *GbcMMU) ReadWord(addr types.Word) types.Word + func (mmu *GbcMMU) RequestInterrupt(interrupt byte) + func (mmu *GbcMMU) Reset() + func (mmu *GbcMMU) SaveCartridgeRam(savesDir string) + func (mmu *GbcMMU) SetInBootMode(mode bool) + func (mmu *GbcMMU) WriteByte(addr types.Word, value byte) + func (mmu *GbcMMU) WriteByteToRegister(addr types.Word, value byte) + func (mmu *GbcMMU) WriteToWorkingRAM(addr types.Word, value byte) + func (mmu *GbcMMU) WriteWord(addr types.Word, value types.Word) + type HDMATransfer struct + Destination types.Word + HblankMode bool + Length int + Running bool + Source types.Word + type MemoryMappedUnit interface + LoadBIOS func(data []byte) (bool, error) + LoadCartridge func(cart *cartridge.Cartridge) + ReadByte func(address types.Word) byte + ReadWord func(address types.Word) types.Word + Reset func() + SetInBootMode func(mode bool) + WriteByte func(address types.Word, value byte) + WriteWord func(address types.Word, value types.Word)