27
Calculation Examples of Logical Expressions
NOT (negation)
A =1= 0000000000000001
NOT 1 = 1111111111111110 = –2
NOT A = –2
AND (logical product)
A = 5 = 0000000000000101
B = 6 = 0000000000000110
A AND B = 0000000000000100 = 4
OR (logical sum)
A = 4 = 0000000000000100
B = 3 = 0000000000000011
A OR B = 0000000000000111 = 7
XOR (exclusive OR)
A = –4 = 1111111111111100
B = 5 = 0000000000000101
A XOR B = 1111111111111001 = –7
EQV (equivalent)
A = –4 =1111111111111100
B = 5 = 0000000000000101
A EQV B = 0000000000000110 = 6
IMP (implication)
A = –4 = 1111111111111100
B = 5 = 0000000000000101
A IMP B = 0000000000000111 = 7
4-2
Commands, Statements, and Functions
This section explains, in detail, the BASIC commands, statements and func-
tions. They are presented in alphabetical order by section. Each description is
formatted as described below.
4-2-1 BASIC Format
Purpose:
Explains the purpose or use of the instruction
Format:
Shows the correct format for the instruction
The following rules apply to the format descriptions of all commands, instruc-
tions, and functions:
•
Items in CAPITAL LETTERS must be input as shown.
•
Items in lower case letters enclosed in angle brackets (< >) are to be supplied
by the user.
•
Items in square brackets ([ ]) are optional.
•
All punctuation marks except angle and square brackets (i.e., comas, hy-
phens, semicolons, parentheses, and equal signs) must be included where
shown.
•
Arguments to functions are always enclosed in parentheses. In the formats
given for the functions in this chapter, the arguments have been abbreviated as
follows:
x and y :
represent numeric expressions
I and J :
represent integer expressions
A$ and B$ :
represent string expressions
Commands, Statements, and Functions
Section 4-2
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...