Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM/Thumb is always dissassembled as big-endian #116

Closed
cosarara opened this issue Jun 21, 2013 · 1 comment
Closed

ARM/Thumb is always dissassembled as big-endian #116

cosarara opened this issue Jun 21, 2013 · 1 comment

Comments

@cosarara
Copy link
Contributor

Both rasm2 and radare2 disassemble thumb as big-endian.

32bit arm is OK:

$ echo "7f0000ea" | rasm2 -a arm -b 32 -d -f -
b 0x00000204

But 16bit arm doesn't flip the bytes:

$ echo "80b4" | rasm2 -a arm -b 16 -d -f -
strh r4, [r6, #4]
$ echo "b480" | rasm2 -a arm -b 16 -d -f -
push {r7}

-e does nothing:

$ echo "80b4" | rasm2 -a arm -b 16 -d -e -f -
strh r4, [r6, #4]
@cosarara
Copy link
Contributor Author

arm.winedbg works fine.

$ echo "80b4" | rasm2 -a arm.winedbg -b 16 -d -f -
push {r7}

radare added a commit that referenced this issue Jun 23, 2013
@radare radare closed this as completed Jun 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants