what is the syntax to define a string constant in assembly?

前端 未结 3 1496
南方客
南方客 2021-02-19 10:51

I am learning assembly I see two examples of defining a string:

msg db \'Hello, world!\',0xa

  • what does the 0xa mean here?

message DB \'I

3条回答
  •  生来不讨喜
    2021-02-19 11:14

    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.

提交回复
热议问题