Commit Graph

258 Commits

Author SHA1 Message Date
34dfcf56ea Beginning to swap endian when necessary 2011-06-04 00:52:04 +00:00
7fbcf60794 Fixed erratic call 2011-06-03 23:29:27 +00:00
d9a7463ac3 Implemented asm_set_function() 2011-05-11 21:47:30 +00:00
bbeb9ee7f3 Make sure the ArchInstructionCall structure is initialized before being used 2011-05-08 17:46:10 +00:00
670529b5a5 Fixed output of the "db" class of instruction 2011-05-08 17:35:27 +00:00
b9a48a2493 Fixed compilation in debugging mode 2011-05-08 17:22:26 +00:00
78568e9995 Fixed sizes for the "db", "dw", "dl" and "dq" instructions 2011-05-08 17:21:03 +00:00
5ecfa2ce56 Identifying more calls 2011-05-08 00:23:35 +00:00
f193041208 Defined a few more arguments as indexes to method names 2011-05-08 00:15:19 +00:00
9e598335ea Implemented a few more instructions and prefixes 2011-05-08 00:08:44 +00:00
fa4f93e29f Fixed and added a few instructions 2011-05-07 23:43:12 +00:00
de372f12aa Code cleanup 2011-05-07 23:42:53 +00:00
42341e0ff5 Removed debugging left-over 2011-05-07 23:30:32 +00:00
c38c9b0fd6 Code cleanup 2011-05-07 23:26:55 +00:00
4cda60c32c Fixed detection 2011-05-07 23:26:17 +00:00
27f30975b1 More reliable decoding 2011-05-07 23:16:53 +00:00
e4fc7626ff Code cleanup 2011-05-07 23:15:45 +00:00
a296d8ea63 Avoid warnings when compiled in debugging mode 2011-05-07 15:28:35 +00:00
7fa5dbc51f Working on better support for deassembling functions 2011-05-07 15:05:29 +00:00
aaba31a0db Fixed duplicate error reporting 2011-05-05 10:51:53 +00:00
6d022bd70d This file is no longer required 2011-05-05 10:51:00 +00:00
2e7902b0cb Implemented "-D" to influence the pre-processor 2011-05-04 16:18:41 +00:00
266f4c2682 Fixed semantics of type vs definition for ArchOperands 2011-05-02 01:08:21 +00:00
d16f99ebbb Moved detection of file format and architecture for deassembling into libasm 2011-05-01 20:07:15 +00:00
8c4cb8cce7 Use the predefined macros 2011-05-01 13:47:47 +00:00
955abacfb1 Exposing the Code class to both Arch and Format to avoid defining callbacks 2011-04-29 05:51:36 +00:00
1e482f87e1 Display the offset again 2011-04-28 08:52:45 +00:00
24200d4689 Moved deassembly printout into the Code class (allows printing strings) 2011-04-28 08:47:28 +00:00
25dce8d5bf Allow immediate values to reference string indexes 2011-04-28 07:51:45 +00:00
17f9579803 Fixing dependencies 2011-04-28 07:51:09 +00:00
04c95f6d79 Let CVS be quieter 2011-04-28 07:49:59 +00:00
39de4b15fd Added a few instructions 2011-04-28 06:24:10 +00:00
6870bbd088 Build a statically-linked version of asm for tests 2011-04-28 02:54:43 +00:00
dc35c51e55 Implemented some more parts of the API 2011-04-28 02:01:48 +00:00
36b78c27ed Preparing the API for maximum code re-use 2011-04-28 01:22:19 +00:00
e6329a15f6 Removed unused code 2011-04-28 00:04:21 +00:00
524ef4d910 Simplifying the API 2011-04-27 23:57:16 +00:00
7bbe4797be Renamed the "As" class to "Asm" 2011-04-27 23:54:47 +00:00
e7c3dc36b2 Added more i386 instructions 2011-04-25 16:19:24 +00:00
a76056547a Still adding jump instructions 2011-04-25 16:03:15 +00:00
7e14e3759a Added some more jump instructions 2011-04-25 16:01:57 +00:00
0f27c79d03 Added a few jump instructions 2011-04-25 15:58:30 +00:00
9176288890 Much work on better support for disassembling the Mod R/M byte 2011-04-25 06:16:07 +00:00
5361aa325a Nicer diassembly output 2011-04-25 03:41:49 +00:00
4fb64f8b2f Get rid of a couple warnings 2011-04-25 03:31:02 +00:00
95b8ad869b Disassembling i386 now has many more chances to complete 2011-04-25 03:14:48 +00:00
d3b506a52b Still working on i386 disassembly 2011-04-25 02:44:54 +00:00
59d9af1dd8 Improving i386 disassembly some more 2011-04-25 02:29:16 +00:00
4f328cb963 Added a mnemonic for the "call" instruction 2011-04-25 01:46:58 +00:00
37edc4e721 Disassembling some more i386 2011-04-25 01:37:10 +00:00
fbf01a7e91 Added two mnemonics for the "mov" instruction 2011-04-25 01:24:18 +00:00
e65c36ce04 Added the "jmp" instruction 2011-04-25 01:08:56 +00:00
98faecff40 Slightly improved i386 instruction decoding 2011-04-25 01:02:27 +00:00
69dd017c53 Got rid of a warning 2011-04-25 00:12:17 +00:00
92979e4dac Saving all instructions into memory before printing them (will help handle labels) 2011-04-25 00:10:50 +00:00
62978f4e08 Probably solved an endian issue 2011-04-24 16:46:26 +00:00
887cec89da Avoided a warning 2011-04-24 16:43:11 +00:00
99240a31be Improved the disassembly output again 2011-04-24 16:42:24 +00:00
9229d32d41 Improving disassembly support for the amd64 architecture 2011-04-24 04:57:13 +00:00
360afd3ad1 Report more errors 2011-04-24 04:56:31 +00:00
4d8a6ee281 Code cleanup 2011-04-24 03:39:11 +00:00
2d9240b494 Code cleanup 2011-04-24 03:23:57 +00:00
0dce6d04ce Fixed a potential invalid array access 2011-04-24 03:23:25 +00:00
79e248b195 Improving Dalvik again 2011-04-24 03:10:53 +00:00
85fcaa2e01 Minor improvements to Dalvik disassembly 2011-04-24 02:46:12 +00:00
4fd35ba7cc Mostly fixed the Dalvik disassembly table 2011-04-23 23:42:40 +00:00
3a7bc16298 Improved the Dalvi diassembly and output some more 2011-04-23 23:20:09 +00:00
442efe1151 Disassembling some more Dalvik 2011-04-23 21:49:35 +00:00
e243a69199 Disassembling some more Dalvik 2011-04-23 21:20:12 +00:00
5e227be104 Disassembling some more Dalvik 2011-04-23 21:06:48 +00:00
a4c030b500 Beginning to decode Dalvik instructions again 2011-04-23 20:50:52 +00:00
e17f8ddb46 Fixed double fclose() 2011-04-23 19:44:51 +00:00
4a5f818e46 Code cleanup 2011-04-23 18:48:08 +00:00
940b858a84 Improving the output 2011-04-23 17:48:37 +00:00
383ca51178 Beginning to disassemble files again 2011-04-23 17:40:05 +00:00
c0a0820fe4 Also decode immediate values to some extent 2011-04-23 16:48:15 +00:00
53e6e6690f Code cleanup 2011-04-23 16:47:49 +00:00
b67bb1ad90 Better handling of the temporary "db" substitution instruction 2011-04-23 07:48:57 +00:00
8a24516f7f Decoding some more i386 2011-04-23 07:46:35 +00:00
41e423407f Return "db" when more convenient for the moment 2011-04-23 06:40:42 +00:00
91ecd5ab54 Beginning to be useful as a disassembler again 2011-04-23 06:09:06 +00:00
4bd2f1c684 Compile with the -g flag set 2011-04-23 06:08:18 +00:00
73174d63c3 Compile with the -pedantic flag set 2011-04-23 06:07:22 +00:00
1e046db958 Fixed compilation in debugging mode 2011-04-23 06:06:34 +00:00
b56d0f3f4e Preparing to support disassembly again 2011-04-23 03:51:39 +00:00
53d6f4cbc3 Re-introducing support for the amd64 architecture 2011-04-23 03:11:00 +00:00
1f6ffd20a0 Got rid of a warning 2011-04-23 03:02:32 +00:00
a8407ddd19 Using helper callbacks to write assembly instructions 2011-04-23 03:01:55 +00:00
26777f9856 Got rid of some compilation warnings 2011-04-23 01:14:04 +00:00
438ef5939a Beginning to encode and test Dalvik instructions again 2011-04-23 01:12:37 +00:00
c4aef2db4f The encoding of instructions of slightly more correct 2011-04-23 01:11:20 +00:00
47efb56960 Completed the instruction list for the Dalvik architecture (need be checked) 2011-04-22 23:17:16 +00:00
aeab2aa627 Re-introducing support for the Dalvik architecture 2011-04-22 22:52:50 +00:00
7b7ecbcb58 Code cleanup 2011-04-22 22:51:25 +00:00
24836cadfd Re-introducing support for the Java architecture 2011-04-22 17:53:02 +00:00
a932a7fc54 Fixed the file information 2011-04-22 17:28:41 +00:00
2bb09ddb7d Using callbacks for file operations 2011-04-22 02:29:44 +00:00
0f1d52fbb9 Avoid a couple of warnings 2011-04-21 19:28:03 +00:00
fae68e5fd1 Re-introducing support for the sparc64 architecture 2011-04-21 19:20:50 +00:00
8ebf1b07af Also implemented branching instructions 2011-04-21 17:03:21 +00:00