I am learning assembly I see two examples of defining a string:
msg db \'Hello, world!\',0xa
message DB \'I
0 is a trailing null, yes. 0xa is a newline. They don’t define the same string, so that’s how you would differentiate them.