.byte
only works for a single byte, like 0xFA, or 'F'.db
is intel syntax, inline assembly uses GNU syntax.As mentioned above,
.byte
only works for one byte. To use strings, use either.ascii
or.asciz
-- the former is a simple array of bytes, while the latter is null terminated.
ie. asm("message: .asciz \"Hello, World!\n\"");