diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-01-03 01:35:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-01-27 12:05:23 +0900 |
| commit | e2495878b872b341e6e04eed31dd255b1a6e256f (patch) | |
| tree | 4057ab19765ea7fc13505798c6434dceac02f4b1 /src/Structure/Instructions/Instrs/Variable | |
| parent | 5b4652d080c7eae26f8aac482468a6777ad9defe (diff) | |
| download | php-waddiwasi-e2495878b872b341e6e04eed31dd255b1a6e256f.tar.gz php-waddiwasi-e2495878b872b341e6e04eed31dd255b1a6e256f.tar.zst php-waddiwasi-e2495878b872b341e6e04eed31dd255b1a6e256f.zip | |
feat: implement binary decoder
Diffstat (limited to 'src/Structure/Instructions/Instrs/Variable')
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, + ) { + } +} |
