armhelpers

package
v0.0.0-...-3b12f0d Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This package contains a series of helper functions that are useful for ARM disassembly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeImmediate

func DecodeImmediate(arg aa.Arg) (uint64, bool)

DecodeImmediate converts an arm64asm Arg of immediate type to it's value.

func DecodeRegister

func DecodeRegister(reg string) (uint64, bool)

DecodeRegister converts the result of calling Reg.String() into the initial register's value.

func Xreg2num

func Xreg2num(arg interface{}) (int, bool)

Xreg2num converts arm64asm Reg or RegSP X0...X30 and W0...W30 register enum into a register number. X0/W0 return 0, X1/W1 return 1, etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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