System information

Similar to identifiers, embedded $ signs are allowed within constants to improve their
readability. Finally, the radix indicator is translated to upper-case if a lower-case letter is
encountered. The following are all valid instances of numeric constants:
1234 1234D 1100B 1111$0000$1111$0000B
1234H 0FFEH 3377O 33$77$22Q
3377o 0fe3h 1234d 0ffffh
3.3.3 Reserved Words
There are several reserved character sequences that have predefined meanings in the operand
field of a statement. The names of 8080 registers are given below. When they are encountered,
they produce the values shown to the right.
Table 3-1. Reserved Characters
Character Value
A 7
B 0
C 1
D 2
E 3
H 4
L 5
M 6
SP 6
PSW 6
Again, lower-case names have the same values as their upper-case equivalents. Machine
instructions can also be used in the operand field; they evaluate to their internal codes. In the case
of instructions that require operands, where the specific operand becomes a part of the binary bit
pattern of the instruction, for example, MOV A,B, the value of the instruction, in this case MOV,
is the bit pattern of the instruction with zeros in the optional fields, for example, MOV produces
40H.
When the symbol $ occurs in the operand field, not embedded within identifiers and numeric
constants, its value becomes the address of the next instruction to generate, not including the
instruction contained within the current logical line.
3.3 Forming the Operand CP/M Operating System Manual
3-6