1250 Commits

Author SHA1 Message Date
Kenny MacDermid
e04b82059a Fix generated ESIL for AVR flags. (#7852)
A typo of `__generic_sub_update_flags_rr` meant that the generated
code contained the immediate as a register, resulting in the flags
not being set correctly.

After switching this to `_rk` the format of the immediate values were
still incorrect because they were being output as hex without the `0x`
prefix. This was changed to output decimal instead, as that matches the
format of the result value when doing operations like `cpi`. For
example:

    cpi r26, 0x2e
    46,r26,-,r26,0x08,&,!,46,0x08,&...

The format for the `__generic_add_update_flags` was also fixed, but
as there is currently no `_rk` version it doesn't affect anything.
2017-07-03 01:46:47 +02:00
h4ng3r
5418e99fcf Fix some string formats for 32bits 2017-06-27 01:11:57 +02:00
Adrian Studer
c1cb93aaf8 set ptr and val to correct values (#7817) 2017-06-25 17:03:25 +02:00
Adrian Studer
c49f668099 fix 8051 addr11 and mov dir,dir (#7793) 2017-06-21 06:38:09 -05:00
Adrian Studer
673fa9636f Rewritten 8051 disassembler 2017-06-18 10:23:04 +02:00
Lennart Braun
e1dc11bccd Fix regression with capstone 3 (#7666)
The constant CS_MODE_MIPS2 is introduced in a patch for capstone-next
(added in 1c6ee8dd3a) and will not be available in capstone 3.
2017-06-03 18:18:05 +02:00
Francesco Tamagni
1c6ee8dd3a Honor cpu on anal_mips_cs and add/fix some mips64 instruction (#7643)
* Honor cpu on anal_mips_cs and add/fix some mips64 instruction
* Add mips2 capstone patch
* mips: add v2 cpu, remove 64v2, mips32/64 is default
2017-06-01 18:18:15 +02:00
Giovanni
1602fa8025 Now working PPC pblr and fixed b/bc jumps (#7588) 2017-05-24 16:31:07 +02:00
pancake
f5ec70a8f1 Fix help for /A 2017-05-22 01:08:54 +02:00
pancake
74971add35 Honor MMX and SSE op.family for x86.cs 2017-05-22 00:56:24 +02:00
SkUaTeR
75626dde48 Implemented SAR using new esil command REPEAT (#7542) 2017-05-20 22:15:08 +02:00
pancake
815b9c0171 Copypaste z80 regprofile from gb 2017-05-20 12:16:02 +02:00
pancake
f5948a9124 Fix #7495 - Avoid always-false conditionals 2017-05-15 12:53:05 +02:00
pancake
a58e556c34 Fixes for capstone3 2017-05-10 22:53:31 +02:00
SkUaTeR
1b5a746786 add more fixes to msvc build (#7468)
* add more fixes to msvc build

* more fixes
2017-05-10 22:12:49 +02:00
pancake
ad54e9ddf1 Refix mingw32 build 2017-05-10 00:34:05 +02:00
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
Rene Laemmert
f355ad66a1 honor retn <num> in esil x86 cs (#7457) 2017-05-09 12:43:58 +02:00
radare
36dc6351cc Merge tms320c64x plugins into tms320, use e asm.cpu=c64x 2017-05-08 10:35:32 +02:00
Francesco Tamagni
7f345ab70b Fix arm64 ESIL: pass the correct param to arm64_reg_width (#7423) 2017-05-06 00:03:58 +02:00
mrmacete
031e7a36dd Add internal flags setting for esil_sub 2017-05-05 00:51:22 +02:00
pancake
0ac3477662 Use r_str_const to avoid dangling calling conventions in fcn->cc 2017-05-04 14:52:43 +02:00
Anton Kochkov
9e1b757abb ARM64 - fix ESIL pstate flags 2017-05-03 11:34:38 +02:00
Anton Kochkov
7c96bca809 ARM64: Fix ESIL of CMP 2017-05-02 15:19:50 +02:00
Anton Kochkov
2417833058 ARM64 ESIL - fix post-index STP/LDP 2017-05-02 15:19:50 +02:00
Francesco Tamagni
ab7f7c9c3d Improve ESIL for arm64
- add implementations for MSUB, BFI, NEG
- fix BLR implementation
- move "tmp" register to avoid overlapping "sp" in register profile
2017-04-28 13:20:02 +02:00
Marq Schneider
183938ef19 Add MIPS branch likely variants to MIPS CS analysis 2017-04-28 02:20:11 +02:00
mrmacete
5398cc78f8 Fix arm64 movz and movk ESIL 2017-04-28 02:06:10 +02:00
Giovanni
883422082d Fix PowerPC's SUBF esil and parse 2017-04-27 14:55:22 +02:00
pancake
51aaf24dc1 Implement >>>>= and fix SAR and SARX instructions for x86.cs 2017-04-27 14:28:56 +02:00
mrmacete
64bed16da2 Add arm64 cset, cinc ESIL. Fix cmp, csel. 2017-04-27 12:08:22 +08:00
Anton Kochkov
ece6eebc5b ARM64: Fix STP and LDP ESIL representation 2017-04-21 22:38:28 +08:00
Anton Kochkov
babfae501c ARM64: Add conditions for branching 2017-04-20 12:26:12 +02:00
Anton Kochkov
228457d738 ARM64: Fix Branch instructions ESIL 2017-04-19 22:06:06 +02:00
Anton Kochkov
390a4de2c2 ARM64: Add ROR esil 2017-04-19 22:06:06 +02:00
Anton Kochkov
5f4dfdf473 ARM64 - Add unsigned extension 2017-04-19 22:06:06 +02:00
Anton Kochkov
013b20e2a3 ARM64 - Add signed extension 2017-04-19 22:06:06 +02:00
Anton Kochkov
b99cb8c2b0 Fix #6358 - Add CDQE support (#7313) 2017-04-19 09:21:29 +02:00
pancake
8c656231c1 Several bug fixes in the android build scripts and other candies 2017-04-18 11:25:26 +02:00
pancake
5e209ecc92 Initial implementation of the anal plug for tms320c64x 2017-04-18 00:08:13 +02:00
pancake
acc2f19831 Fixes for the sfc plugin 2017-04-17 23:20:25 +02:00
usr_share
6d9db7e891 Implemented a sort-of-working SNES/SFC file format 2017-04-17 23:14:42 +02:00
pancake
a66cc10d46 Fix a huge list of null derefs from clang-analyzer 2017-04-17 22:02:04 +02:00
pancake
e641318973 Fix a bunch of bugs reported by clang-analyzer 2017-04-17 19:59:14 +02:00
pancake
1cf650aceb Implement ad4 and ad8 commands 2017-04-10 02:18:47 +02:00
pancake
45889c7307 Implement Pn+, and fix bugs (thx clang-analyzer)
- Update SDB (use memmove)
- Fix garbage read in capstone x86 and lm32
- Add UT16/32/64_ALIGN macro for proper (ut16*) allocations
- Add Pn+ command
2017-04-10 00:49:02 +02:00
pancake
73791b3d06 Implement opex for XCore and Sysz 2017-04-07 20:26:08 +02:00
pancake
a63e2a27af Implement opex for m68k 2017-04-07 20:19:48 +02:00
pancake
c1d212dfc4 Implement opex for sparc and remove the % from the disasm 2017-04-07 20:11:01 +02:00
pancake
bbc508b324 Move lua53 plugins to radare2-extras, available via r2pm
This reverts commit 16c2fd2fe4fcdd1b530d8792adc47dca666bd868.
2017-04-05 10:16:50 +02:00