Commit graph

1236 commits

Author SHA1 Message Date
Léo Gaspard
ff4bce16db Actually follow UEFI spec for index{32,64} 2016-03-29 01:22:48 +02:00
pancake
d629165ec8 Remove unnecessary = NULL in bin/p/*.c 2016-03-27 23:02:29 +02:00
pancake
9d62ee0ddf Fix m68k.cs disassembler issue, honor asm.cpu in anal.m68k.cs 2016-03-24 16:21:49 +01:00
pancake
a461bbc536 Fix #4304 - asm.filter for m68k 2016-03-22 12:45:05 +01:00
pancake
76fa5bddcf Add missing signature 2016-03-18 17:19:06 +01:00
pancake
446add902f Fix #4345 - Add scas{bwd} for x86.nz 2016-03-18 16:59:47 +01:00
pancake
dc33b03011 Handle movk and movz in the arm64 assembler and pseudo disassembler 2016-03-17 17:26:08 +01:00
pancake
ae32acc5bc Add missing space after commas in m68k 2016-03-15 11:59:19 +01:00
pancake
1c443caccf Fix some COVs in snes disassembler 2016-03-13 21:04:12 +01:00
pancake
526d8d8e63 Fix #4275 - Fix lanai format string warnings 2016-03-13 03:23:54 +01:00
Evan Shaw
36e42b33fe Support 16-bit immediate operands in SNES
Size for immediate operands depends on the value of the M flag
(for register A) or the X flag (for registers X and Y). A register is
8-bit when its respective flag is set and 16-bit when clear.

These flags can be set or unset independently, so this still isn't quite right
for when one flag is set and the other isn't, but it's an improvement. It's
possible to force a particular instruction to decode correctly by using the
`afh` command.
2016-03-12 03:06:46 +01:00
oddcoder
966900121d adding bunch of another esil & fixing the bits 2016-03-09 15:32:50 +01:00
oddcoder
888b7d575d fixing bug in goto disassmebly 2016-03-09 12:21:56 +01:00
Álvaro Felipe Melchor
0efdf9cf97 Fix again #4215 2016-03-07 22:17:59 +01:00
pancake
d00beba767 Fix arm.cs thumb thing 2016-03-07 17:06:26 +01:00
pancake
75bf9b233a Fix aat->aap typo and add no-mclass option for x86.arm.cs 2016-03-07 12:31:50 +01:00
pancake
be9d53417e Fix #4215 - Fix disasm of thumb mrs 0, primask 2016-03-07 04:50:06 +01:00
pancake
650e99407b Oops. copypaste error in 6502dis 2016-03-07 04:44:42 +01:00
pancake
8de14dc2b6 Fix #4242 - OOB read in riscv disassembler 2016-03-07 00:21:49 +01:00
pancake
36ce331815 Fix #4239 - oobread in 6502 disassembler 2016-03-06 23:43:07 +01:00
oddcoder
9b21040898 fixing logic error in rcall instruction
I just misread the operands of the rcall instruction
their is 2 similar types of instruction (naming conveintions used only
by me and mentioned no where in the manual) the N_T where the n operand
is 8 bit and NET_T where the n operand is 11 bit
the rcall looks like the following 1101 1nnn nnnn nnnn which is obviosly
NEX_T
2016-03-05 19:54:31 +01:00
oddcoder
115c0bd40d fixing OSX Darwin compilation error #4218 2016-03-04 15:20:20 +01:00
oddcoder
599cbcd3c7 attempt to fix scan.converity bugs
I also hunted 4th illegal memory read
the first 2 bytes of b is always casted to (ut16) type
with out checking if b even contains 2 bytes
now it is handled it correctly
2016-03-04 00:50:25 +01:00
oddcoder
87b6ada97a Add asm.describe for pic18c 2016-03-03 03:18:03 +01:00
oddcoder
7fe6c6dff2 Adding initial support for PIC18C diassembler 2016-03-02 11:55:22 +01:00
mrdanielps
7fe1d56932 V810: fixes
* Proper bound checking when decoding.
* Reuse some macros.
* Follow code style guidelines.
2016-02-28 17:43:40 +01:00
Prasanna Balan
d9f4bce40b MSP430: add support for illegal opcodes
Before this commit,any illegal opcode would return -1 which
would make r2 use 1 byte as default opcode width.This was
wrong on MSP430 as it uses fixed 2 byte opcodes.Fix this
2016-02-25 02:58:38 +01:00
pancake
af2f02515f Support and load r_fs plugins 2016-02-21 02:32:28 +01:00
pancake
7c76d45ab7 Fix #4114 - Remove the use of setjmp in xtensa arch 2016-02-20 23:41:23 +01:00
William Robinet
a67adbcbb8 Typos 2016-02-17 13:38:43 +01:00
pancake
f52d3c114c Add missing signature for the lanai disassembler 2016-02-16 23:26:55 +01:00
William Robinet
d3ab5f38aa Remove execution bit from source files 2016-02-16 23:21:46 +01:00
William Robinet
0c7cacc2dc Fix typos 2016-02-16 23:21:24 +01:00
pancake
55eee73c6d Fix #4061 - properly assemble ldr.w thumb instruction 2016-02-16 17:12:37 +01:00
pancake
384cfb1042 Fix last coverities 2016-02-16 02:08:09 +01:00
mrdanielps
d6f49bc54e V810: Implement ESIL 2016-02-16 00:57:42 +01:00
pancake
ce7ca97cb6 Wip fixes for r_strbuf 2016-02-16 00:28:57 +01:00
pancake
fd359e9121 Implement radiff2 -D and optimize r_strbuf 2016-02-15 23:51:20 +01:00
pancake
cdf63617d7 Initial support for LANAI disassembler 2016-02-15 13:27:23 +01:00
pancake
838b254cc8 Fix #4090 - Do not assemble one-arg xors in x86.nz 2016-02-11 07:35:51 -06:00
mrdanielps
8ee43270e8 V810: Add opcode descriptions 2016-02-11 00:13:27 -06:00
evanrichter
7f43919750 add propeller architecture to asm.describe
source: http://nagasm.org/ASL/Propeller/printedPDF/QuickReference-v15.pdf
2016-02-10 17:21:08 -05:00
Jonathan Neuschäfer
91c940738c Add opcode descriptions for riscv 2016-02-03 11:29:32 +01:00
Jonathan Neuschäfer
edbb677a79 libr/asm/d/arm: Fix description of ORR opcode 2016-02-03 11:22:13 +01:00
condret
44b06b11de fix something 2016-02-01 14:10:09 +00:00
condret
b1d894ab7b fix some warning 2016-02-01 10:58:36 +00:00
condret
f66e7a4c46 fix #4012 2016-02-01 10:09:20 +00:00
pancake
bb073cf5db Modernize asm/code.c 2016-01-30 03:02:06 +01:00
pancake
b08892dbb3 Fix Tricore warnings and handle in ELF 2016-01-30 02:58:45 +01:00
Kitsu
73f2995d2e Added tms320 description 2016-01-30 02:50:41 +01:00
pancake
d7a244f010 Initial import of asm.tricore disassembler plugin 2016-01-30 02:47:17 +01:00
pancake
d30b2f4894 Initial import of the anal.xtensa plugin 2016-01-30 01:37:04 +01:00
Bigendian Smalls
6d1242c18d Added initial documentation for sysz architecture
This will cover 99% of the commands implemented correctly/currently (via
capstone). However, since this doco is a complete list of mnemonics as
of 2016, it will cover all the instructions when a more complete
implementation of sysz is build for r2. Thanks to @mainframed for
parsing the original docs to create the raw instruction files.
2016-01-29 00:02:48 +01:00
pancake
6f1655c491 Initial support for xtensa CPU disassmbler (from GNU binutils) 2016-01-28 23:59:50 +01:00
Kitsu
a1b872517a Added lm32 description 2016-01-28 23:17:12 +01:00
Kitsu
ea70e2d704 Added missed mnemo in description 2016-01-28 12:22:41 +01:00
Kitsu
990abd338c Added desc to msp430 and fixed mnemo typo rcr -> rrc 2016-01-28 12:22:41 +01:00
pancake
0911012a13 Refix xor assembler in x86.nz 2016-01-27 03:22:15 +01:00
pancake
e0b5efcb6b Fix #4004 - support xor r8-r15 in the x86.nz assembler 2016-01-27 02:54:13 +01:00
Kitsu
6b98a61ae3 Added dalvik description #4014 2016-01-26 21:51:33 +01:00
Maijin
90bc1f37bc Added wpm and extended some descriptions @l4l fix #4033 2016-01-26 15:22:49 +01:00
Maijin
41c8c5ad48 Fix i4004dis scr -> src opcode 2016-01-26 15:10:39 +01:00
Kitsu
16c102b2c5 Added i4004 for #4014 2016-01-26 09:38:52 +01:00
NighterMan
67038f8738 Add CLAC/STAC instructions support (SMAP) 2016-01-25 16:11:21 +01:00
Evgeny
0e58051600 Java description fixed
#4021
2016-01-25 16:10:17 +01:00
Maijin
28a7dc072f Add i8080/java opcodes, fix x86/sh descriptions thanks @fenugrec @l4l 2016-01-25 12:47:36 +01:00
Maijin
098b7a8d01 Add Malbolge VM opcodes description 2016-01-25 01:08:53 +01:00
Maijin
43d15d5db3 Add SuperH-4 CPU opcodes description thanks @fenugrec 2016-01-25 00:19:58 +01:00
Maijin
29d8456013 Add m68k opcodes descriptions 2016-01-24 13:59:41 +01:00
Maijin
d512751230 Add arc opcodes descriptions 2016-01-23 23:00:34 +01:00
Maijin
273103e66d Add LH5801 opcodes descriptions 2016-01-23 22:43:11 +01:00
Maijin
6f7085e1ba Add description for 8051 opcodes 2016-01-23 22:27:24 +01:00
Maijin
eac6daf88b Add more asm description for MIPS
Add more asm description for MIPS
2016-01-23 21:31:06 +01:00
deffi420
e7fdedd501 Improve r_hex_str2bin, fix overflow and error check 2016-01-23 11:53:43 +01:00
Kamil Rytarowski
0d827a2870 NetBSD: Fix warnings for array subscript has type 'char' 2016-01-22 21:36:30 +01:00
pancake
59a7b7cda7 Handle r8-r15 in push/pop for x86-64 in x86.nz assembler 2016-01-22 17:47:41 +01:00
pancake
5f8697f10a Fix #3972 - Use API instead of command for named functions 2016-01-19 00:44:24 +01:00
pancake
2fed275e04 Handle few x86-16 instructions in x86.nz 2016-01-12 17:37:19 +01:00
pancake
8e25f942f2 Fix #3821 - Add x86.nasm in default plugin list 2016-01-11 01:42:19 +01:00
pancake
a778b467a0 Initial i4004 analysis plugin 2016-01-10 23:03:27 +01:00
Maijin
f4c2b98d63 Add some missing description for x86 opcodes 2016-01-09 11:21:50 +01:00
pancake
056e933bdf Fix #3920 - Implement NEG in x86.nz 2016-01-09 00:22:13 +01:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
pancake
1d8b761ca1 Various static and iOS related build issues are now fixed 2015-12-28 02:01:45 +01:00
Jeffrey Crowell
d1b5b6ee62 fix doc for x86 enter 2015-12-15 17:56:02 -05:00
Asger Hautop Drewsen
c72cd131ee Fix syntax choice for asm_x86_as 2015-12-08 21:32:15 +01:00
pancake
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
pancake
bf54c766f3 6502 is also for Tamagotchis 2015-12-01 12:06:10 +01:00
Ricardo Quesada
f5c65f5da8 Adds VSF (VICE Snapshot File) support as a bin format
VICE is the most popular C64/C128 emulator and allows
users to save snapshots of the games.

Analyzing VICE snapshots are more useful than
analyzing .prg (the "standard" c64 program)
because usually all .prg are compressed, and
are decompressed in runtime.

commit 796297c6cd3a099fd17ad3715b4ed5646a6a9e65
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 12:28:58 2015 -0800

    no sbd for the moment

commit c785b22318c3cacf7771ab21198aa759777224af
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 10:06:12 2015 -0800

    bank 0 and bank 1

commit 63304876b6f84df001c39f5b35084ff6e61bc01b
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 09:47:12 2015 -0800

    c128 includes basic, monitor and editor sections

commit 1a8995a644df6d9e871a586e57c3cd8e00cce7ae
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Thu Nov 26 14:45:36 2015 -0800

    c128 roms...

    uses sdb which is not used at all
    more vic symbols

commit 8a29c3c7736fcf689b9248e65093277347ae38bc
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Nov 24 10:39:44 2015 -0800

    ram last entry

commit fca46301b2fd68e230cf547047a5278e098c9340
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Nov 24 00:10:20 2015 -0800

    more tidy code

commit 03b8a12b319bd0eb9f21b60d882da2030c2c35f1
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Mon Nov 23 22:52:20 2015 -0800

    VSF works for C64... still many things to fix

commit a118a930cb40441b412db916deb4c0ca30e30309
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Mon Nov 23 13:37:32 2015 -0800

    initial commit... compiles and detects VICE

    but nothing more
2015-11-29 12:17:05 +01:00
pancake
e0ce78f08c Fix double reglisting in linux-arm 2015-11-25 12:49:02 +01:00
Dax
412934d20e Initial PSX Executable Support
PSX Plugin: Deleted useless file
PSX Plugin: Adjusted coding style, minor fixes
PSX Plugin: Removed typo, adjusted makefile, call check_bytes with correct parameters
2015-11-23 20:56:19 +01:00
pancake
a31cd1101e Initial import of the VAX asm/anal/bin support 2015-11-23 12:34:53 +01:00
mrmacete
92991394a5 + fixed labels replacement in assembler (#3395) 2015-11-19 11:47:25 +01:00
@bezjaje
8468b96ff8 avoid '#' comment assembly on negative numbers 2015-11-17 12:52:19 +01:00
pancake
9c5a309791 Fix oobread in print_hexpair and fill buf_hex in unaligned disasm 2015-11-16 22:37:02 +01:00
Sylvain Pelissier
309e078a8d MIPS instructions information update 2015-11-13 20:48:34 +01:00
pancake
ad74a6ec6b Move msil and mdmp into radare2-extras, add r2pm pkgs 2015-11-11 11:07:32 +01:00
Sylvain Pelissier
93f1a17041 MIPS instructions information update 2015-11-10 22:36:22 +01:00
pancake
92f4e72228 Fix infinite analysis for archs without anal plugs 2015-11-05 16:51:36 +01:00
pancake
cc30dc5d83 Fix CR16 disassembler crash 2015-11-05 16:28:11 +01:00
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