GithubHelp home page GithubHelp logo

neatmonster / octogon Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 1.0 151 KB

Hexagon processor module for Ghidra (not yet functional, use https://github.com/google/binja-hexagon)

Python 100.00%
ghidra plugin processor module qualcomm hexagon python

octogon's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

crackercat

octogon's Issues

Minimize internal braching

For example:

if ((!Pu_9_8[0, 1])) goto <if_Pu_9_8_0_1>;

You may get better SLEIGH compilation (better PCODE) if you minimize internal branching and opt for the next instruction instead.

This could be rewritten with something like:

    if ((Pu_9_8[0, 1])) goto inst_next;
    Rd_4_0 = (Rs_20_16 << 16);

OR'ing multiple signed values

For example:

[s16 = (s16_27_21 << 0) | (s16_13_5 << 7);] {

Only the most significant piece should be signed as the sign in any non-most significant will saturate the high bits if their signed bit is set.

If s16_27_21=0b1000000 and s16_13_5=0b000000000, the 16-bit result would be 0xffc0 because bit 27 saturated leading bits. Whereas you would probably expect it to be 0x0040

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.