Giter VIP home page Giter VIP logo

dthumb's Introduction

dthumb

ARMv5TE and ARMv4T disassembler

Target architecture: ARMv5TE or ARMv4T
Target processor: ARM946E-S (Nintendo DS main CPU) or ARM7TDMI (Nintendo DS secondary CPU, Nintendo GBA main CPU)

Use as a library

Only call Disassemble_arm and Disassemble_thumb directly in your own code.
You need to provide a character buffer to these functions, capable of holding at least 80 ASCII characters / bytes / octets.
To access these functions, you need to include dthumb.h (and only this file) at the top of your own source file.

#include "dthumb.h"

Use as a command line utility

By default, the disassembly <mode> is THUMB for ARMv5TE, but you can use:

  • /t or /5 or /t5: THUMB for ARMv5TE (redundant as it is already the default mode)
  • /4 or /t4: THUMB for ARMv4T
  • /a or /a5: ARM for ARMv5TE
  • /a4: ARM for ARMv4T

Disassemble from a file

Each file needs to have a valid extension (at least one "dot" character in the name, eg. mycode.bin).
If no output file is provided, it will print to stdout.
You can optionally provide a range of addresses to be disassembled (in hexadecimal).

dthumb <filein> {<fileout>} {<start>-<end> | <start>:<size>} {<mode>}

Disassemble a single code

The code needs to be written in hexadecimal format.

dthumb <code> {<mode>}

Current implementations

dthumb is part of the Bizhawk emulator

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.