本文介绍了什么是_emit在MASM等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图港口一些内联汇编code写在Visual Studio中为MASM64。原来的code使用_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.

我怎么会做同样的64位汇编MASM?

How would I do the same in x64 assembly MASM?

推荐答案

您也可以只使用分贝,如:

db 10h

您在一个数据段做到这一点最常见的,除非事情在64位版本的MASM已经改变,它应该在code段正常工作。

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.

这篇关于什么是_emit在MASM等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 15:15