mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 05:18:45 +00:00
Changed: #2228 AS1/2/3 bitwise operations use hexadecimal operands
This commit is contained in:
@@ -18,6 +18,7 @@ package
|
||||
{
|
||||
TestActivationArguments;
|
||||
TestArguments;
|
||||
TestBitwiseOperands;
|
||||
TestCallCall;
|
||||
TestCallLocal;
|
||||
TestCatchFinally;
|
||||
|
||||
18
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestBitwiseOperands.as
vendored
Normal file
18
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestBitwiseOperands.as
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestBitwiseOperands
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var a:int = 100;
|
||||
var b:int = a & 0x08ff;
|
||||
var c:int = 0x08ff & a;
|
||||
var d:int = a | 0x0480;
|
||||
var e:int = 0x0480 | a;
|
||||
var f:int = a ^ 0x0641;
|
||||
var g:int = 0x0641 ^ a;
|
||||
var h:int = ~0x0180;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user