sasstable

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArchTables = map[int]map[uint16]string{
	100: opcodeTableSM100,
	120: opcodeTableSM120,
	121: opcodeTableSM121,
	75:  opcodeTableSM75,
	80:  opcodeTableSM80,
	86:  opcodeTableSM86,
	87:  opcodeTableSM87,
	89:  opcodeTableSM89,
	90:  opcodeTableSM90,
}

ArchTables maps SM version → opcode table.

Functions

func DecodeMnemonic

func DecodeMnemonic(archSM int, instrBytes [16]byte) string

DecodeMnemonic extracts the base SASS mnemonic from a 16-byte instruction word. archSM is the SM version number (e.g. 75, 80, 90). Returns "" if the opcode is unknown or the architecture is unsupported.

func DecodeMnemonicFromSlice

func DecodeMnemonicFromSlice(archSM int, instr []byte) string

DecodeMnemonicFromSlice is a convenience wrapper that accepts a byte slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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