开发者

what is the equivalent of _emit in MASM

开发者 https://www.devze.com 2023-03-25 21:20 出处:网络
I\'m trying to port some inline assembly code written in Visual Studio开发者_运维问答 into MASM64. The original code uses _emit which is a pseudo instruction that defines one byte at the current locat

I'm trying to port some inline assembly code written in Visual Studio开发者_运维问答 into MASM64. The original code uses _emit which is a pseudo instruction that defines one byte at the current location in the current text segment.

How would I do the same in x64 assembly MASM?


You can just use db, as in:

db 10h

You do this most often in a data segment, unless things have changed in the 64-bit version of MASM, it should work in the code segment as well.

0

精彩评论

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

关注公众号