1SNOBOL4LOGIC(3)                 CSNOBOL4 Manual                SNOBOL4LOGIC(3)
2
3
4

NAME

6       snobol4logic - bitwise logic and conversions for SNOBOL4
7

SYNOPSYS

9           -INCLUDE 'logic.sno'
10

DESCRIPTION

12       For binary operations, either argument can be INTEGER or STRING (if
13       both string, must be of same length).
14
15       NOT(arg)
16           returns bitwise not (complement) of integer argument.
17
18       AND(arg1,arg2)
19           bitwise intersection.
20
21       OR(arg1,arg2)
22           bitwise union.
23
24       XOR(arg1,arg2)
25           bitwise exclusive or (equivalence).
26
27       NAND(arg1,arg2)
28           bitwise intersection (first argument complemented).
29
30       NOR(arg1,arg2)
31           bitwise union (first argument complemented).
32
33       UPLUS(arg1,arg2)
34           unsigned addition.
35
36       UMINUS(arg1,arg2)
37           unsigned subtraction.
38
39       UMUL(arg1,arg2)
40           unsigned multiplication.
41
42       UDIV(arg1,arg2)
43           unsigned division.
44
45       SHL(arg1,arg2)
46           shift left.
47
48       SHR(arg1,arg2)
49           shift right.
50
51       SAR(arg1,arg2)
52           arithmetic (signed) shift right.
53
54       ROL(arg1,arg2)
55           rotate left.
56
57       ROR(arg1,arg2)
58           rotate right.
59
60       HI(str)
61           convert base 16 string to integer.
62
63       IH(int)
64           convert integer to base16 string.
65
66       DIB(str,n)
67           convert base n string to integer.
68
69       IDB(int,n)
70           convert integer to base n string.
71

COMPATIBILITY

73       compatible with Catspaw SPITBOL LOGIC function.
74

SEE ALSO

76       snobol4(1)
77

AUTHOR

79       Philip L. Budne
80
81
82
83CSNOBOL4B 2.3.1                 March 31, 2022                 SNOBOL4LOGIC(3)
Impressum