kompiler 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d412abafd669fc13a7c7f04607dc0024cb63054f2a12f442ea8da3beea17119e
4
- data.tar.gz: 43120f2bd913622cdd7037efa9ae2f520fb5fbf5cbe0799dd511fa48845523cc
3
+ metadata.gz: 358077245911280980e98b213394c395224c5ee04f4b81b449a073582567eb46
4
+ data.tar.gz: bdaae177e9ef79b9628eaae6e9e506c69d9951f89ff387c28532940fd67d2f90
5
5
  SHA512:
6
- metadata.gz: 8275ceed8672bcf4935bc43b53a3a96c12b287070760a9ab098a57aa711c2f3072384287615523f2461dd81fc451f1c6c6931f655a65066504c2645de3adc85b
7
- data.tar.gz: 9f8723794b94852affd38e541a4b9c2ff2b85a3f3d83ab66c3abfd74a11dfa45bf32b4cee564eddc37105e5ec13436af939cc26da7e774f5d9fe4611af3a0ded
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}}],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kompiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyryl Shyshko