Documentation ¶
Index ¶
- Constants
- Variables
- type Counter
- type Frequency
- type Timer
- func (timer *Timer) GetFrequency(freqId byte) Frequency
- func (timer *Timer) LinkIRQHandler(m components.IRQHandler)
- func (timer *Timer) Name() string
- func (timer *Timer) Read(Address types.Word) byte
- func (timer *Timer) Reset()
- func (timer *Timer) Step(cycles int)
- func (timer *Timer) Write(address types.Word, value byte)
Constants ¶
View Source
const ( DIV_REGISTER types.Word = 0xFF04 TIMA_REGISTER = 0xFF05 TMA_REGISTER = 0xFF06 TAC_REGISTER = 0xFF07 )
View Source
const (
NAME = "TIMER"
)
Variables ¶
View Source
var FrequenciesToCycles map[Frequency]int = map[Frequency]int{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
func (*Timer) GetFrequency ¶
func (*Timer) LinkIRQHandler ¶
func (timer *Timer) LinkIRQHandler(m components.IRQHandler)
Click to show internal directories.
Click to hide internal directories.