emulator

package
v0.0.0-...-2de3681 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const PalletteC64 = "c64"
View Source
const PalletteSpectrum = "spectrum"
View Source
const PalletteVaporWave = "vapourwave"

Variables

View Source
var Version = "1.5.0"

Version is the emulator version

Functions

func Start

func Start(program []byte, debugLevel int, speed int, pixelSize int, colourMap *ColourMap)

Start is called by the WASM and console main.go to start everything

Types

type ColourMap

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

func LoadColourMap

func LoadColourMap(yamlRaw []byte, pallette string) (*ColourMap, error)

func SimpleColourMap

func SimpleColourMap(fgIndex, bgIndex int, pallette string) *ColourMap

type ColourMapYaml

type ColourMapYaml struct {
	BackgroundColour int            `yaml:"background"`
	DefaultColour    int            `yaml:"default"`
	SpriteColours    map[string]int `yaml:"sprites"`
	RangeColours     []colourRange  `yaml:"ranges"`
}

Jump to

Keyboard shortcuts

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