开发者

How to define binary string variables in MASM?

开发者 https://www.devze.com 2023-03-22 17:43 出处:网络
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:

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

精彩评论

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