jcscpu

package
v0.0.0-...-8bbb003 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSONInstructions

func ParseJSONInstructions(input io.Reader) ([]int, error)

func ParseTextInstructions

func ParseTextInstructions(input io.Reader) ([]int, error)

func RunProgram

func RunProgram(jsonio bool, bits int, maxinsts int, debugonstop bool, input io.Reader, output io.Writer) error

Types

type FuncWriter

type FuncWriter struct {
	WriteWith func([]byte)
}

func (FuncWriter) Write

func (this FuncWriter) Write(p []byte) (n int, err error)

type Output

type Output struct {
	TTY   string `json:"TTY,omitempty"`
	Debug string `json:"DEBUG,omitempty"`
}

Jump to

Keyboard shortcuts

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