gpt4 book ai didi

assembly - 有没有汇编器可以让我得到 'inline' 机器码?

转载 作者:行者123 更新时间:2023-12-02 07:36:27 31 4
gpt4 key购买 nike

我在 Google 上进行了大量研究,寻找一种可以将机器代码直接包含在汇编源文件中的方法。我没有任何运气。

我所说的“内联机器代码”的意思可能不清楚,所以让我为您提供一个我正在寻找的示例:

; here's my normal assembly code...
mov eax, 8
add eax, 10
; now I would like to be able to add some machine code
__machinecode__("40") ; this is equivalent to 'inc eax' (I think!)

就这样吧。

最佳答案

我所知道的所有汇编程序都有这样的功能。

mov eax, 8
db 90h ; this is "nop"
add eax, 10

关于assembly - 有没有汇编器可以让我得到 'inline' 机器码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15911371/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com