Constants
Constants are numbers or strings that TASM interprets as a fixed
value. You can use a variety of different numeric formats, including
decimal, hexadecimal, binary, and octal.
Numeric constants
A numeric constant always starts with a digit (0-9). TASM determines
the radix (number base) by first checking the last character of the
constant. Following radixes are valid:
Char Radix Example
─────────────────────────────
B binary 0001b
O octal 745o
Q octal 456q
D decimal 10d
H hexadecimal 0ffffh
String constants
String constants always begin with a single or double quote, and end
with a matching single or double quote.
Examples: str1 db 'A message'
str2 db "It's a message"
str3 db 'It''s a message'