数码之家

 找回密码
 立即注册

QQ登录

只需一步,快速开始

微信登录

微信扫一扫,快速登录

搜索
查看: 1763|回复: 9

[C51] What the fuck it is? The IDE seems to have a fatal bug!(Solved, it is all my fault)

[复制链接]
发表于 2019-4-23 00:06:39 | 显示全部楼层 |阅读模式
本帖最后由 la45088d1 于 2019-4-23 23:01 编辑

Several minute before, I started the simulation function of the IDE to check the code, a problem occured that made me feeled so strange. A instruction did not behaved like what it should be.
The CJNE compares two operands and branchs according to the result, if the two operand are not equal it will not do anything, otherwise the PC will jump to the specific address.
Look at this picture, the value of register A is exactly equal to 2, so the code: CJNE A,#0x02,Action_Skip  shouid do nothing. Actually, simulation shows that it will branch, so I think the IDE has a fatal bug.


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册 微信登录

x
 楼主| 发表于 2019-4-23 22:58:32 | 显示全部楼层
huchuan987 发表于 2019-4-23 22:20
the "#" is eated by someone!!!!

You are right, that is the very problem confuses me a lot!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 微信登录

本版积分规则

APP|手机版|小黑屋|关于我们|联系我们|法律条款|技术知识分享平台

闽公网安备35020502000485号

闽ICP备2021002735号-2

GMT+8, 2025-7-19 05:27 , Processed in 0.140400 second(s), 13 queries , Redis On.

Powered by Discuz!

© 2006-2025 MyDigit.Net

快速回复 返回顶部 返回列表