asmrepl 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -3
- data/lib/asmrepl/repl.rb +0 -12
- data/lib/asmrepl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66bd4fd2c44903afafbb5924f1910647aab05ff1d7f7f90cacf4d4d09964a8b8
|
4
|
+
data.tar.gz: 0c3a99d4e03b71f43f1796144cf1af56c7ef17f43052227d510d5b4f5579db6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41093a34308ffce3a1b2a5ee73ad599c85de6355ac843ba45ded9357228bdee7c0cd554c8ce478901209c62279a779da296e40062067b62e73cef37e3cd91b66
|
7
|
+
data.tar.gz: 2214aa5766194481ceb6da8fd262e8eefb1cbeebb78a00ed3826805e1b35d07ac200626ab81cb39f2223d562019ed27f81a8d8ec7706ce6b8108bccf35301eaa
|
data/README.md
CHANGED
@@ -2,15 +2,27 @@
|
|
2
2
|
|
3
3
|
This is a REPL for assembly language.
|
4
4
|
|
5
|
+
## Linux requirements
|
6
|
+
```
|
7
|
+
$ sudo apt-get install libcapstone-dev
|
8
|
+
```
|
9
|
+
|
5
10
|
## Usage
|
6
11
|
|
7
|
-
|
12
|
+
Install the gem:
|
13
|
+
|
14
|
+
```
|
15
|
+
$ gem install asmrepl
|
16
|
+
```
|
17
|
+
|
18
|
+
Then start the repl like this:
|
8
19
|
|
9
20
|
```
|
10
|
-
$
|
11
|
-
$ sudo ruby -I lib:test bin/asmrepl
|
21
|
+
$ asmrepl
|
12
22
|
```
|
13
23
|
|
24
|
+
If you're on macOS, you'll need to start the repl with `sudo`.
|
25
|
+
|
14
26
|
When the REPL starts, it will display all register values and flags:
|
15
27
|
|
16
28
|
```
|
data/lib/asmrepl/repl.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require "fiddle"
|
2
2
|
require "fisk/helpers"
|
3
|
-
require "crabstone"
|
4
3
|
require "reline"
|
5
4
|
|
6
5
|
if RUBY_PLATFORM =~ /darwin/
|
@@ -9,17 +8,6 @@ else
|
|
9
8
|
require "asmrepl/linux"
|
10
9
|
end
|
11
10
|
|
12
|
-
class Crabstone::Binding::Instruction
|
13
|
-
class << self
|
14
|
-
alias :old_release :release
|
15
|
-
end
|
16
|
-
|
17
|
-
# Squelch error in crabstone
|
18
|
-
def self.release obj
|
19
|
-
nil
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
11
|
module ASMREPL
|
24
12
|
class REPL
|
25
13
|
include Fiddle
|
data/lib/asmrepl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asmrepl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|