Skip to content

Commit 14916f8

Browse files
committed
Add lstore_<d>
1 parent 280f39e commit 14916f8

4 files changed

Lines changed: 4 additions & 12 deletions

File tree

src/Kernel/Mnemonics/_lstore_0.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22
namespace PHPJava\Kernel\Mnemonics;
33

4-
use PHPJava\Exceptions\NotImplementedException;
5-
64
final class _lstore_0 implements OperationInterface
75
{
86
use \PHPJava\Kernel\Core\Accumulator;
97
use \PHPJava\Kernel\Core\ConstantPool;
108

119
public function execute(): void
1210
{
13-
throw new NotImplementedException(__CLASS__);
11+
$this->setLocalStorage(0, $this->popFromOperandStack());
1412
}
1513
}

src/Kernel/Mnemonics/_lstore_1.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22
namespace PHPJava\Kernel\Mnemonics;
33

4-
use PHPJava\Exceptions\NotImplementedException;
5-
64
final class _lstore_1 implements OperationInterface
75
{
86
use \PHPJava\Kernel\Core\Accumulator;
97
use \PHPJava\Kernel\Core\ConstantPool;
108

119
public function execute(): void
1210
{
13-
throw new NotImplementedException(__CLASS__);
11+
$this->setLocalStorage(1, $this->popFromOperandStack());
1412
}
1513
}

src/Kernel/Mnemonics/_lstore_2.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22
namespace PHPJava\Kernel\Mnemonics;
33

4-
use PHPJava\Exceptions\NotImplementedException;
5-
64
final class _lstore_2 implements OperationInterface
75
{
86
use \PHPJava\Kernel\Core\Accumulator;
97
use \PHPJava\Kernel\Core\ConstantPool;
108

119
public function execute(): void
1210
{
13-
throw new NotImplementedException(__CLASS__);
11+
$this->setLocalStorage(2, $this->popFromOperandStack());
1412
}
1513
}

src/Kernel/Mnemonics/_lstore_3.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22
namespace PHPJava\Kernel\Mnemonics;
33

4-
use PHPJava\Exceptions\NotImplementedException;
5-
64
final class _lstore_3 implements OperationInterface
75
{
86
use \PHPJava\Kernel\Core\Accumulator;
97
use \PHPJava\Kernel\Core\ConstantPool;
108

119
public function execute(): void
1210
{
13-
throw new NotImplementedException(__CLASS__);
11+
$this->setLocalStorage(3, $this->popFromOperandStack());
1412
}
1513
}

0 commit comments

Comments
 (0)