119
118
Alphabetic characters, numbers, calculation command
symbols, etc, can be displayed as messages. They are
enclosed in quotation marks (
).
Alphanumeric characters and symbols
• Characters and symbols displayed when pressed
following
:
[,], k , m, , n, p, f, space,
A, B, C, D, E, F, G, H, I, J, K, L, M, N,
O, P , Q, R, S, T, U, V, W, X, Y, Z
•Other numbers, symbols, calculation commands,
program commands
0 1, 2, 3, 4, 5, 6, 7, 8, 9,
(,),
√
, E, +, -, X, ÷, ...
sin, cos, tan, log, ln, ...
=,
≠
,
≥
,
≤
, >, <, ...
/A , IB, , ID,
, , d, h, b, o
Neg, Not, and, or , xor
, ,
,
......
º (
),
r
(
) ,
g
(
)
*All of the above noted characters can be used in the same
manner as the alphabetic characters.
In the preceding example requiring an input of two types of
data (x,y ), the prompt “ ? ” does not give any information
concerning the type of input expected. A message can be
inserted before the “ ? ”, to verify the type of data required
for input.
Lbl, 1, : ,?, ,X,:,?, ,Y,:,...
The message “ x =” and “ y=” will be inserted into this
program.
Lbl, 1, :,",X,=,",?, ,X,:,
",Y,=,",?, ,Y,:,...
If messages are included as shown here, the display is as
follows:
(Assuming that the program is sorted in P1)
Example program 2
The same memories are used as in Example 1, but two
types of memory names are used and the x and y data
kept separate.
1, , A , : , Defm , 7 , : ,
Lbl , 1 , : , ? , , C , [ , A , ] , : ,
? , , R , [ , A , ] , : ,
Lsz , A , : , A , = , 1 , 6 ,
, Goto ,2 , : ,Goto , 1 , : ,
Lbl, 2 , : ,1 , 5 , , A , : , ? , , B , : ,
B , = , 0 ,
, Goto , 5 ,: ,
Lbl , 3, :, B , = , C , [ , A , ] , ,
, Goto , 4 , :,
Dsz, A , : , Goto , 3 , : , Goto , 2 , : ,
Lbl , 4 , : , R , [ , A , ] , , Goto , 2 ,: ,
Lbl , 5 92 steps
Memories are used as follows:
x data
C[1] C[2] C[3] C[4] C[5] C[6] C[7] C[8]
D E F G H I J K
C[9] C[10] C[11] C[12] C[13] C[14] C[15]
L M N O P Q R
y data
R[1] R[2] R[3] R[4] R[5] R[6] R[7] R[8]
S T U V W X Y Z
R[9] R[10] R[11] R[12] R[13] R[14] R[15]
Z(1) Z(2) Z(3) Z(4) Z(5) Z(6) Z(7)
In this way, the memory names can be changed. However,
since memory names are restricted to the letters from A
through Z , the expanded memories (
)
can only be used as array-type memories.
The memory expansion command (Defm) can be used in a
program.
Expand the number of memories by 14 to
make a total of 40 available.
Defm, 1, 4, :, ......
Summary of Contents for CA756
Page 24: ...38 Parenthesis calculations...
Page 27: ...41...
Page 34: ...48...
Page 40: ...54...
Page 42: ...56...
Page 45: ...59 Binary octal decimal hexadecimal conversions Negative expressions...
Page 46: ...60 Basic arithmetic operations using binary octal decimal and hexadecimal values...
Page 58: ...82 83 first...
Page 79: ...125 124...
Page 80: ...127 126...
Page 81: ...129 128 Program Calculations...
Page 82: ...131 130 Error Message Table...