Documentation
¶
Index ¶
- type Flag
- type Instruction
- type OpCode
- type SM83
- func (c *SM83) DebugRegisters() string
- func (c *SM83) GetFlag(flag Flag) bool
- func (c *SM83) GetInterruptEnableFlag(flag impls.Interrupt) bool
- func (c *SM83) GetInterruptFlag(flag impls.Interrupt) bool
- func (c *SM83) GetPC() uint16
- func (c *SM83) Halt()
- func (c *SM83) IsHalted() bool
- func (c *SM83) Quit()
- func (c *SM83) Reset()
- func (c *SM83) Resume()
- func (c *SM83) Run()
- func (c *SM83) RunUntilFrame() [23040]byte
- func (c *SM83) SetFlag(flag Flag, val bool)
- func (c *SM83) SetInterruptFlag(flag impls.Interrupt, val bool)
- func (c *SM83) Step() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instruction ¶
type Instruction func(c *SM83)
type OpCode ¶
type OpCode struct {
Name string
Len uint8
Cycles uint8
CondCycles uint8 // Used for conditional instructions
Exec Instruction
}
type SM83 ¶
type SM83 struct {
PPU *ppu.PPU
Sound *sound.Sound
Input *input.Input
RAM [consts.RAMSize]byte // 8KB of RAM
HRAM [consts.HRAMSize]byte // 127 bytes of HRAM
TMA uint8 // Timer Modulo register, used for the timer
TAC byte // Timer Control register, used to control the timer operation
OAMDMA byte // Object Attribute Memory DMA register, used for sprite data transfer
// contains filtered or unexported fields
}
func (*SM83) DebugRegisters ¶
func (*SM83) GetInterruptEnableFlag ¶
func (*SM83) RunUntilFrame ¶
Click to show internal directories.
Click to hide internal directories.