# HG changeset patch # User Mike Pavone # Date 1376017489 25200 # Node ID 4c7c3d3e0265cd4972fb5bfc7c84854ed5867722 # Parent f98790d8a53d4793d2c77428c5047be7dbcc14f5 Add bitwise operation sample diff -r f98790d8a53d -r 4c7c3d3e0265 samples/bitwise.tp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/bitwise.tp Thu Aug 08 20:04:49 2013 -0700 @@ -0,0 +1,11 @@ +#{ + main <- { + a <- 0x42 + b <- 0x7A + print: "a or b = " . (string: a or b) . "\n" + print: "a and b = " . (string: a and b) . "\n" + print: "a xor b = " . (string: a xor b) . "\n" + print: "lshift: a by: 3 = " . (string: (lshift: a by: 3)) . "\n" + print: "rshift: b by: 1 = " . (string: (rshift: b by: 1)) . "\n" + } +}