huanghuac 发表于 2021-5-9 18:04

有没有更详细的关于功能方面的说明

四位机的扩展指令

happy_10 发表于 2021-5-9 18:06

什么意思?不是很明白你说的什么,能再解释一下这个现象吗

huanghuac 发表于 2021-5-9 18:17

或者说和51的差不多什么的

happy_10 发表于 2021-5-9 18:18

4bit mcu的扩展指令你可以参考IDE66的帮助文件

bqyj 发表于 2021-5-9 18:20

对,里面的描述比较详细

wenfen 发表于 2021-5-9 18:22


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*/

wenfen 发表于 2021-5-9 18:30


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*/

wenfen 发表于 2021-5-9 18:32


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*/

wenfen 发表于 2021-5-9 18:33


other instruction:
LDR Mx, addr               /*load the address into the RAM, Mx <- addr, Mx-1 <- addr,Mx-2 <- addr, Mx-3 <- addr, addr is 16-bit width, if Mx > 0x7F, one additional RAM is used as temporary RAM*/

huanghuac 发表于 2021-5-9 18:39

多谢大家讨论这么多哈,呵呵

yangxiaor520 发表于 2021-5-10 07:13

没明白什么意思
页: [1]
查看完整版本: 有没有更详细的关于功能方面的说明