4.5.4 The Special DOT Symbol
The special symbol ‘.
’ refers to the current address that is being assembled into. Thus, the expression:
melvin: .word . ; in a data section
defines melvin
to contain its own data address. Assigning a value to .
is treated the same as a .org
directive. Thus the expression:
. = .+2
is the same as saying:
.org .+2
The symbol ‘$’ is accepted as a synonym for ‘.
’.
When used in an executable section, ‘.
’
refers to a PC address. On the DSC device, the PC
increments by 2 for each instruction word. Odd values are not permitted.