数码之家

 找回密码
 立即注册

QQ登录

只需一步,快速开始

微信登录

微信扫一扫,快速登录

搜索
查看: 1752|回复: 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 17:23:07 | 显示全部楼层
бвгнцппп эппппеёё эз зенццоэ вад рлтсрмнт  тсрнжаёыл   жрлее еёжаё жрн ю
回复 支持 反对

使用道具 举报

发表于 2019-4-23 18:33:24 | 显示全部楼层
Lanzhou sesame cake
回复 支持 反对

使用道具 举报

发表于 2019-4-23 21:28:16 | 显示全部楼层
good good study,day day up!
回复 支持 反对

使用道具 举报

发表于 2019-4-23 21:51:48 | 显示全部楼层
啥U啊?是51吗?
回复 支持 反对

使用道具 举报

发表于 2019-4-23 21:53:40 | 显示全部楼层
本帖最后由 2545889167 于 2019-4-23 21:55 编辑

话说 没太看懂 你不是还没执行到CJNE吗?
你的PC不是还在0x03af吗?mov 0x2f,a还没执行啊?怎么看你cjne没跳对?

回复 支持 反对

使用道具 举报

发表于 2019-4-23 22:08:52 | 显示全部楼层
本帖最后由 xpicompany 于 2019-4-23 22:12 编辑

เขียนเรื่องอะไร เราเป็นคนจีนเราไม่สามารถเขียนภาษาจีน คุณไม่สามารถเขียนภาษาจีน
回复 支持 反对

使用道具 举报

发表于 2019-4-23 22:20:22 | 显示全部楼层

the "#" is eated by someone!!!!

本帖子中包含更多资源

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

x

打赏

参与人数 1家元 +8 收起 理由
la45088d1 + 8 You are right, that is the very problem

查看全部打赏

回复 支持 反对

使用道具 举报

 楼主| 发表于 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!
回复 支持 反对

使用道具 举报

发表于 2019-4-24 09:10:35 | 显示全部楼层
CJNE  :  Compare,  Jump if Not Equal
if the two operand are not qual it will not do anything, otherwise the PC will jump to the specific address.


if the two operand are qual it will not do anything, otherwise the PC will jump to the specific address.
回复 支持 反对

使用道具 举报

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

本版积分规则

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

闽公网安备35020502000485号

闽ICP备2021002735号-2

GMT+8, 2025-6-29 03:16 , Processed in 0.468000 second(s), 14 queries , Redis On.

Powered by Discuz!

© 2006-2025 MyDigit.Net

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