Documentation ¶
Index ¶
- type Timer
- func (t *Timer) EndMachineCycle() bool
- func (t *Timer) ReadDIV() uint8
- func (t *Timer) ReadTAC() uint8
- func (t *Timer) ReadTIMA() uint8
- func (t *Timer) ReadTMA() uint8
- func (t *Timer) Reset()
- func (t *Timer) WriteDIV(value uint8)
- func (t *Timer) WriteTAC(value uint8)
- func (t *Timer) WriteTIMA(value uint8)
- func (t *Timer) WriteTMA(value uint8)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer stores the state of the internal timer
func (*Timer) EndMachineCycle ¶
EndMachineCycle updates the timer after a machine cycle
func (*Timer) Reset ¶
func (t *Timer) Reset()
Reset the counter to zero, used when a value is written to DIV
Click to show internal directories.
Click to hide internal directories.