The dollar sign $ can be used as a prefix for hexadecimal numbers and as a symbol denoting the current location counter.
A backslash \ is an ordinary character for the Z80 assembler.
The single quote ' must be followed by a closing quote. If there is one character in between, it is a character constant, otherwise it is a string constant.