MASM 中 _emit 的等价物是什么 [英] what is the equivalent of _emit in MASM
本文介绍了MASM 中 _emit 的等价物是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将一些用 Visual Studio 编写的内联汇编代码移植到 MASM64 中.原代码使用了_emit,这是一条伪指令,在当前文本段的当前位置定义一个字节.
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.
在 x64 程序集 MASM 中我将如何做同样的事情?
How would I do the same in x64 assembly MASM?
推荐答案
你可以只使用 db
,如下所示:
You can just use db
, as in:
db 10h
您最常在数据段中执行此操作,除非在 64 位版本的 MASM 中发生变化,否则它也应该在代码段中工作.
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.
这篇关于MASM 中 _emit 的等价物是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文