opcode

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModRM

func ModRM(mod byte, reg byte, rm byte) byte

ModRM is used to generate a ModRM suffix. - mod: 2 bits - reg: 3 bits - rm: 3 bits

func REX

func REX(w, r, x, b byte) byte

REX is used to generate a REX prefix. w, r, x and b can only be set to either 0 or 1.

func SIB

func SIB(scale byte, index byte, base byte) byte

SIB is used to generate an SIB byte. - scale: 2 bits - index: 3 bits - base: 3 bits

Types

This section is empty.

Jump to

Keyboard shortcuts

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