سؤال

I would like to know if it is possible in MASM to write special character in string.

HelloWorld db "Hello World!\r\n", 0

Would be an intuitive way but it does not work. Thanks.

هل كانت مفيدة؟

المحلول

The ASCII codes for CR and LF are 13 and 10, so:

HelloWorld db "Hello World!",13,10,0
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top