Commit graph

577 commits

Author SHA1 Message Date
condret
d2c6bd4888 add rst-vectors and comments 2015-10-21 21:15:59 +00:00
condret
279d09aaa8 fix build for windows 2015-10-21 20:00:24 +00:00
pancake
922da0064b Fix asm.gb build 2015-10-21 19:45:54 +02:00
condret
7d7024b2c6 initial commit for gameboy-assembler 2015-10-21 18:22:14 +00:00
pancake
7dd98bcf75 Add support for TinyCC (super fast builds) 2015-10-21 16:31:24 +02:00
pancake
c594d76323 Fix static build 2015-10-18 21:46:49 +02:00
pancake
879f798562 Fix #3501 - c++11 problem with olly disassembler 2015-10-18 17:11:57 +02:00
jvoisin
420a5c41e0 Fix some minor compilation warnings 2015-10-15 12:36:34 +02:00
Anton Kochkov
32a4b9e6b7 Add XCH for AVR, patch from @Darkkey 2015-10-14 00:15:19 +02:00
Anton Kochkov
82eed6f2a5 More standard C and TCC fixes 2015-10-06 01:29:26 +03:00
qnix
55146f4ab1 6502: illegal/undocumented instructions 2015-09-23 22:21:11 +00:00
Felix Held
db39374b8b add lm32 disassembly support 2015-09-20 23:58:12 +02:00
Ricardo Quesada
557d45bca1 Add 6502 analysis module
Include all documented 6502 opcodes
Esil expression is still work in progress
Fix BRK opcode->size in 6502_disas
2015-09-18 00:09:43 +02:00
condret
6c278703af add mcs96-disassembler (needs a lots of love) 2015-09-16 00:45:01 +00:00
pancake
b86bf19c85 Fix #3051 - Honor CFLAGS everywhere and fix some windows/android warnings 2015-09-14 20:43:11 +02:00
pancake
6dd21e50e9 Fix regression in z80 (thx @dequis) 2015-09-14 10:30:18 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
pancake
ccc1668d98 Fix assemble of thumb 'b' instruction 2015-09-11 03:56:47 +02:00
pancake
cff606d99f Fix z80 indentation and remove exit() statement 2015-09-03 15:13:46 +02:00
Darkkey
61735aabb5 Added AVR assembler, fixed AVR 'sts' command disassembling. 2015-09-02 23:00:25 +02:00
pancake
9ff546439d Workaround for the ARM ldr assembler issue 2015-09-02 01:25:34 +02:00
pancake
b321d7fd8c Fix local var and assemble of LDR instructions in ARM eggs 2015-09-02 00:58:39 +02:00
pancake
a5655dff9b A bit dsojson leak just to avoid a crash 2015-09-01 18:44:37 +02:00
pancake
b1e267dd7a Fix gcc warnings for the gnu arm disassembler 2015-08-31 17:08:30 +02:00
pancake
605290f071 Support Thumb UDF instruction 2015-08-28 19:49:43 +02:00
pancake
1d4b0d8555 Fix some covs 2015-08-28 17:21:04 +02:00
pancake
529698f635 Add support to assemble Undefined ARM instructions 2015-08-28 15:18:52 +02:00
pancake
604cf153fa Update arm.gnu plugin to support CRC and UDF instructions 2015-08-28 14:40:25 +02:00
pancake
95bdb8e2ac Avoid tabs in SH GNU disassembler 2015-08-27 13:05:30 +02:00
Maijin
69aea0184d Fix some dalvik opcodes
add-double <-> sub-double
2015-08-21 13:28:52 +02:00
pancake
f4528faa93 Fix #3031 - Another ODR violation from @revskills 2015-08-19 18:58:48 +02:00
pancake
b57e4f9b9d Fix #3031 - Fix ODR violation and cleanup (-100LOC) EBC disassembler 2015-08-19 17:48:02 +02:00
pancake
55b560d406 Fix warning in dcpu16 disassembler 2015-08-16 18:26:57 +02:00
pancake
def4329769 Fix #3081 - Fix LDR instruction for the ARM assembler 2015-08-13 03:12:12 +02:00
pancake
eb7d33e3d9 Remove dupped instruction in v810 2015-08-11 09:04:21 +02:00
pancake
0005fe73c3 Fix oobread in dcpu16 2015-08-09 12:39:11 +02:00
Sascha Schirra
7c145226d2 Bugfix: movw/movt instructions are assembled to mov instruction 2015-08-03 12:06:55 +02:00
pancake
191fecab85 Fix RAsm build 2015-07-15 01:04:22 +02:00
David Kreuter
a8d7b8ea94 CID 1134732 Out-of-bounds access /libr/asm/arch/avr/format.c 2015-07-15 00:39:07 +02:00
mrdanielps
a44d087e87 V810 fixes:
* Add system register names
* Fix xor and remove unused instructions
2015-07-11 22:42:32 +02:00
mrdanielps
1eb7d865d2 V810: bugfixes 2015-07-08 21:10:05 +02:00
mrdanielps
dce2a1eb88 Add V810 support 2015-07-08 21:09:59 +02:00
pancake
6dc29e516a Fix w32 ollyasm format strings for w32 2015-06-25 23:01:41 +02:00
David Kreuter
ab538a170d m68k_disasm: replaced macro by inline function to please coverity 2015-06-03 16:37:43 +02:00
Mauro Matteo Cascella
f7493773ec Fix #2681 2015-06-02 17:44:10 +02:00
pancake
a793859d5b Fix some COVs 2015-06-01 11:20:53 +02:00
Mauro Matteo Cascella
262066b450 Fix #2547 and #2658 2015-05-31 19:03:34 +02:00
pancake
add3ff9b2d Add missing hppa files 2015-05-28 11:57:22 +02:00
pancake
f8384feb6b Initial disassembler support for HP PA-RISC (from GNU binutils) 2015-05-28 11:24:31 +02:00
pancake
4c84b3a2d5 Fix arm assembler null deref #2627 2015-05-27 10:18:21 +02:00
pancake
a17b78ad55 Fix mips assembler regression 2015-05-06 12:14:16 +02:00
pancake
dcd17a9165 mips assembler is now a bit more strict 2015-05-06 11:28:58 +02:00
Anton Kochkov
8f1b98be8f Fix TMS320C55* tests 2015-04-19 03:42:19 +03:00
Anton Kochkov
1479aeca8e Fix a few Coverity issues
Fix CID 1205204
Fix CID 1171365
Fix CID 1135001
Fix CID 1134921
Fix CID 1134848
Fix CID 1134840
Fix CID 1134824
Fix CID 1267983
Fix CID 1230038
2015-04-19 03:15:29 +03:00
Jeffrey Crowell
114ca3ed8f fix some more warnings found with clang 2015-04-01 21:27:12 -04:00
Jonathan Neuschäfer
98daac0ecd lh5801: use char[4] instead of const char* for mnemonics
This only saves around 200 bytes on the stripped .o file, so no big gain.
2015-04-01 03:07:00 +02:00
Jonathan Neuschäfer
df489343ca lh5801: various fixes 2015-04-01 03:07:00 +02:00
condret
06576f0f2a fix array-overrun in z80.cr 2015-04-01 01:27:00 +02:00
AntonDevil
78da2985e8 fix #2257 arm asm
There was type mismatch between declaration and definition
2015-03-30 11:57:34 +02:00
Jonathan Neuschäfer
f7c83918ac Remove size_t from LH5801 2015-03-29 00:25:17 +01:00
Jonathan Neuschäfer
6a3362ea9a Add a disassembler for Sharp LH5801 processors 2015-03-28 22:39:39 +01:00
Álvaro Felipe Melchor
f755d54d3e Fix #2192 - lowercase tms320/c55x 2015-03-27 11:31:58 +01:00
Álvaro Felipe Melchor
02185dc0ab Fix segfault due to a double free in tms320/c55+ 2015-03-24 23:39:43 +01:00
pancake
538dc3562b Rename z80-cr to z80.cr (_cr for files) #consistency 2015-03-24 11:41:58 +01:00
pancake
515b2e77bc Fix about 40 COVs related to memleaks and buffer overflows 2015-03-21 01:27:54 +01:00
fenugrec
61f8e60e3c ARM: rasm2: added lsls, lsrs opcodes 2015-03-17 22:18:55 +01:00
fenugrec
0f5f8f3837 ARM: rasm2: Fixed b<c> branch opcodes 2015-03-17 20:48:22 +01:00
pancake
bd58fe2450 Fix relative thumb branch assembler (ref #2193) 2015-03-17 17:55:07 +01:00
jvoisin
370175873c Improves a bit z80-cr 2015-02-21 21:54:12 +01:00
jvoisin
55f5c73008 Coverifix++ 2015-02-19 12:59:13 +01:00
Fedor Sakharov
1c49aad91d msp430: Fix some bugs 2015-02-17 19:55:10 +01:00
Fedor Sakharov
f45fe40073 v850: Fixes SST.W opcode typo.
Fixes #2006
2015-02-12 16:58:40 +01:00
jvoisin
b8cdd7c0f7 Even more coverifix 2015-02-11 21:51:13 +01:00
jvoisin
123a77c022 Coverifix 2015-02-11 19:05:28 +01:00
jvoisin
5ad3afb628 Coverifix 2015-02-11 17:55:25 +01:00
jvoisin
d6cf98d9be Make z80-cr pass more tests 2015-02-11 13:55:00 +01:00
pancake
dc75cb2320 Fix the rest of base64 warnings 2015-02-10 00:05:18 +01:00
pancake
33fcd7fbcf Enhacements for DEX sections and ignore methods at 0 (wip) 2015-02-06 18:53:11 +01:00
pancake
96257c4546 Fix Android build and some strict aliasing issues 2015-02-05 14:02:22 +01:00
pancake
383e225135 Fixes on top of the clang-warn-fix commit 2015-02-05 10:57:28 +01:00
Jeffrey Crowell
d4e0575d67 build on clang jenkins now 2015-02-05 10:57:21 +01:00
pancake
88378dba7e Fix all warnings reported by the NDK (type-punned stuff) 2015-02-03 01:45:46 +01:00
condret
31a557289d should fix #2010 2015-02-02 17:28:12 +01:00
Jeffrey Crowell
ead2bdcf50 Fix crash with negative length in whitespace
closes #1997
2015-01-28 12:04:21 +01:00
condret
c544b803f7 fix some esil-strings and foo 2015-01-28 00:04:43 +01:00
condret
2828ca508c add alternative LGPL z80-disassembler 2015-01-27 18:33:03 +01:00
fenugrec
80ae9a70a9 SuperH: added more opcodes to anal_sh.c 2015-01-15 22:42:00 +03:00
fenugrec
d145cdd826 Fix SuperH anal_sh plugin
added a lot of instructions; WIP
2015-01-15 22:42:00 +03:00
fenugrec
7f1698864a minor fixes to SH disasm output 2015-01-15 22:42:00 +03:00
jvoisin
8ac1616daf Fix some coverity issues 2015-01-14 02:53:34 +01:00
jvoisin
759e3b24b5 Fix two trivial warnings 2015-01-13 03:05:11 +01:00
pancake
4825bb815c Remove psosvm from master repo (moved to radare2-extras) 2015-01-03 02:27:29 +01:00
Julien Nabet
164bbc7333 Some cppcheck reports fixed:
(warning) Logical disjunction always evaluates to true: regnum < 32 || regnum > 31
(style) Same expression on both sides of '||'
(style) Same expression on both sides of '&&'
(style) Expression is always false because 'else if' condition matches previous condition at line 180
2014-12-28 04:20:14 +01:00
pancake
f495b5031a Handle ET_REL ELF relocs, asm.cpu for arm.cs: v8, mcortex 2014-12-28 03:53:39 +01:00
pancake
0c91c7df62 Fix several bugs in the windbg and cris. thanks to coverity 2014-12-09 17:50:19 +01:00
pancake
2d81508caf Fix jalx for mips.gnu and mips.cs 2014-12-09 02:21:58 +01:00
fenugrec
e36d2d4dcf superH analyzer+disasm bigendian support 2014-12-09 01:39:41 +01:00
pancake
85631e7104 Fix build on OSX, fix warnings in shlr/wind and handle asm.cpu and asm.syntax for asm.cris 2014-12-08 23:38:13 +01:00
pancake
95ddbeb2ec Disassembler fixup for CRIS (still wip) 2014-12-08 13:31:49 +01:00
jvoisin
db28d502d0 Fix some stupid warnings 2014-12-08 00:59:29 +01:00
pancake
274f22001d Add initial support for CRIS cpu as suggested by LolyRoP 2014-12-07 23:18:22 +01:00
Jeffrey Crowell
ed1aae7fd1 fix lots of spelling
fix some errors from the sed script

undo file mode crap
2014-12-07 17:00:59 +01:00
Kamil Rytarowski
60d3e1fc62 Don't set unused variables in arcExtMap_instName 2014-12-05 14:21:20 +01:00
Kamil Rytarowski
aadbd0f868 Fix GCC warnings: array subscript has type 'char'
Reported at NetBSD-current/amd64
GCC 4.8.4 (nb1 20141012)
2014-12-04 03:26:08 +00:00
Skia
eee51db03a Fix issue #1765 2014-11-30 18:06:14 +01:00
pancake
1fba30bd67 Make i4004 code a bit shorter 2014-11-23 04:08:48 +01:00
Riccardo Schirone
bbd068f647 libr/asm/arch/i4004: fix compilation issue on os x
on os x snprintf is a macro and using another macro for first and second
arguments cause compilation problem.
2014-11-22 16:16:39 -08:00
jvoisin
6d803698a6 Fix some warnings 2014-11-22 16:44:36 +01:00
pancake
0bc0606f74 Avoid using sprintf without format and use snprintf boundaries 2014-11-22 12:06:40 +01:00
condret
c80c68dd43 add disassembler for i4004 2014-11-18 15:50:06 +01:00
Julien Nabet
e20728ec15 cppcheck: fix 1 'else if' cond matches previous cond + test indice before using it 2014-11-16 18:13:06 +01:00
jvoisin
acd93d1b37 Fix some cppcheck warnings 2014-11-15 21:48:13 +01:00
jvoisin
a60d82b800 Fix a lot of warnings for GCC
Less than 20 warnings remaining on my x86_64 GCC 4.9.1
2014-10-26 13:50:58 +01:00
Fedor Sakharov
0b9abbd87a Move arch headers from ./lib/include 2014-10-14 14:24:22 +02:00
condret
b43409f03b Fix CID 1243234 2014-10-04 00:06:34 +02:00
Torben Nielsen
3ee3a268a6 Patch for issue #1477: BRBC/BRBS address calculation error. 2014-10-03 20:18:23 +02:00
pancake
b8532a0679 Fix crash in tms320 finalization 2014-10-02 10:11:46 +02:00
Fedor Sakharov
2b0009b858 msp430: Initial commit 2014-09-25 21:46:57 +02:00
Maijin
161ccf2b96 Fix Warning:return-type 2014-09-25 21:46:40 +02:00
Fedor Sakharov
cf6dd3947b propeller: Fix multiple warnings 2014-09-23 12:23:34 +02:00
Fedor Sakharov
ba42426171 h8300: Fix a warning 2014-09-23 12:23:34 +02:00
Anton Kochkov
5d2a8fb603 Fix build 2014-09-23 00:47:02 +04:00
Anton Kochkov
40b7048edc Fix warnings for TMS320C55x+ 2014-09-23 00:44:32 +04:00
pancake
be7ef9d890 More warning cleanup 2014-09-20 15:35:08 +02:00
Fedor Sakharov
0592964fe9 propeller initial commit 2014-09-18 18:51:24 +02:00
Torben Nielsen
c9ea8bc718 Trying to fix issue #1354: Program memory width is 16 bit, JMP/CALL addresses should be converted to 8 bit memory width when disassembling. 2014-09-17 15:40:58 +02:00
pancake
d85cf28e84 Revert "Remove debug code in avr disasm /via @svensin"
This reverts commit 59d39473c8.
2014-09-15 17:45:52 +02:00
pancake
59d39473c8 Remove debug code in avr disasm /via @svensin 2014-09-15 12:16:22 +02:00
jvoisin
052d576ae6 coverifix 2014-08-24 19:40:08 +02:00
pancake
3ee44b934e Fix rasm2 -a arm -b 16 2014-08-22 01:17:36 +02:00
jvoisin
9b99c0135d Even more coverifix 2014-08-18 15:03:02 +02:00
jvoisin
702ac741b9 More coverifix 2014-08-17 21:04:12 +02:00
jvoisin
bcbeb3c066 Fix some gcc warnings 2014-08-11 16:07:17 +02:00
jvoisin
b52722a30c Fix some 55c+ coverity issues 2014-08-04 01:56:54 +02:00
jvoisin
8921277e64 Fix some coverity issues 2014-07-25 17:11:14 +02:00
Ilya V. Matveychikov
9d0bb6b0b0 tms320: trying to implement insn qualifiers for c55x 2014-07-07 00:08:02 +04:00
Ilya V. Matveychikov
e070707308 tms320: fix warning 2014-07-07 00:02:04 +04:00
Ilya V. Matveychikov
9fac99555e tms320: whitespace cleanups 2014-07-06 23:10:20 +04:00
zlice
12f4167a65 Changed switch/case orders - added syscall and break 2014-06-30 15:02:41 -04:00
pancake
a12667a98a Fix mips-asm for 'R' types and remove '$' from mips.cs regs 2014-06-30 00:10:07 +02:00
zlice
df8f52a837 Fixed R opcodes 2014-06-29 23:14:03 +02:00
zlice
2141581329 Dont think theres an a7 register in mips 2014-06-29 23:14:03 +02:00
zlice
04260bbce4 Added more mips assembler instructions 2014-06-29 14:07:21 +02:00
pancake
fefe2e6cdf Handle mips assembler from the capstone plugin 2014-06-27 16:38:06 +02:00
pancake
377b5bb2fe Clean a huge list of warnings 2014-06-25 02:07:38 +02:00
pancake
4cba3d2af6 Fix non-shared capstone build 2014-06-24 13:34:11 +02:00
Ilya V. Matveychikov
256a0d9642 tms320: remove [label, ] from the c55x systax 2014-06-24 01:24:44 +04:00
Ilya V. Matveychikov
e991ae4600 tms320: another fix of uu field decoding for c55x 2014-06-24 01:05:11 +04:00
Ilya V. Matveychikov
f25e1b0dfa tms320: fix c55x insn syntax in case of uu field parsing 2014-06-20 12:05:06 +04:00
Ilya V. Matveychikov
172818b1ed tms320: fix uu field decoding for c55x
Instruction table and generator script update, also.
2014-06-20 12:05:06 +04:00