https://gitlab.com/tezos/tezos
Raw File
Tip revision: 946045f0fd19b10f0419990eee290306edc15077 authored by Nic Volanschi on 28 April 2023, 14:15:13 UTC
doc: explain the default role in the doc guidelines
Tip revision: 946045f
not_bytes_016.tz
parameter unit;
storage unit;
code { DROP;

       # ~0x05 = 0xfa
       PUSH bytes 0x05; NOT; PUSH bytes 0xfa; ASSERT_CMPEQ;

       # ~0x0005 = 0xfffa
       PUSH bytes 0x0005; NOT; PUSH bytes 0xfffa; ASSERT_CMPEQ;

       # ~0xff05 = 0x00fa, not 0xfa
       PUSH bytes 0xff05; NOT; PUSH bytes 0x00fa; ASSERT_CMPEQ;

       UNIT; NIL @noop operation; PAIR; };
back to top