x86encode

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) 2026 Tarek Wasfy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeImmediate32

func EncodeImmediate32(v int64) []byte

func EncodeInstruction

func EncodeInstruction(ins Instruction) ([]byte, error)

func EncodeProgram

func EncodeProgram(instructions []Instruction) ([]byte, error)

Types

type Instruction

type Instruction struct {
	Mnemonic string
	Operands []Operand
}

func ParseAssembly

func ParseAssembly(source string) ([]Instruction, error)

type Operand

type Operand struct {
	Kind  string
	Reg   string
	Value int64
	Base  string
	Index string
	Scale int
	Disp  int64
}

Jump to

Keyboard shortcuts

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