kompiler 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kompiler/architectures/armv8a/instructions.rb +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 358077245911280980e98b213394c395224c5ee04f4b81b449a073582567eb46
|
|
4
|
+
data.tar.gz: bdaae177e9ef79b9628eaae6e9e506c69d9951f89ff387c28532940fd67d2f90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c238947087f8d2032816abbe9882df8906b53de123e382ebc662aa3461e560ff69d5001e5ecdc8d28793bdd495a669ec36873d5d6792bfc0cc7396f423d96edd
|
|
7
|
+
data.tar.gz: 747cacbc92d042db6bf1ed5569bb7727ce29694c9c8f4cc6e24c625f26aee73532eb5ea6b93763f47c8e0f3819a43012919dd922b9155c035c43247e4fd0c9ec
|
|
@@ -297,6 +297,19 @@ end
|
|
|
297
297
|
],
|
|
298
298
|
bitsize: 32
|
|
299
299
|
},
|
|
300
|
+
{
|
|
301
|
+
keyword: "ldrb",
|
|
302
|
+
name: "Load Register Byte",
|
|
303
|
+
description: "Loads a byte from memory and writes the result to the destination register.",
|
|
304
|
+
operands: [{type: "register", restrictions: {reg_type: "gpr"}, name: "Destination"}, {type: "register", restrictions: {reg_size: 64, reg_type: "gpr"}, name: "Source address"}],
|
|
305
|
+
mc_constructor: [
|
|
306
|
+
["get_bits", ["encode_gp_register", ["get_operand", 0]], 0, 5],
|
|
307
|
+
["get_bits", ["encode_gp_register", ["get_operand", 1]], 0, 5],
|
|
308
|
+
["get_bits", 0, 0, 12], # Immediate offset zero
|
|
309
|
+
["bits", 1,0, 1,0, 0, 1,1,1, 0,0],
|
|
310
|
+
],
|
|
311
|
+
bitsize: 32
|
|
312
|
+
},
|
|
300
313
|
{
|
|
301
314
|
keyword: "strh",
|
|
302
315
|
operands: [{type: "register", restrictions: {reg_size: 32}}, {type: "register", restrictions: {reg_size: 64}}],
|