First page Back Continue Last page Overview Graphics

Forth Language

Bitwise Operators: AND OR XOR INVERT LSHIFT RSHIFT 2* 2/



Examples:


: byte-swap ( n -- m )
    DUP 8 RSHIFT SWAP 255 AND 8 LSHIFT OR ;

4096 byte-swap .