Commit graph

1236 commits

Author SHA1 Message Date
pancake
6bc091f16f Fix some covs and the is_any() macro in anal.riscv 2015-11-05 10:34:42 +01:00
pancake
8f48a3b9a7 Fix AVR disasm regression and bin.elf=avr forces 16bit mode 2015-11-05 09:20:47 +01:00
pancake
ac10ef4c6f Fix ASAN OOB reads in AVR disassembler 2015-11-05 09:13:17 +01:00
pancake
8e3421d222 Remove unused variables 2015-11-05 00:47:27 +01:00
Álvaro Felipe Melchor
b1583d5b24 Fix more issues reported by clang-analyzer 2015-11-03 22:14:00 +01:00
Kiwhacks
eb56f6d424 Add instruction descriptions for SPARC 2015-11-03 22:13:11 +01:00
Anton Kochkov
a6dccd04b2 Fix AVR std instruction 2015-11-01 23:19:08 +03:00
pancake
f4e6c8a7df Fix static builds 2015-11-01 00:20:58 +01:00
pancake
f326094542 Fix some warnings 2015-10-31 17:22:24 +01:00
pancake
691e0c8c1a Fix latest COVs 2015-10-31 12:06:40 +01:00
pancake
f88b35afba Fixes for asm.riscv 2015-10-30 00:06:38 +01:00
qnix
09f1ea9856 Initial RISC-V support (32,64bit disasm) 2015-10-29 23:57:22 +01:00
pancake
079a679de6 Fix #3605 - infinite print loops in m68k and mcs96 2015-10-29 12:02:06 +01:00
pancake
67c5b06173 Tiny fix for anal.m68k.cs invalid instructions 2015-10-29 01:58:52 +01:00
pancake
afbcddb508 Fix #3516 - masm syntax was not working 2015-10-27 15:45:27 +01:00
condret
d5eb739f77 gb_asm: implement most varriants of ld 2015-10-27 10:05:38 +00:00
xambroz
d448260816 build cleanup focused on possibility to control the lib directories with the build parameters
needed mainly for RedHat/Fedora builds
2015-10-27 03:26:45 +01:00
condret
b70ef7123c gb_asm: implement add 2015-10-24 20:01:12 +00:00
condret
62a8b04d81 gb_asm: implement inc, dec 2015-10-24 16:13:48 +00:00
condret
c59420797a gb_asm: implement bit, res, set 2015-10-24 12:00:24 +00:00
condret
0f14965f99 gb_asm: implement rlc, rrc, rl, rr, sla, sra, swap, srl 2015-10-24 02:46:48 +00:00
condret
891931b775 gb_asm: more code-base reduction 2015-10-24 02:16:35 +00:00
condret
38235b6144 gb_asm: code-base reduction 2015-10-23 18:59:21 +00:00
pancake
888c05d31f Fix some recent covs 2015-10-23 12:07:07 +02:00
condret
1ce554ed01 gb_asm: implement or, xor, and, sbc, sub, adc 2015-10-23 00:50:49 +00:00
condret
ab917483aa gb_asm: implement cp-instruction 2015-10-22 17:06:48 +00:00
condret
1ece41ea48 gb_asm: add call, call C, call Z, call nC, call nZ 2015-10-22 14:37:37 +00:00
condret
0c2eb134f9 gb_asm: implement jr, jr Z, jr C, jr nZ, jr nC 2015-10-22 13:34:27 +00:00
condret
3b3052d288 fix segfaults, that can happen if gb_asm is used the wrong way 2015-10-22 10:39:08 +00:00
condret
8e6afc0acf gb_asm: add jp, jp hl, jp Z, jp nZ, jp C, jp nC 2015-10-22 02:51:35 +00:00
condret
848eb486ca gb-assembler: implement ret Z, ret C, ret nZ, ret nC 2015-10-22 00:30:25 +00:00
condret
fb3059130c gb-assembler: push, pop, reti 2015-10-21 22:52:05 +00:00
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
pancake
42bc18703a Implement asm.pcalign and min/max opsize info 2015-10-14 02:11:53 +02:00
pancake
488cc4ca28 Fix to support older capstone libraries 2015-10-14 01:20:27 +02:00
Anton Kochkov
32a4b9e6b7 Add XCH for AVR, patch from @Darkkey 2015-10-14 00:15:19 +02:00
pancake
35f97e3862 Add register profile for AVR 2015-10-13 23:01:30 +02:00
pancake
a876216fcd Fixes for m68k.cs 2015-10-10 12:22:12 +02:00
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
pancake
7f9c9722a2 Optimize and add some workarounds to avoid m68k.cs crashes 2015-10-07 15:50:09 +02:00
pancake
d629131baf Initial support for capstone-m68k 2015-10-07 14:37:25 +02:00
Anton Kochkov
82eed6f2a5 More standard C and TCC fixes 2015-10-06 01:29:26 +03:00
pancake
8f8bb3f253 Fix uninitialized variable in RAsm.new 2015-10-04 17:57:32 +02:00
dukeBarman
c381a6cdb8 Add description for AVR instructions with option -w in rasm2 2015-10-01 11:04:36 +02:00
pancake
83063970fe Fix rasm assembler parsing for instructions with : 2015-09-18 21:54:25 +02:00
pancake
ff0e2724a1 Debugger, Write, HVSplit in material WebUI and more 2015-09-25 03:57:48 +02:00
qnix
55146f4ab1 6502: illegal/undocumented instructions 2015-09-23 22:21:11 +00:00
pancake
72d442931d Fix #3191 - Fix // to repeat last search 2015-09-23 13:04:15 +02:00
pancake
486c88954f Darwin: start debugging suspended. Fixes in lm32 2015-09-22 02:28:04 +02:00
Felix Held
c43fedd9e5 lm32: fix instr->op valid range detection
instr->op is always < RAsmLm32OpcodeNumber, but this additional check
shouldn't hurt
2015-09-21 22:22:20 +02:00
Felix Held
05b388bbf2 fix lm32_op_raise decode 2015-09-21 22:22:20 +02:00
Felix Held
db39374b8b add lm32 disassembly support 2015-09-20 23:58:12 +02:00
Ricardo Quesada
6966b2b6f3 adds 6502 opcode description
to be used with `?d`
eg:
`?d cli`
2015-09-18 17:17:24 +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
pancake
90f8ec4ff8 Fix #3297 - make install after make symstall 2015-09-17 11:11:24 +02:00
Jeffrey Crowell
9f892f1eed fix some COV 2015-09-17 00:48:07 -04:00
pancake
f807abff7c Honor asm.invhex in avr and ppc.cs 2015-09-16 22:20:14 +02:00
condret
6c278703af add mcs96-disassembler (needs a lots of love) 2015-09-16 00:45:01 +00:00
Anton Kochkov
7a5ed6523c Kill the remnants of the debug for asm.invhex 2015-09-15 18:37:29 +03:00
Felix Held
ae24a9a4c8 fix endianess of printing hex value of illegal instructions 2015-09-15 18:27:55 +03: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
Darkkey
7f7a596d77 Fixed out/in instructions assembling; Fixed branched operands 2015-09-10 01:57:40 +02:00
jvoisin
9db340a0a8 Fix some malloc(A*B) overflow detected by clang-analyzer 2015-09-09 21:44:06 +02:00
pancake
56040f6a19 Fix #3241 - avr warnings 2015-09-09 11:03:45 +02:00
pancake
deafc518b0 Refactor RAnal.ESIL (-800 LOC). Fix x86-64 32bit mov 2015-09-05 10:44:51 +02:00
pancake
cff606d99f Fix z80 indentation and remove exit() statement 2015-09-03 15:13:46 +02:00
pancake
346cc8e758 Fix latest covs 2015-09-03 12:23:49 +02:00
Darkkey
61735aabb5 Added AVR assembler, fixed AVR 'sts' command disassembling. 2015-09-02 23:00:25 +02:00
Anton Kochkov
a40719649b Do not filter ":" for AVR assembler 2015-09-02 23:33:45 +03:00
pancake
7fcb8e081d Remove last GPL headers and move old.rarc2 into r2e 2015-09-02 16:06:57 +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
mrdanielps
98f14bb506 V810 & V850: Sanity checks 2015-08-31 23:05:42 +02:00
pancake
b1e267dd7a Fix gcc warnings for the gnu arm disassembler 2015-08-31 17:08:30 +02:00
pancake
6b254a98c7 Fix #1118 - Add asm.invhex and asm.lines.ret
- Do some cleanup in RAsm and RCore.disasm
- Accidentally reverts 74be82d30b.
2015-08-31 00:24:28 +02:00
jvoisin
4261075d60 Misc fixes to make clang-analyser even more happy 2015-08-29 18:08:38 +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
pancake
62755eeb0e Fix latest COVs 2015-08-25 12:40:21 +02:00
pancake
1e3dbdf18c Enhace asm.assembler priorities 2015-08-24 17:28:13 +02:00
pancake
59dfda515f Fix #3136 - Add ARM and ARM64 assemmbler support from NDK 2015-08-24 15:43:13 +02:00
pancake
4ecf45d264 MASM is not supported on all versions of Capstone 2015-08-24 10:34:47 +02:00
pancake
e774d332b7 Fix #3082 - Add support for MASM syntax in x86.cs 2015-08-21 15:29:37 +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
4beb0dc6a3 Add support for 'mov byte [reg], imm' for x86.nz 2015-08-11 14:15:13 +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
pancake
bbb90d5ce3 Fix #3041 - assemble 'mov edx, [rbp-4]' 2015-08-09 03:56:22 +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
Jonathan Neuschäfer
c07cf42a2e asm_java: remove unnecessary "a->pc += op->size" 2015-07-13 01:48:29 +02:00
Jonathan Neuschäfer
ecf6792318 Fix #2927 and random code cleanups
- asm_dcpu16: remove an obsolete comment
  It was obsoleted in 5285d1bdea.
