asm

package
v0.0.0-...-ec3c368 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

Package asm provides convenience functions for decoding the RISC dialect described in risc/op.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader) (insts []interface{}, err error)

Decode decodes and returns the instructions read from r.

func DecodeSlice

func DecodeSlice(p []byte) (insts []interface{}, err error)

DecodeSlice decodes and returns the instructions of the byte slice.

func EncodeSlice

func EncodeSlice(insts []interface{}) (p []byte, err error)

EncodeSlice encodes and returns the instructions as a byte slice.

Types

This section is empty.

Directories

Path Synopsis
cmd
disasm
Command disasm disassembles instructions encoded in the RISC dialect described in risc/op.
Command disasm disassembles instructions encoded in the RISC dialect described in risc/op.

Jump to

Keyboard shortcuts

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