aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Structure/Instructions/Instrs/Memory/I32Store16.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Structure/Instructions/Instrs/Memory/I32Store16.php')
-rw-r--r--src/WebAssembly/Structure/Instructions/Instrs/Memory/I32Store16.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Memory/I32Store16.php b/src/WebAssembly/Structure/Instructions/Instrs/Memory/I32Store16.php
new file mode 100644
index 0000000..3463fdf
--- /dev/null
+++ b/src/WebAssembly/Structure/Instructions/Instrs/Memory/I32Store16.php
@@ -0,0 +1,25 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Memory;
+
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;
+
+final readonly class I32Store16 extends Instr
+{
+ /**
+ * @param U32 $offset
+ * @param U32 $align
+ */
+ protected function __construct(
+ public int $offset,
+ public int $align,
+ ) {
+ }
+
+ public static function opName(): string
+ {
+ return "i32.store16";
+ }
+}