怎样编译VC中嵌入的PentiumIII汇编指令?

shyworm 2003-02-12 03:53:38
如movntq和maskmovq指令,编译时出现错误提示:
fatal error C1601: unsupported inline assembly opcode
怎么解决这个问题?
...全文
68 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
shyworm 2003-02-13
  • 打赏
  • 举报
回复
谢谢诸位高人!我去Down一个。
Richuen22 2003-02-12
  • 打赏
  • 举报
回复
到Intel网站下载一个试用版。优化到P4都可以。
masterz 2003-02-12
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/vstudio/downloads/ppack/download.asp

or

The _emit Pseudoinstruction
Home | Overview | How Do I

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.

The following fragment places the given bytes into the code:

#define randasm __asm _emit 0x4A __asm _emit 0x43 __asm _emit 0x4B
.
.
.
__asm {
randasm
}

crime 2003-02-12
  • 打赏
  • 举报
回复
#define randasm __asm _emit 0x4A __asm _emit 0x43 __asm _emit 0x4B
.
.
.
__asm {
randasm
}

shyworm 2003-02-12
  • 打赏
  • 举报
回复
_asm
{
...
maskmovq mm1, mm0
...
}

就是这样嵌入的,编译通不过。
nbgyf 2003-02-12
  • 打赏
  • 举报
回复
_asm
{
}
不行吗?

可能VC不支持!

I don't know!

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