打印

详细的关于功能方面的说明

[复制链接]
1766|15
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
zhuhuis|  楼主 | 2011-8-18 17:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
四位机的扩展指令有没有更详细的关于功能方面的说明
沙发
zhuhuis|  楼主 | 2011-8-18 17:21 | 只看该作者
或者说和51的差不多什么的

使用特权

评论回复
板凳
宋倩2010| | 2011-8-18 17:31 | 只看该作者
4bit mcu的扩展指令你可以参考IDE66的帮助文件

使用特权

评论回复
地板
chenho| | 2011-8-18 17:38 | 只看该作者
对,里面的描述比较详细

使用特权

评论回复
5
gongche| | 2011-8-18 17:42 | 只看该作者
arithmetic instruction:
INC Mx                 /*Increase Mx by 1,if Mx>0x7f, one additional RAM is used as temporary RAM*/
DEC Mx                 /*Decrease Mx by 1,if Mx>0x7f, one additional RAM is used as temporary RAM*/
RL Mx, shift         /*Left shift Mx */
RR Mx, shift         /*Right shift Mx */
RLC Mx, shift         /*Left shift with carry */
INV(CPL) Mx         /* Invert Mx, if Mx>0x7f, one additional RAM is used as temporary RAM*/

使用特权

评论回复
6
gongche| | 2011-8-18 17:49 | 只看该作者
compare/jump instruction:
CJNE Mx1, Mx2, addr         /*Compare, and if Mx1 is not equal to Mx2, jump to addr*/
CJE Mx1, Mx2, addr                 /*Compare, and if Mx1 is equal to Mx2, jump to addr*/
CJLE Mx1, Mx2, addr                 /*Compare, and if Mx1 is less than or equal to Mx2, jump to addr*/
CJGE Mx1, Mx2, addr         /*Compare, and if Mx1 is greater than or equal to Mx2, jump to addr*/
CJL Mx1, Mx2, addr         /*Compare, and if Mx1 is less than Mx2, jump to addr*/
CJG Mx1, Mx2, addr         /*Compare, and if Mx1 is greater than Mx2, jump addr*/
DJNZ Mx, addr                 /*Decrease Mx by 1, and jump to addr if Mx is not equal to 0,if Mx>0x7f, one additional RAM is used as temporary RAM*/
DJZ Mx, addr                 /*Decrease Mx by 1, and jump to addr if Mx is equal to 0,if Mx>0x7f, one additional RAM is used as temporary RAM*/

使用特权

评论回复
7
gongche| | 2011-8-18 17:59 | 只看该作者
bit arithmetic instruction:
SETB Mx, bit                 /* Set Mx:bit ,if Mx>0x7f, one additional RAM is used as temporary RAM*/
CLRB Mx, bit                 /* Clear Mx:bit ,if Mx>0x7f, one additional RAM is used as temporary RAM*/
JB Mx, bit, addr                 /* Test and jump, if Mx:bit is 1, then jump to addr*/
JNB Mx, bit, addr         /* Test and jump, if Mx:bit is 0, then jump to addr*/

使用特权

评论回复
8
gongche| | 2011-8-18 18:04 | 只看该作者
other instruction:
LDR Mx, addr                 /*load the address into the RAM, Mx <- addr[15:12], Mx-1 <- addr[11:8],Mx-2 <- addr[7:4], Mx-3 <- addr[3:0], addr is 16-bit width, if Mx > 0x7F, one additional RAM is used as temporary RAM*/

使用特权

评论回复
9
zhuhuis|  楼主 | 2011-8-18 18:14 | 只看该作者
多谢,呵呵

使用特权

评论回复
10
liuhui527| | 2011-8-18 20:17 | 只看该作者
谢谢分享

使用特权

评论回复
11
zhuhuis|  楼主 | 2011-8-22 10:06 | 只看该作者
谢谢分享
liuhui527 发表于 2011-8-18 20:17
:o

使用特权

评论回复
12
elecintop| | 2011-8-30 10:50 | 只看该作者
学习了:D

使用特权

评论回复
13
lgm888| | 2011-8-30 15:58 | 只看该作者
:victory:顶

使用特权

评论回复
14
neyo.zhong| | 2011-8-31 13:14 | 只看该作者
14# hkjc005

感谢您的参与,但是请不要灌水。

使用特权

评论回复
15
zhuhuis|  楼主 | 2011-9-1 21:37 | 只看该作者
为了防止灌水,我先结贴了

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

728

主题

8464

帖子

6

粉丝