Bitwise Operators

version 1 by Bart Massey

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Bit Shift Primitives (for Z-machine only)

    Include (-
    [ SHL A B;
    @art_shift A B -> A;
    return A;
    ];
    [ SHR A B;
    B = -B;
    @art_shift A B -> A;
    return A;
    ]; -).