user3479031
user3479031

Reputation: 57

what does 0x0a mean in DB definition of string in asm

I write this code in assembly:

section .data
  message DB "Hello", 0x0a

what does it mean "0x0a"?

Upvotes: 2

Views: 9451

Answers (1)

Russell Zahniser
Russell Zahniser

Reputation: 16364

It's a byte with the value "10" in hexadecimal. 10 happens to be the ASCII value for a newline character.

Upvotes: 5

Related Questions