Giter Club home page Giter Club logo

unarmed's Introduction

unarmed

unarmed is a plain C adaptation of Paul Guyot's ARM disassembler from the Einstein project

Summary

Paul Guyot wrote an ARM disassembler as part of the Einstein project.

I simply took this existing code, and converted it to plain C and made it compilable without any other dependencies. I also did a little reformatting of the code to match my personal style so I could follow it a little better. Lastly, the format of the output is slightly tweaked.

All the hard stuff was done by Paul. This is simply a minor tweak of his work.

Compatibility

Einstein emulates a Newton, which uses a StrongARM-110 (armv4 instruction set). This disassembler was intended for inspecting the Newton ROM. I do not know if it is suitable for any other purposes or other variants of ARM.

Usage

./unarmed <path-to-binary-image>

Building

Unix/Linux:

cc unarmed.c -o unarmed

Mac OS X:

xcrun cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/ unarmed.c -o unarmed

unarmed's People

Contributors

panicsteve avatar pguyot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unarmed's Issues

Bug with insn_stkblktrans

I've just been badly bitten by a bug with insn_stkblktrans (which seems to exist upstream, I mean in NetBSD).

define insn_stkblktrans(x) insn_stack_block_transfers[(x >> 23) & 3]

The same suffix is used with the given two bits, whether it's a load or a store.
Yet, the stack-based suffixes depend on the operation direction.
Cf ARM-ARM, page A5-48:

stack-based-modes

I suggest simply dropping this and using non-stack addressing modes, (i.e. replace insn_stkblktrans with insn_blktrans).

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.