util

package
v0.0.0-...-9f196c3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package util contains utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressToSection

func AddressToSection(c *cpu.CPU, a uint16) string

AddressToSection takes memory address, outputs section string.

func BytesToUint

func BytesToUint(b []byte) uint16

BytesToUint converts two bytes to a uint16.

func Color

func Color(s string, c string) string

Color creates an ANSI code colored string.

func ParseHex

func ParseHex(s string) (uint16, error)

ParseHex takes a hex-representing string and parse it to a uint16.

func SectionToColor

func SectionToColor(s string) string

SectionToColor takes section string, outputs color code.

func UintToBytes

func UintToBytes(u uint16) []byte

UintToBytes converts a uint16 to two bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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