Giter Club home page Giter Club logo

ghidra-unsp's Introduction

SunPlus µnSP module for Ghidra

A Ghidra module for disassembling/decompiling µnSP binaries. Incomplete and under development.

Status

A large number of instructions are implemented. The SLEIGH spec was made without access to any official documentation, so it is some hybrid of all of the various versions (1.0, 1.1, 1.2, 1.3, 2.0). In particular, instructions with the extended register set are not implemented. Decompiler output is quite ugly, particularly operations on pointers. Still usable in many cases.

TODO

  • Eliminate unimpl
  • Update cs correctly
  • Cleanup decompiler output
  • Find a way to handle far pointers in the decompiler
  • Get the decompiler to recognize switch statements with jump tables
  • Implement push/pop fully
  • Revisit interrupts and related instructions
  • Revisit multiplication
  • Fix display for some instructions
  • Investigate differences between 1.0, 1.1, 1.2, and 2.0

Build

Either build using the GhidraDev plugin for Eclipse or

GHIDRA_INSTALL_DIR=path/to/ghidra gradle

where gradle is a gradle 7.x version in your PATH.

ghidra-unsp's People

Contributors

gmman avatar samuelwanderson45 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gmman

ghidra-unsp's Issues

Some documentation in case you don't have them

The µ'nSP Programmer's Guide (ISA documentation), µ'nSP Instruction Set Summary (extracted tables of instruction encoding), and µ'nSP Programming Tools User’s Manual (mostly compiler stuff, but explains things like calling conventions) are all available inside the µ'nSP IDE (downloadable here). It should help with explaining the differences between the versions and provide details on how the operations work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.