Ax51 User's Guide

Character Strings

Character strings can be used in combination with the DB assembler statement to define messages that are used in your Ax51 assembly program. Character strings must be enclosed within single quotes ('). For example:

KEYMSG:           DB     'Press any key to continue.'

generates the hexadecimal data (50h, 72h, 65h, 73h, 73h, 20h, … 6Eh, 75h, 65h, 2Eh) starting at KEYMSG. You can mix string and numeric data on the same line. For example:

EOLMSG:           DB     'End of line', 00h

appends the value 00h to the end of the string 'End of line'.

Two successive single quote characters can be used to insert a single quote into a string. For example:

MSGTXT:            DB     'ISN''T A QUOTE REQUIRED HERE?'.