Open
Description
Work environment
Questions | Answers |
---|---|
OS/arch/bits (mandatory) | - |
File format of the file you reverse (mandatory) | ELF |
Architecture/bits of the file (mandatory) | ARM |
rizin -v full output, not truncated (mandatory) |
Expected behavior
Detect instructions mode automatically
Actual behavior
[0x000081f0]> pdf @ 0x81f0
╭ fcn.000081f0(int32_t arg1, int32_t arg2);
│ ; arg int32_t arg1 @ r0
│ ; arg int32_t arg2 @ r1
│ 0x000081f0 2100008a smlabbhs r0, sl, r0, r0
│ 0x000081f4 588358aa stmpl r3, {r1, r3, r5, r7, fp, ip, lr} ; arg2
│ 0x000081f8 4293d001 addsmi sp, r3, 1
│ 0x000081fc 2000e003 andhs lr, r0, r3 ; arg1
│ 0x00008200 31012904 mrslo r2, apsr
│ 0x00008204 dbf52001 blle 0xffd50210
│ ;-- syscall.0.8208:
│ 0x00008208 4f824684 svcmi 0x824684
│ 0x0000820c 20003f40 andhs r3, r0, r0, asr 30
│ 0x00008210 00a30081 adceq r0, r3, r1, lsl 1
│ 0x00008214 181a0092 ldmdane sl, {r1, r4, r7}
│ 0x00008218 58693001 stmdapl sb!, {r0, ip, sp} ^
│ 0x0000821c 280450b9 stmdahs r4, {r0, r3, r4, r5, r7, ip, lr}
│ 0x00008220 dbf74660 blle 0xffdd9ba8
│ 0x00008224 4330d100 teqmi r0, 0, 2
│ 0x00008228 26013401 strhs r3, [r1], -r1, lsl 8
╰ 0x0000822c 2c04dbba invalid
[0x000081f0]>
Steps to reproduce the behavior
$ rizin -A 2048-P2K-AHI_EP1.elf
Activity