- Indentation fixes
- fix a few typos
- remove "#define NEW_ESIL"
- move comment about r_bin_filter_name to the right place
- README.md: Add V810 to the list of supported architectures
- Also, de-duplicate LH5801
- Add attribution to randomart.c, fixes #2927
2015-07-12 19:20:36 +02:00
Jonathan Neuschäfer
523aa3af5c add .version to all plugins 2015-07-12 19:05:33 +02:00
mrdanielps
a44d087e87 V810 fixes:
* Add system register names
* Fix xor and remove unused instructions
2015-07-11 22:42:32 +02:00
pancake
ab7c399b38 Fix monospace font issues on the material webui 2015-07-10 17:20:17 +02:00
pancake
146a3a64c7 Fix iOS build 2015-07-10 14:40:10 +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
Álvaro Felipe Melchor
1c7feb2240 Fix some infers 2015-06-20 17:33:09 +02:00
pancake
c0b1e5fad3 Fix iOS build 2015-06-04 04:30:48 +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
663cbb0455 Fix some warnings 2015-05-28 11:09:13 +02:00
pancake
4c84b3a2d5 Fix arm assembler null deref #2627 2015-05-27 10:18:21 +02:00
pancake
c21607030c Document arm/thumb conditional branch instructions 2015-05-19 01:03:28 +02:00
pancake
b88ae16ffa Fix #2585 - fix 64bit mov in x86.nz 2015-05-18 20:00:10 +02:00
Quentin Santos
d5c40be889 Fix signed char boundaries when assembling jump
Signed char can be between -0x80 and 0x7f. The offset in the jump must be
computed taking into account the instruction length.
2015-05-14 17:29:28 +02:00
pancake
0697103f7d Fix #2536 - Implement ahS and fix ah in pd 2015-05-10 00:12:33 +02:00
pancake
bb76bb1794 Add asm.syntax=jz to convert je/jne into jz/jnz 2015-05-09 11:11:46 +02:00
Quentin Santos
9c30fbecba Fix nz assembler on mov to a 16 bit register 2015-05-09 10:39:42 +02:00
pancake
9eadce52d9 Fixes for Tmb analysis and asm.describe 2015-05-08 04:10:19 +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
pancake
997dda6e5b Add support for iOS-simulator and static-OSX builds 2015-04-14 17:14:43 +02:00
pancake
2aecde26d2 Tons of free candy. See details below:
- Fix arm-thumb ESIL for the SUB instruction
- Handle Java imports as symbols in code analysis
- Invoke Java instructions reference the imports now
- Fix 71 crashes reported by jn
- Affected bin modules: elf, mach0, java, te, pe, dex
2015-04-13 00:57:32 +02:00
pancake
acd5e4b999 Fix dalvik<->dex class and method name resolutions 2015-04-12 05:13:51 +02:00
pancake
6ab06a15ba Various fixes for DEX and Dalvik support 2015-04-11 04:33:37 +02:00
pancake
efc7ebff17 Add prgi and prgo commands to get consumed and generated bytes at gunzip 2015-04-03 03:20:04 +02:00
pancake
dbe0972610 Fix pd -x and pD -x : It can be heavily reworked. 2015-04-03 02:24:23 +02:00
Jeffrey Crowell
114ca3ed8f fix some more warnings found with clang 2015-04-01 21:27:12 -04:00
kroemeke
04450503f3 Added je jg jge jne opcode descriptions. 2015-04-01 23:30:50 +02: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
pancake
6e52324885 Fix some more null derefs related to the rbininfo change 2015-03-25 17:29:38 +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
f76b791b9f More fixes for the Dalvik disassembly (absolute offsets and floating point const) 2015-03-24 11:11:54 +01:00
Asger Hautop Drewsen
43ba7e6518 Fix inc dec for 32 bit registers in x86_64 2015-03-24 10:23:37 +01:00
pancake
14aa79eac9 Better disasm+code analysis for Dalvik 2015-03-24 00:08:48 +01:00
pancake
2e32d05986 Fix another capstone build breakage issue 2015-03-22 16:49:29 +01:00
pancake
12ea9734b5 Fix about 15 more random COVs 2015-03-21 02:04:49 +01:00
pancake
515b2e77bc Fix about 40 COVs related to memleaks and buffer overflows 2015-03-21 01:27:54 +01:00
condret
afa5bb3c42 fix some gb-related stuff 2015-03-19 23:45:24 +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
pancake
33b519278a Fix #2173 - handle hex values in some x86.nz instructions 2015-03-11 11:46:42 +01:00
pancake
f4ad6cd79d Add /Af support for RAnalOpFamilyPriv for privileged instructions
- x86.cs only atm, capstone support is still wip
2015-03-08 22:09:59 +01:00
pancake
1a442ce3b4 Forbid 64bit ARM assembler, move handling code into arm.cs 2015-03-08 17:59:43 +01:00
pancake
39ead51cd9 Update capstone to next 2015-03-07 11:33:58 +01:00
pancake
56adb2533c Fix some pdj issues and recover a bit of /p scroll 2015-03-06 01:14:09 +01:00
pancake
3a5600f7c5 Sync with latest capstone-next (fixes pkg-config issue) 2015-03-05 23:54:41 +01:00
Kamil Rytarowski
4b636346a4 Resolve warnings: array subscript is of type 'char' 2015-02-22 23:11:05 +01:00
Aaron Puchert
43f240520e Rename x86.new assembler to x86.tab
This stands for "table lookup assembler".
2015-02-22 22:32:13 +01:00
jvoisin
370175873c Improves a bit z80-cr 2015-02-21 21:54:12 +01:00
pancake
5c8b417cf2 Add mul/div opcodes for x86.nz assembler and fix osx build 2015-02-20 19:39:38 +01:00
pancake
dab15be84f Add more spaguetti in x86.nz to support and and or 2015-02-19 14:39:01 +01:00
jvoisin
55f5c73008 Coverifix++ 2015-02-19 12:59:13 +01:00
jvoisin
defd2d0e96 Coverifix 2015-02-18 13:05:37 +01:00
Fedor Sakharov
1c49aad91d msp430: Fix some bugs 2015-02-17 19:55:10 +01:00
Aaron Puchert
bd8d245b13 Add two-byte opcodes and fix some issues in x86.new
Contains:
- Eliminated unnecessary parameter in readNumber
- Don't choose opcode if we don't have enough parameters
- Add ability to read numbered registers
- Such as FPU, MMX or SSE registers.
- Correctly assemble some spec-field encoded operations
- If we have a spec field specifying the operation and a
  register-only operand, we have to move the operand first.
  This is common for FPU instructions.
