Advertisement
Guest User

Brainfuck compare

a guest
Jul 3rd, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.        # if a>b, c=1
  2.        # if a<b, c= 255
  3.        # if a==b, c=0
  4.        # Setup: 1,0,1,0,a,b,0 point to a
  5.        # Result:x,x,x,x,x,x,c point to a
  6.        +>>+>> , >,<
  7.        >[<
  8.            [->-[>]<<]
  9.            <[-
  10.                 >>[
  11.                    >>+<<[-]
  12.                 ]
  13.                 >>.<<<<
  14.            ]
  15.            <[-
  16.                >>>>-.<<<<<
  17.            ]
  18.            <-
  19.        >>>>>[-]]
  20.        <<<<<[
  21.          >>>>
  22.          [>>+<<[-]]
  23.          >>.<<
  24.          <<<<
  25.        -]
  26.        >>>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement