Keil Logo

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:

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.