garm

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 6 Imported by: 0

README

garm Go Reference

A simple ARM converter for Golang

Installation

go get -u github.com/HIDE810/garm

Usage

package main

import (
	"fmt"
	"log"

	"github.com/HIDE810/garm"
)

func main() {
	hex, err := garm.ArmToHex("mov r0, r0")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(hex)
}

API

It consumes data from armconverter.

License

MIT

Documentation

Overview

Package garm provides a converting function of ARM codes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArmToHex

func ArmToHex(code string) (string, error)

ArmToHex converts Arm assembly to hexadecimal.

func HexToArm

func HexToArm(code string) (string, error)

HexToArm converts hexadecimal to Arm assembly.

func HexToThumb

func HexToThumb(code string) (string, error)

HexToThumb converts hexadecimal to Thumb assembly.

func ThumbToHex

func ThumbToHex(code string) (string, error)

ThumbToHex converts Thumb assembly to hexadecimal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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