clocks

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NTSC_for_TIA  = 1.193182 * Mhz
	PAL_for_TIA   = 1.182298 * Mhz
	PAL60_for_TIA = 1.182298 * Mhz
	PAL_M_for_TIA = 1.191870 * Mhz
	SECAM_for_TIA = 1.187500 * Mhz
)
View Source
const (
	MariaCycles = 4

	// We know for sure there are four cycles per CPU cycle. So how many cycles when the CPU is running
	// slower?
	//
	// 		1.79Mhz / 1.194182Mhz = 1.50019
	//
	// 	So,
	//
	// 		4 * 1.50019 = 6.00076
	//
	MariaCycles_for_SlowMemory = 6
)
View Source
const (
	NTSC  = NTSC_MARIA / MariaCycles // 1.79MHz
	PAL   = PAL_MARIA / MariaCycles
	PAL60 = PAL60_MARIA / MariaCycles
	PAL_M = PAL_M_MARIA / MariaCycles
	SECAM = SECAM_MARIA / MariaCycles
)
View Source
const Mhz = 1000000

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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