hack_assembler 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/Pong.asm +28374 -0
- data/PongL.asm +27490 -0
- data/README.md +32 -0
- data/Rakefile +10 -0
- data/bin/hack_assembler +17 -0
- data/hack2asm.gemspec +24 -0
- data/lib/hack_assembler/a_instruction.rb +14 -0
- data/lib/hack_assembler/assembler.rb +21 -0
- data/lib/hack_assembler/c_instruction.rb +17 -0
- data/lib/hack_assembler/computation_translator.rb +41 -0
- data/lib/hack_assembler/destination_translator.rb +22 -0
- data/lib/hack_assembler/jump_translator.rb +22 -0
- data/lib/hack_assembler/parser_error.rb +4 -0
- data/lib/hack_assembler/version.rb +3 -0
- data/lib/hack_assembler.rb +21 -0
- data/out.hack +27483 -0
- data/test/a_instruction_test.rb +21 -0
- data/test/assembler_test.rb +27 -0
- data/test/c_instruction_test.rb +44 -0
- data/test/computation_translator_test.rb +115 -0
- data/test/destination_translator_test.rb +39 -0
- data/test/hack2asm_test.rb +7 -0
- data/test/jump_translator_test.rb +39 -0
- data/test/test_helper.rb +6 -0
- metadata +123 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2c382e0c2ca7ae32e05aec74da6e0ab061d6fdbf
|
4
|
+
data.tar.gz: 022d493d48819e560fd0ad763395d5a677718dbf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 125e257a54f2695db744394ac9f9e8f474beb43690a48583177a080a1f77305adb223507d2bbe0cbd8c1dd0fca8e7562c8c25faebfbb9659e796f3c0c11b213b
|
7
|
+
data.tar.gz: b94dfaf5371f68bfb91c74556e8de03cb556db95ee2ef4341a82b9381fc8414106ca83c754e09f8957950297d9546288a2f5ce8dcd99b694e2de258843108680
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Federico
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|