; Hacker's Delight, page 15, rules n - r 1 var 8 x 2 var 8 y 3 xor 8 1 2 4 or 8 1 2 5 and 8 1 2 6 sub 8 4 5 7 ne 1 3 6 8 and 8 1 -2 9 sub 8 4 2 10 ne 1 8 9 11 sub 8 1 5 12 ne 1 8 11 13 one 8 14 sub 8 1 2 15 sub 8 2 1 16 sub 8 15 13 17 ne 1 -14 16 18 add 8 -1 2 19 ne 1 -14 18 20 or 1 7 10 21 or 1 12 17 22 or 1 20 21 23 or 1 22 19 24 root 1 23