Documentation
¶
Index ¶
- Constants
- type DumpCmd
- type GB
- func (g *GB) AttachDebugger(d debugger.Debugger)
- func (g *GB) CreateSnapshot() Snapshot
- func (g *GB) Deserialize(state io.Reader) bool
- func (g *GB) DirectBoot()
- func (g *GB) Dump(cmd DumpCmd, args ...any) ([]uint8, error)
- func (g *GB) GetChunk(chunkID uint64) []uint8
- func (g *GB) GetValue(which uint64) uint64
- func (g *GB) HandleGDB(data string) string
- func (g *GB) IsColor() bool
- func (g *GB) Load(cmd LoadCmd, args ...any) error
- func (g *GB) LoadROM(rom []uint8) error
- func (g *GB) LoadSave(savedata []uint8) error
- func (g *GB) PokeMemory(memID int, addr uint32, width int, data uint32) bool
- func (g *GB) Quit()
- func (g *GB) Read(addr uint16) uint8
- func (g *GB) Reset()
- func (g *GB) Resolution() (w int, h int)
- func (g *GB) RestoreSnapshot(snap Snapshot) bool
- func (g *GB) RunFrame()
- func (g *GB) Screen() []color.NRGBA
- func (g *GB) Serialize(state io.Writer) bool
- func (g *GB) SetKeyInput(key string, press bool)
- func (g *GB) ViewMemory(_ int, addr uint32, width int) uint32
- func (g *GB) Write(addr uint16, val uint8)
- type Header
- type LoadCmd
- type Model
- type Snapshot
Constants ¶
View Source
const KB, MB = 1024, 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GB ¶
type GB struct { Model Model // ハードウェアの種類 CPU *cpu.CPU PPU *ppu.PPU APU *apu.APU Cart *cartridge.Cartridge debugger.Debugger // contains filtered or unexported fields }
func (*GB) AttachDebugger ¶
func (*GB) CreateSnapshot ¶
func (*GB) DirectBoot ¶
func (g *GB) DirectBoot()
func (*GB) IsColor ¶
IsCGBMode returns true if the hardware has CGB features (i.e., it's a CGB or AGB).
func (*GB) PokeMemory ¶
func (*GB) Resolution ¶
func (*GB) RestoreSnapshot ¶
func (*GB) SetKeyInput ¶
Click to show internal directories.
Click to hide internal directories.