1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-05 09:00:55 +11:00
collapseos/blk/054

17 lines
447 B
Plaintext
Raw Normal View History

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
Shortcuts: 1+ 2+ 1- 2-