machine

package
v0.0.0-...-b784547 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZX128k = &Machine{
	Clock:           3.5469,
	FrameStates:     70908,
	ROM1Path:        "./spectrum/rom/128-0.rom",
	ROM2Path:        "./spectrum/rom/128-1.rom",
	ContentionTable: buildContentionIndex(14361, 228),
}
View Source
var ZX48k = &Machine{
	Clock:           3.5,
	FrameStates:     69888,
	ROM1Path:        "./spectrum/rom/48.rom",
	ContentionTable: buildContentionIndex(14335, 224),
}

Functions

This section is empty.

Types

type Machine

type Machine struct {
	Clock           float32 // Clock im MHz
	FrameStates     int     // Number of frames to draw the screen
	ROM1Path        string  // Path to the ROM file 1
	ROM2Path        string  // Path to the ROM file 2 (128k only)
	ContentionTable []byte  // Contention table that provides extra states for given state
}

Jump to

Keyboard shortcuts

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