开发者

How to define binary string variables in MASM?

In c++ I can use define a binary string like this:

char v[] = "\xfc\xe8\x89\x00\x00\x00";

Now I am trying to do that on MASM, I tried this:

v byte fcy, e8y, 89y, 00y, 00y, 00y,开发者_JAVA百科 0

But MASM show the error "nondigit in number" when assembling. How should I do this in MASM?


This should work

v byte 0fch, 0e8h, 089h, 0, 0,0

http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ProgrammersGuide/Chap_05.htm

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