metasm 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/Gemfile +1 -0
  4. data/doc/code_organisation.txt +1 -1
  5. data/metasm.gemspec +1 -1
  6. data/metasm.rb +2 -1
  7. data/metasm/cpu/arc/decode.rb +3 -3
  8. data/metasm/cpu/arm/decode.rb +2 -2
  9. data/metasm/cpu/ia32/compile_c.rb +18 -2
  10. data/metasm/cpu/ia32/decode.rb +9 -4
  11. data/metasm/cpu/ia32/decompile.rb +22 -8
  12. data/metasm/cpu/ia32/opcodes.rb +5 -5
  13. data/metasm/cpu/mcs51.rb +8 -0
  14. data/metasm/cpu/mcs51/decode.rb +99 -0
  15. data/metasm/cpu/mcs51/main.rb +76 -0
  16. data/metasm/cpu/mcs51/opcodes.rb +120 -0
  17. data/metasm/cpu/mips/decode.rb +5 -4
  18. data/metasm/cpu/st20.rb +9 -0
  19. data/metasm/cpu/st20/decode.rb +180 -0
  20. data/metasm/cpu/st20/decompile.rb +283 -0
  21. data/metasm/cpu/st20/main.rb +37 -0
  22. data/metasm/cpu/st20/opcodes.rb +140 -0
  23. data/metasm/cpu/x86_64/encode.rb +4 -2
  24. data/metasm/cpu/x86_64/opcodes.rb +4 -2
  25. data/metasm/decode.rb +16 -15
  26. data/metasm/decompile.rb +1 -1
  27. data/metasm/disassemble.rb +3 -1
  28. data/metasm/disassemble_api.rb +3 -1
  29. data/metasm/dynldr.rb +9 -3
  30. data/metasm/encode.rb +2 -2
  31. data/metasm/exe_format/coff.rb +3 -1
  32. data/metasm/exe_format/coff_decode.rb +5 -3
  33. data/metasm/exe_format/elf.rb +4 -0
  34. data/metasm/exe_format/elf_decode.rb +1 -2
  35. data/metasm/exe_format/elf_encode.rb +4 -1
  36. data/metasm/exe_format/macho.rb +20 -6
  37. data/metasm/exe_format/pe.rb +1 -1
  38. data/metasm/exe_format/serialstruct.rb +1 -1
  39. data/metasm/gui.rb +1 -1
  40. data/metasm/gui/dasm_hex.rb +2 -2
  41. data/metasm/gui/dasm_main.rb +8 -8
  42. data/metasm/gui/debug.rb +4 -4
  43. data/metasm/gui/gtk.rb +1 -1
  44. data/metasm/gui/qt.rb +2 -2
  45. data/metasm/gui/win32.rb +1 -1
  46. data/metasm/main.rb +11 -6
  47. data/metasm/os/windows.rb +26 -23
  48. data/misc/hexdump.rb +2 -2
  49. data/misc/objdiff.rb +4 -1
  50. data/misc/objscan.rb +1 -1
  51. data/samples/dasm-plugins/bindiff.rb +1 -1
  52. data/samples/dasm-plugins/scanxrefs.rb +2 -1
  53. data/samples/dynamic_ruby.rb +24 -25
  54. data/samples/elfencode.rb +15 -0
  55. data/samples/exeencode.rb +2 -2
  56. data/samples/metasm-shell.rb +67 -55
  57. data/tests/mcs51.rb +27 -0
  58. metadata +13 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoann Guillot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2017-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,6 +121,10 @@ files:
121
121
  - metasm/cpu/ia32/opcodes.rb
122
122
  - metasm/cpu/ia32/parse.rb
123
123
  - metasm/cpu/ia32/render.rb
124
+ - metasm/cpu/mcs51.rb
125
+ - metasm/cpu/mcs51/decode.rb
126
+ - metasm/cpu/mcs51/main.rb
127
+ - metasm/cpu/mcs51/opcodes.rb
124
128
  - metasm/cpu/mips.rb
125
129
  - metasm/cpu/mips/compile_c.rb
126
130
  - metasm/cpu/mips/debug.rb
@@ -152,6 +156,11 @@ files:
152
156
  - metasm/cpu/sh4/decode.rb
153
157
  - metasm/cpu/sh4/main.rb
154
158
  - metasm/cpu/sh4/opcodes.rb
159
+ - metasm/cpu/st20.rb
160
+ - metasm/cpu/st20/decode.rb
161
+ - metasm/cpu/st20/decompile.rb
162
+ - metasm/cpu/st20/main.rb
163
+ - metasm/cpu/st20/opcodes.rb
155
164
  - metasm/cpu/x86_64.rb
156
165
  - metasm/cpu/x86_64/compile_c.rb
157
166
  - metasm/cpu/x86_64/debug.rb
@@ -324,6 +333,7 @@ files:
324
333
  - tests/expression.rb
325
334
  - tests/graph_layout.rb
326
335
  - tests/ia32.rb
336
+ - tests/mcs51.rb
327
337
  - tests/mips.rb
328
338
  - tests/parse_c.rb
329
339
  - tests/preprocessor.rb
@@ -361,6 +371,7 @@ test_files:
361
371
  - tests/expression.rb
362
372
  - tests/graph_layout.rb
363
373
  - tests/ia32.rb
374
+ - tests/mcs51.rb
364
375
  - tests/mips.rb
365
376
  - tests/parse_c.rb
366
377
  - tests/preprocessor.rb