Documentation ¶
Index ¶
Constants ¶
View Source
const ( TYPE_NO_MBC = iota TYPE_MBC1 TYPE_MBC2 TYPE_MBC3 TYPE_MBC4 TYPE_MBC5 TYPE_MBC6 TYPE_MBC7 )
ROM Type @see https://gbdev.io/pandocs/The_Cartridge_Header.html#0147---cartridge-type
View Source
const ( ROM_32KB int = (1 << (iota + 5)) * 1024 ROM_64KB ROM_128KB ROM_256KB ROM_512KB ROM_1024KB ROM_2048KB ROM_4096KB ROM_8192KB )
ROM Size @see https://gbdev.io/pandocs/The_Cartridge_Header.html#0148---rom-size
View Source
const ( NO_RAM int = 0 // also UNUSED RAM_2KB int = 2 * 1024 RAM_8KB int = 8 * 1024 RAM_32KB int = 32 * 1024 RAM_128KB int = 128 * 1024 RAM_64KB int = 64 * 1024 )
RAM Size @see https://gbdev.io/pandocs/The_Cartridge_Header.html#0149---ram-size
View Source
const ( SimpleROMBankingMode = 0x00 RAMBankingModeAdvancedROMBankingMode = 0x01 )
Mode
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cartridge ¶
type CartridgeType ¶
type CartridgeType byte
type MBC ¶
type MBC interface { Read(addr types.Addr) byte Write(addr types.Addr, value byte) SwitchROMBank(bank uint16) SwitchRAMBank(bank uint8) }
Memory Bank Controller Which provides BANK switch to expand address spaces
type MBC1 ¶
func (*MBC1) SwitchHiROMBank ¶
func (*MBC1) SwitchRAMBank ¶
func (*MBC1) SwitchROMBank ¶
Click to show internal directories.
Click to hide internal directories.