We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14916f8 commit e35b8cdCopy full SHA for e35b8cd
1 file changed
src/Kernel/Mnemonics/_lxor.php
@@ -1,7 +1,8 @@
1
<?php
2
namespace PHPJava\Kernel\Mnemonics;
3
4
-use PHPJava\Exceptions\NotImplementedException;
+use PHPJava\Kernel\Types\_Long;
5
+use PHPJava\Utilities\Extractor;
6
7
final class _lxor implements OperationInterface
8
{
@@ -10,6 +11,17 @@ final class _lxor implements OperationInterface
10
11
12
public function execute(): void
13
- throw new NotImplementedException(__CLASS__);
14
+ $value2 = $this->popFromOperandStack();
15
+ $value1 = $this->popFromOperandStack();
16
+
17
+ $this->pushToOperandStack(
18
+ _Long::get(
19
+ BinaryTool::xorBits(
20
+ Extractor::getRealValue($value1),
21
+ Extractor::getRealValue($value2),
22
+ 8
23
+ )
24
25
+ );
26
}
27
0 commit comments