+
Skip to content

Prcuvu/dthumb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ARMv5TE and ARMv4T disassembler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 100.0%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载