Aar*_*ron 2 assembly machine-code
我已经在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!)
Run Code Online (Sandbox Code Playgroud)
就是这样了.
我所知道的所有装配工都有这样的功能.
mov eax, 8
db 90h ; this is "nop"
add eax, 10
Run Code Online (Sandbox Code Playgroud)