speccy

package
v0.0.0-...-1e1738a Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colours = []sdl.Color{
	{0, 0, 0, 0},
	{0, 0, 1, 0},
	{1, 0, 0, 0},
	{1, 0, 1, 0},
	{0, 1, 0, 0},
	{0, 1, 1, 0},
	{1, 1, 0, 0},
	{1, 1, 1, 0},
}

Bright versions, non-bright are reduced from ff to d7

Functions

func NewKeyboardState

func NewKeyboardState() *keyboardState

Types

type Machine

type Machine struct {
	// contains filtered or unexported fields
}

func NewMachine

func NewMachine(z *zog.Zog) *Machine

func (Machine) LoadAddr

func (m Machine) LoadAddr() uint16

func (Machine) Name

func (m Machine) Name() string

func (Machine) RunAddr

func (m Machine) RunAddr() uint16

func (*Machine) Start

func (m *Machine) Start() error

func (*Machine) Stop

func (m *Machine) Stop()

type Screen

type Screen struct {
	// contains filtered or unexported fields
}

func NewScreen

func NewScreen(mem *zog.Memory) (*Screen, error)

func (*Screen) Close

func (s *Screen) Close()

func (*Screen) Draw

func (s *Screen) Draw()

func (*Screen) SetDrawColour

func (s *Screen) SetDrawColour(wantInk bool, ink, paper, bright, flash byte)

Jump to

Keyboard shortcuts

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