Skip to content

HobbyOSs/json-x86-64-go-mod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-x86-64-go-mod

This project provides a gzip-compressed JSON representation of x86-64 instructions, originally generated by astocko/json-x86-64, embedded as a Go module.

This makes the instruction set easily consumable from Go programs, without requiring submodules or external files.

What is this?

This is a JSON file representing most x86-64 instructions in a readable, structured format. The source JSON was generated using astocko/json-x86-64, and then compressed (gzip) and embedded into this Go module using Go 1.16+'s embed feature.

Usage

Import the module:

import jsonx86 "github.com/HobbyOSs/json-x86-64-go-mod"

Access the compressed data:

import (
    "bytes"
    "compress/gzip"
    "io"

    jsonx86 "github.com/HobbyOSs/json-x86-64-go-mod"
)

func load() ([]byte, error) {
    r, err := gzip.NewReader(bytes.NewReader(jsonx86.X86JSONGZ))
    if err != nil {
        return nil, err
    }
    defer r.Close()
    return io.ReadAll(r)
}

License

The original data is provided under the MIT License by astocko/json-x86-64. This repository preserves that license.

See LICENSE for details.

About

x86-64 Intel instruction set in JSON format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%