nasmfmt

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(dst io.Writer, src io.Reader, cfg FormatConfig) error

Format formats the NASM assembly code from src and writes it to dst. It formats it using the default settings.

Types

type FormatConfig

type FormatConfig struct {
	// InstructionIndent is the number of spaces to indent instructions by.
	InstructionIndent int
	// CommentIndent is the number of spaces to indent comments by.
	CommentIndent int
}

FormatConfig is the configuration for the formatter.

Jump to

Keyboard shortcuts

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