Changed: #2228 AS1/2/3 bitwise operations use hexadecimal operands

This commit is contained in:
Jindra Petřík
2024-08-01 22:24:01 +02:00
parent 5fb20268b2
commit 9683dc6a6f
23 changed files with 226 additions and 33 deletions

View 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;
}
}
}