Documentation ¶
Index ¶
- Constants
- type Button
- type Cartridge
- type CartridgeInfo
- type GameBoy
- func (gb *GameBoy) CartridgeInfo() CartridgeInfo
- func (gb *GameBoy) ClockFrame() []uint8
- func (gb *GameBoy) DrawNametables() []uint8
- func (gb *GameBoy) DrawVram() []uint8
- func (gb *GameBoy) DumpWram() error
- func (gb *GameBoy) ExecuteInst()
- func (gb *GameBoy) InsertCartridge(cart *Cartridge, savReader io.Reader, savWriter io.WriteCloser) error
- func (gb *GameBoy) PowerOn()
- func (gb *GameBoy) Press(btns Button, pressed bool)
- func (gb *GameBoy) Save() error
- func (gb *GameBoy) SetVolume(vol float64)
- func (gb *GameBoy) ToggleBackground()
- func (gb *GameBoy) ToggleSprites()
- func (gb *GameBoy) ToggleWindow()
Constants ¶
View Source
const ( CY cpuFlags // carry H // halfCarry N // negative Z // zero )
View Source
const ( Byte size = 1 KiB = 1024 * Byte MiB = 1024 * KiB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cartridge ¶
type Cartridge struct { CartridgeInfo // contains filtered or unexported fields }
type CartridgeInfo ¶
type CartridgeInfo struct { Title string ManufacturerCode string CGBFlag uint8 NewLicenseeCode string SGBFlag uint8 CartridgeType uint8 ROMSize size RAMSize size DestinationCode uint8 OldLicenseeCode uint8 MaskROMVersionNumber uint8 HeaderChecksum uint8 GlobalChecksum []uint8 }
func (CartridgeInfo) String ¶
func (cm CartridgeInfo) String() string
type GameBoy ¶
type GameBoy struct { Debug bool // contains filtered or unexported fields }
func (*GameBoy) CartridgeInfo ¶
func (gb *GameBoy) CartridgeInfo() CartridgeInfo
func (*GameBoy) ClockFrame ¶
func (*GameBoy) DrawNametables ¶
func (*GameBoy) ExecuteInst ¶
func (gb *GameBoy) ExecuteInst()
func (*GameBoy) InsertCartridge ¶
func (*GameBoy) ToggleBackground ¶
func (gb *GameBoy) ToggleBackground()
func (*GameBoy) ToggleSprites ¶
func (gb *GameBoy) ToggleSprites()
func (*GameBoy) ToggleWindow ¶
func (gb *GameBoy) ToggleWindow()
Click to show internal directories.
Click to hide internal directories.