|
本帖最后由 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
|