- Use size_t instead of int where appropriate
- Add tests for XMM registers
- Added all two-byte opcodes
- Add tests for new operations
- Separate flags for assembly and machine language
- Sometimes operations have two register-only operands and
  we can't easily find out which to encode how. That's why
  we now have flags describing what we expect in the assembly
  and separate flags describing how to encode an operand.
  This also makes the assembler code cleaner.
2015-02-15 13:32:50 +01:00
pancake
36ecbc21ff Add ESIL support for MicroMIPS jraddiusp instruction 2015-02-13 18:15:06 +01:00
pancake
79f74da707 Fix invalid arm64 disassembly issue 2015-02-12 17:08:06 +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
Jeffrey Crowell
6b215beec0 fix build broken by a5f53eae05
remove unused var in config.c
2015-02-10 23:17:45 -05:00
pancake
a5f53eae05 Initial implementation of asm.features on x86.cs and arm.cs 2015-02-11 03:50:56 +01:00
pancake
dc75cb2320 Fix the rest of base64 warnings 2015-02-10 00:05:18 +01:00
pancake
6e00097f0c Add some more ARM instruction descriptions 2015-02-09 15:35:17 +01:00
pancake
d2b7b8786d Fix some uninitialized variables in the new x86 assembler 2015-02-08 21:25:02 +01:00
pancake
7b597ea874 Fix latest COVs 2015-02-08 00:30:25 +01:00
pancake
33fcd7fbcf Enhacements for DEX sections and ignore methods at 0 (wip) 2015-02-06 18:53:11 +01:00
Aaron Puchert
55fb46e5e3 Assemble [esp] memory operands correctly 2015-02-06 02:03:02 +01:00
Aaron Puchert
f4b0e03374 Don't forget offset for scale*index w/o base 2015-02-06 02:03:02 +01:00
Aaron Puchert
95ad67a73e Let parser read "int3" correctly 2015-02-06 02:03:02 +01:00
Aaron Puchert
67d5c28282 Don't crash when parsing operations without operands 2015-02-06 02:03:02 +01:00
Aaron Puchert
e393167227 Corrected mistakes with mov 2015-02-06 02:03:02 +01:00
Aaron Puchert
1efc66eec5 Better handling of number constants 2015-02-06 02:03:02 +01:00
Aaron Puchert
b0ae267c2c Wrote tests for x86_new assembler 2015-02-06 02:03:01 +01:00
Aaron Puchert
4c0dd46abf Assemble the memory operand [0x0] correctly 2015-02-06 02:03:01 +01:00
Aaron Puchert
95ee95fdc9 Fixed memory addresses as immediates 2015-02-06 02:03:01 +01:00
Aaron Puchert
3e5eae9ce0 Fixed issue #2014 for x86.nz 2015-02-05 17:27:50 +01:00
pancake
a1dd4e1d94 Fix w32 build (another x86.new regression) 2015-02-05 16:34:05 +01:00
pancake
3ce72d628e Fix Android build (name conflicts with the new x86 assembler) 2015-02-05 16:22:13 +01:00
Aaron Puchert
0a2668d840 Wrote new x86 assembler
Supports only 32-bit for now and doesn't understand all mnemonics. And
we don't always choose the optimal opcode.
2015-02-05 16:05:20 +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
jvoisin
7e70c4d144 Two coverifix and a fortune 2015-02-01 21:28:55 +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
jvoisin
9681c6fcf7 More coverity 2015-01-25 14:35:46 +01:00
jvoisin
9174457d0f Coverity++ 2015-01-24 15:33:53 +01:00
Anton Kochkov
cee7d7cc17 Test if SDBs were created in libr/asm/d 2015-01-22 18:16:05 +03:00
pancake
05e1b556f8 Generate asm/d/mips and update sdb from git for 0.9.4 2015-01-19 18:48:53 +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
pancake
c2663afb01 Fix asm.ppc.cs big endian issue 2015-01-13 03:43:56 +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
Andrew McDonnell
6fe4d603ab Fixes other case for #1900: mov ebx, junk 2014-12-26 19:32:00 +01:00
pancake
c253cc5d6f Fix #1900 - The x86.nz 'mov' parser is a bit more strict now 2014-12-23 10:50:18 +01:00
pancake
15098999d2 Fix rep movsb and add retf/retn support for x86.nz assembler 2014-12-10 13:17:50 +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
e7a4aefdd4 Disassemble CRIS v32 by default (TODO: honor asm.cpu) 2014-12-08 13:51:12 +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
Jeffrey Crowell
559049908e fix crash in asm.c
asm.c could assemble more instructions than spots in the token array,
this fixes it.
2014-12-05 13:32:03 +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
pancake
5687fe2d1b Support AT&T syntax for x86.cs disassembler 2014-12-01 16:49:47 +01: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