You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of r2 are you using? is this from git? you should pass -b32 if you want to disassemble ARM32, otherwise it defaults to your system bits (x86-64 will be arm64 if only used -aarm)
Also, the '#' is not a valid char in the r2 disasm, in fact it gives no useful information to the reader, so i decided to remove it, because it conflicts with the comment char used by r2 commands and rasm2 files. So instead of using 'mvneq r3, #1' use 'movneq r3,1'.
"mvn" gets assembled to "mov": < ---- this is fixed/works fine here
$ rasm2 -a arm "mvneq r3, #1"
0130a003
$ rasm2 -d -a arm 0130a003
moveq r3, #1 ; 0x1
I have recently pushed a fix for that. 'cmp' should work fine now
"cmp" is broken: <- not anymore
$ rasm2 -a arm "cmp r3, #0x400"
ff0043e1
$ rasm2 -d -a arm ff0043e1
strd r0, [r3, #-15]
"swp" instructions are not implemented.
---> i have implemented the 'swp' instruction
I have also implemented 'movs'
s-flag not working:
$ rasm2 -a arm "movs r5, r8"
0850a0e1
$ rasm2 -a arm -d 0850a0e1
mov r5, r8
"mvn" gets assembled to "mov":
$ rasm2 -a arm "mvneq r3, #1"
0130a003
$ rasm2 -d -a arm 0130a003
moveq r3, #1 ; 0x1
"cmp" is broken:
$ rasm2 -a arm "cmp r3, #0x400"
ff0043e1
$ rasm2 -d -a arm ff0043e1
strd r0, [r3, #-15]
"swp" instructions are not implemented.
s-flag not working:
$ rasm2 -a arm "movs r5, r8"
0850a0e1
$ rasm2 -a arm -d 0850a0e1
mov r5, r8
The text was updated successfully, but these errors were encountered: