timer

package
v0.0.0-...-8886972 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DIVAddr  = 0x04
	TIMAAddr = 0x05
	TMAAddr  = 0x06
	TACAddr  = 0x07
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

type Timer struct {
	DIV  byte
	TIMA byte
	TMA  byte
	TAC  byte
	// contains filtered or unexported fields
}

func NewTimer

func NewTimer() *Timer

func (*Timer) Read

func (t *Timer) Read(addr types.Addr) byte

func (*Timer) SetRequestIRQ

func (t *Timer) SetRequestIRQ(request func(byte))

func (*Timer) Tick

func (t *Timer) Tick(cycle uint)

func (*Timer) Write

func (t *Timer) Write(addr types.Addr, v byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL