Linux上_emit的等价物是什么?

我正在尝试将一些用Visual Studio编写的汇编代码移植到 Linux上的GNU内联汇编中.原始代码使用 _emit,MSDN将其描述为伪指令,并解释为:

The _emit pseudoinstruction is similar to the DB directive of MASM. You use _emit to define a single immediate byte at the current location in the current text segment. However,_emit can define only one byte at a time,and it can only define bytes in the text segment. It uses the same Syntax as the INT instruction.

我怎样才能在Linux上做同样的事情?

解决方法

要发出字节0x12(例如),请执行:
asm __volatile__ (".byte 0x12");

虽然,启用优化后可能会得到令人惊讶的结果.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...