社区
C++ 语言
帖子详情
C++里加汇编的BUG
pengyan
2007-04-13 05:13:57
DWORD temp=0xff;
_asm{
mov dx cf8H
mov ax 80011001H
out dx ax
mov dx cfcH
in ax dx
mov temp ax
}
DbgLogInfo(("temp %0x\n",temp));
...全文
763
4
打赏
收藏
C++里加汇编的BUG
DWORD temp=0xff; _asm{ mov dx cf8H mov ax 80011001H out dx ax mov dx cfcH in ax dx mov temp ax } DbgLogInfo(("temp %0x\n",temp));
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
pengyan
2007-04-13
打赏
举报
回复
加了,但又有问题了
DWORD temp=0xff;
_asm{
mov dx, cf8H
mov ax, 80011001H
out dx , ax
mov dx , cfcH
in ax , dx
mov temp, ax
}
DbgLogInfo(("temp %0x\n",temp));
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(298) : error C2443: operand size conflict
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(301) : error C2443: operand size conflict
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(303) : error C2443: operand size conflict
mLee79
2007-04-13
打赏
举报
回复
偶晕, mov dx [[,]] cf8H 指令里的 ',' 分隔符难道都被lz吃了 ...
这东东在 win32 user mode 下也是跑不起来的, 不 GP 才怪 ....
pengyan
2007-04-13
打赏
举报
回复
为什么会错呢?
pengyan
2007-04-13
打赏
举报
回复
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(298) : error C2400: inline assembler syntax error in 'first operand'; found 'newline'
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(298) : error C2414: illegal number of operands
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(298) : error C2400: inline assembler syntax error in 'second operand'; found 'constant'
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(299) : error C2400: inline assembler syntax error in 'opcode'; found 'constant'
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(299) : warning C4405: 'out' : identifier is reserved word
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(301) : error C2400: inline assembler syntax error in 'first operand'; found 'newline'
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(301) : error C2414: illegal number of operands
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(301) : error C2400: inline assembler syntax error in 'second operand'; found 'register'
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(302) : error C2400: inline assembler syntax error in 'opcode'; found 'register'
F:\working\cx23880.5.0.18.0.src\avvcap\DVBSDemod.cpp(302) : warning C4405: 'mov' : identifier is reserved word
DVBTDemod.cpp
Java 的开发效率究竟比
C
++
高在哪里?
也可能高在,别人写JAVA需要一个功能,搜了搜到maven
里加
了几行,自动下了几个1m的包就开始干正事了。 而
C
++
的情况是,你搜到了几个知名的开源库,下下来一看,好多个近百K的hpp,拖慢了编译速度不说,好多功能还用...
IDA反
汇编
/反编译静态分析iOS模拟器程序
(一)利用IDA和LLDB探索WebCore的
C
++
类的继承关系 开刀的类名叫 PluginWidgetIOS,利用lldb可以得到: [plain] view plain copy (lldb) image lookup -r -s PluginWidgetIOS 7...
C
++
面试题
学会分析
汇编
代码:将每一个C语言代码进行反
汇编
2.写构造函数和赋值运算符(T) #include "iostream.h" class Test { public: int m_i; public: Test(); //默认构造函数.当Test t2;时调用 Test(int i); //Test t1(4);...
C
++
学习笔记
1.
c
++
与c的区别 1.头文件 标准库变为 #include #include <stdio.h> 正常引入也可 #include 前面加上c 后面去掉.h 也是可以的 //1.头文件发生改变 #include #include<stdio.h> #include //2.定义一个...
预处理那些事(定义表示符,定义宏,#define)
介绍预处理之前 先铺垫一小端程序运行的小知识方便我们理解预处理 ...
汇编
形成符号表把所有的符号汇总在一起 链接合并段表 符号表的合并和符号表的重定义 执行程序 1 执行程序时 程序必须加载..
C++ 语言
64,643
社区成员
250,474
社区内容
发帖
与我相关
我的任务
C++ 语言
C++ 语言相关问题讨论,技术干货分享,前沿动态等
复制链接
扫一扫
分享
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
请不要发布与C++技术无关的贴子
请不要发布与技术无关的招聘、广告的帖子
请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下
试试用AI创作助手写篇文章吧
+ 用AI写文章