Versions in this module Expand all Collapse all v0 v0.0.2 Jun 22, 2013 v0.0.1 Jun 22, 2013 Changes in this version + const DIV_REGISTER + const NAME + const TAC_REGISTER + const TIMA_REGISTER + const TMA_REGISTER + var FrequenciesToCycles map[Frequency]int = map[Frequency]int + type Counter struct + ClockCounter int + ClockFrequency Frequency + Name string + Value byte + func NewCounter(name string, initialFreq Frequency) *Counter + func (c *Counter) Reset() + func (c *Counter) SetFrequency(freq Frequency) + func (c *Counter) Step(cycles int) bool + func (c *Counter) String() string + type Frequency string + type Timer struct + func NewTimer() *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)