SLAU131Y October 2004 – June 2021
You can use the .cstring directive to cause the escape sequences and NULL termination to be properly handled as they would in C/C++.
.cstring "String with C escapes.\nWill be NULL terminated.\012"
See Section 14.3.11 for more information on the .cstring directive.