Bitwise Operators

version 1 by Bart Massey

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - XOR Phrases (for Glulx only)

    To bit-xor (A - a number) into (B - an existing number variable):
        (- @bitxor {A} {B} {B}; -)

    To decide what number is (A - a number) bit-xor (B - a number):
        let C be B;
        bit-xor A into C;
    decide on C.