2

How to select ARM or THUMB mode when using "Make Code" command?

I have ARM binary and I want to specify ARM or THUMB code making manually in IDA, but how to do this?

0

1 Answer 1

6

When IDA first analyzes the binary, it detects which parts of the code are ARM, and which part are THUMB instructions. Then, it creates segments according to the analysis, and marks each segment as a "THUMB" or "ARM" segment.

Press ctrl-G to see which segment has which type (Value 00=ARM, 01=THUMB).

Press alt-G to change the designation of the current segment (the one the cursor is in right now).

If you aren't satisfied with what the analyzer created, use the Edit/Segments submenus to move, resize, create, or delete them.

3
  • 2
    strg is called ctrl outside of Germany.
    – kennytm
    May 20, 2016 at 17:37
  • Sorry. Fixed it. May 20, 2016 at 18:33
  • @Iddo It shows the ranges of memory where IDA has determined the T setting (0 or 1) during analysis.
    – sherrellbc
    Jun 20, 2019 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.