title: what is the syntax to define a string constant in assembly?
body: <p>I am learning assembly I see two examples of defining a string:</p>
  
  <p>msg  db  'Hello, world!',0xa </p>
  
  <ul>
  <li>what does the 0xa mean here?</li>
  </ul>
  
  <p>message DB 'I am loving it!', 0</p>
  
  <ul>
  <li>why we have a 0 here?</li>
  <li>is it a trailing null character?</li>
  <li>why we have 0xa the above example but 0 here? (doesn't seem they are relating to string length)</li>
  </ul>
  
  <p>If the above examples are two ways of defining an assembly string, how could the program differentiate them?</p>
  
  <p>Thanks ahead for any help :)</p>