MASM:你如何用回车声明一个字符串? [英] MASM : How do you declare a string with carriage return?
本文介绍了MASM:你如何用回车声明一个字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HelloWorld dbHello World !\r\\\
,0
将是一种直观的方式,但它不起作用。
谢谢。
解决方案
CR和LF的ASCII代码为13和10,所以:
HelloWorld dbHello World!,13,10,0
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
这篇关于MASM:你如何用回车声明一个字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文