what is the equivalent of _emit in MASM

只谈情不闲聊 提交于 2020-01-24 09:49:26

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/6916050/what-is-the-equivalent-of-emit-in-masm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!