aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Instructions/Instrs/Variable
diff options
context:
space:
mode:
Diffstat (limited to 'src/Structure/Instructions/Instrs/Variable')
-rw-r--r--src/Structure/Instructions/Instrs/Variable/GlobalGet.php16
-rw-r--r--src/Structure/Instructions/Instrs/Variable/GlobalSet.php16
-rw-r--r--src/Structure/Instructions/Instrs/Variable/LocalGet.php16
-rw-r--r--src/Structure/Instructions/Instrs/Variable/LocalSet.php16
-rw-r--r--src/Structure/Instructions/Instrs/Variable/LocalTee.php16
5 files changed, 80 insertions, 0 deletions
diff --git a/src/Structure/Instructions/Instrs/Variable/GlobalGet.php b/src/Structure/Instructions/Instrs/Variable/GlobalGet.php
new file mode 100644
index 0000000..7d25650
--- /dev/null
+++ b/src/Structure/Instructions/Instrs/Variable/GlobalGet.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Structure\Instructions\Instrs\Variable;
+
+use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
+use Nsfisis\Waddiwasi\Structure\Types\GlobalIdx;
+
+final readonly class GlobalGet extends Instr
+{
+ public function __construct(
+ public GlobalIdx $var,
+ ) {
+ }
+}
diff --git a/src/Structure/Instructions/Instrs/Variable/GlobalSet.php b/src/Structure/Instructions/Instrs/Variable/GlobalSet.php
new file mode 100644
index 0000000..2f32855
--- /dev/null
+++ b/src/Structure/Instructions/Instrs/Variable/GlobalSet.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Structure\Instructions\Instrs\Variable;
+
+use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
+use Nsfisis\Waddiwasi\Structure\Types\GlobalIdx;
+
+final readonly class GlobalSet extends Instr
+{
+ public function __construct(
+ public GlobalIdx $var,
+ ) {
+ }
+}
diff --git a/src/Structure/Instructions/Instrs/Variable/LocalGet.php b/src/Structure/Instructions/Instrs/Variable/LocalGet.php
new file mode 100644
index 0000000..4c4f794
--- /dev/null
+++ b/src/Structure/Instructions/Instrs/Variable/LocalGet.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Structure\Instructions\Instrs\Variable;
+
+use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
+use Nsfisis\Waddiwasi\Structure\Types\LocalIdx;
+
+final readonly class LocalGet extends Instr
+{
+ public function __construct(
+ public LocalIdx $var,
+ ) {
+ }
+}
diff --git a/src/Structure/Instructions/Instrs/Variable/LocalSet.php b/src/Structure/Instructions/Instrs/Variable/LocalSet.php
new file mode 100644
index 0000000..d103c22
--- /dev/null
+++ b/src/Structure/Instructions/Instrs/Variable/LocalSet.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Structure\Instructions\Instrs\Variable;
+
+use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
+use Nsfisis\Waddiwasi\Structure\Types\LocalIdx;
+
+final readonly class LocalSet extends Instr
+{
+ public function __construct(
+ public LocalIdx $var,
+ ) {
+ }
+}
diff --git a/src/Structure/Instructions/Instrs/Variable/LocalTee.php b/src/Structure/Instructions/Instrs/Variable/LocalTee.php
new file mode 100644
index 0000000..89e253b
--- /dev/null
+++ b/src/Structure/Instructions/Instrs/Variable/LocalTee.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Structure\Instructions\Instrs\Variable;
+
+use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
+use Nsfisis\Waddiwasi\Structure\Types\LocalIdx;
+
+final readonly class LocalTee extends Instr
+{
+ public function __construct(
+ public LocalIdx $var,
+ ) {
+ }
+}