2020-04-14 10:04:09 -04:00
|
|
|
Arithmetic / Bits
|
|
|
|
|
|
|
|
+ a b -- c a + b -> c
|
|
|
|
- a b -- c a - b -> c
|
|
|
|
-^ a b -- c b - a -> c
|
|
|
|
* a b -- c a * b -> c
|
|
|
|
/ a b -- c a / b -> c
|
|
|
|
MOD a b -- c a % b -> c
|
|
|
|
/MOD a b -- r q r:remainder q:quotient
|
|
|
|
AND a b -- c a & b -> c
|
|
|
|
OR a b -- c a | b -> c
|
|
|
|
XOR a b -- c a ^ b -> c
|
2020-04-15 21:29:39 -04:00
|
|
|
|
|
|
|
Shortcuts: 1+ 2+ 1- 2-
|