
275
Appendix D
Formats for Storing Variables in Memory
Variables are stored to memory in the following ways, depending on the variable type.
• Short Integer Variables
• Long Integer Variables
• Single-precision Real Number Variables
• Double-precision Real Number Variable
• Character String Variable
Address
15
0
MSB
LSB
15
0
S
D
1 bit
15 bits
S: Sign (0: positive, 1: negative)
D: Numeric value
Address
15
0
MSB
15
0
S
D
1 bit
31 bits
S: Sign (0: positive, 1: negative)
D: Numeric value
LSB
Address
15
0
S
31
0
S
E
1 bit
8 bits
S: Sign (0: positive, 1: negative)
E: Exponent (offset: 127)
M: Mantissa
LSB
E
M
M
M
23 bits
15
0
S
63
0
S
E
1 bit
11 bits
S: Sign (0: positive, 1: negative)
E: Exponent (offset: 1023)
M: Mantissa
LSB
E
M
M
M
52 bits
M
M
15
0
Maximum length
•
Add empty bytes and adjust so that there will be an
even number of memory bytes for each variable.
•
The character data section not being used beyond
the current length contains undefined data.
Current length
First character
8
Second character
7
Final character
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...