当前页面为 开发中 版本,查看特定版本的文档,请在页面左下角的下拉菜单中进行选择。
指令预定义宏
指令预定义宏存在表示支持对应指令,否则表示不支持对应的指定。
序号 |
指令 |
预定义宏 |
1
|
dw V
|
__INSTR_DW_V__
|
2
|
add A, #K
|
__INSTR_ADD_A_K__
|
|
add A, R
|
__INSTR_ADD_A_R__
|
|
add R, A
|
__INSTR_ADD_R_A__
|
3
|
addc A, R
|
__INSTR_ADDC_A_R__
|
|
addc R, A
|
__INSTR_ADDC_R_A__
|
4
|
sub A, #K
|
__INSTR_SUB_A_K__
|
|
sub A, R
|
__INSTR_SUB_A_R__
|
5
|
rsub R, A
|
__INSTR_RSUB_R_A__
|
6
|
subc A, R
|
__INSTR_SUBC_A_R__
|
7
|
rsubc R, A
|
__INSTR_RSUBC_R_A__
|
8
|
da A
|
__INSTR_DA_A__
|
|
da R, A
|
__INSTR_DA_R_A__
|
9
|
daf A
|
__INSTR_DAF_A__
|
10
|
and A, #K
|
__INSTR_AND_A_K__
|
|
and A, R
|
__INSTR_AND_A_R__
|
|
and R, A
|
__INSTR_AND_R_A__
|
11
|
or A, #K
|
__INSTR_OR_A_K__
|
|
or A, R
|
__INSTR_OR_A_R__
|
|
or R, A
|
__INSTR_OR_R_A__
|
12
|
xor A, #K
|
__INSTR_XOR_A_K__
|
|
xor A, R
|
__INSTR_XOR_A_R__
|
|
xor R, A
|
__INSTR_XOR_R_A__
|
13
|
cpl R
|
__INSTR_CPL_R__
|
|
cpl A, R
|
__INSTR_CPL_A_R__
|
14
|
bcpl B
|
__INSTR_BCPL_B__
|
|
bcpl R, P
|
__INSTR_BCPL_R_P__
|
15
|
bclr B
|
__INSTR_BCLR_B__
|
|
bclr R, P
|
__INSTR_BCLR_R_P__
|
16
|
bset B
|
__INSTR_BSET_B__
|
|
bset R, P
|
__INSTR_BSET_R_P__
|
17
|
inc R
|
__INSTR_INC_R__
|
|
inc A, R
|
__INSTR_INC_A_R__
|
18
|
isz R
|
__INSTR_ISZ_R__
|
|
isz A, R
|
__INSTR_ISZ_A_R__
|
19
|
isnz R
|
__INSTR_ISNZ_R__
|
|
isnz A, R
|
__INSTR_ISNZ_A_R__
|
20
|
dec R
|
__INSTR_DEC_R__
|
|
dec A, R
|
__INSTR_DEC_A_R__
|
21
|
dsz R
|
__INSTR_DSZ_R__
|
|
dsz A, R
|
__INSTR_DSZ_A_R__
|
22
|
dsnz R
|
__INSTR_DSNZ_R__
|
|
dsnz A, R
|
__INSTR_DSNZ_A_R__
|
23
|
shr R
|
__INSTR_SHR_R__
|
|
shr A, R
|
__INSTR_SHR_A_R__
|
24
|
rorc R
|
__INSTR_RORC_R__
|
|
rorc A, R
|
__INSTR_RORC_A_R__
|
25
|
shl R
|
__INSTR_SHL_R__
|
|
shl A, R
|
__INSTR_SHL_A_R__
|
26
|
rolc R
|
__INSTR_ROLC_R__
|
|
rolc A, R
|
__INSTR_ROLC_A_R__
|
27
|
mov A, #K
|
__INSTR_MOV_A_K__
|
|
mov A, R
|
__INSTR_MOV_A_R__
|
|
mov R, A
|
__INSTR_MOV_R_A__
|
28
|
upz R
|
__INSTR_UPZ_R__
|
29
|
movc R
|
__INSTR_MOVC_R__
|
30
|
swap A, R
|
__INSTR_SWAP_A_R__
|
31
|
jmp D
|
__INSTR_JMP_D__
|
32
|
call D
|
__INSTR_CALL_D__
|
33
|
ret
|
__INSTR_RET__
|
|
ret #K
|
__INSTR_RET_K__
|
34
|
reti
|
__INSTR_RETI__
|
35
|
sbnz B
|
__INSTR_SBNZ_B__
|
|
sbnz R, P
|
__INSTR_SBNZ_R_P__
|
36
|
sbz R
|
__INSTR_SBZ_R__
|
|
sbz R, P
|
__INSTR_SBZ_R_P__
|
37
|
sz R
|
__INSTR_SZ_R__
|
|
sz A, R
|
__INSTR_SZ_A_R__
|
38
|
snz R
|
__INSTR_SNZ_R__
|
|
snz A, R
|
__INSTR_SNZ_A_R__
|
39
|
se A, #K
|
__INSTR_SE_A_K__
|
|
se A, R
|
__INSTR_SE_A_R__
|
40
|
sne A, #K
|
__INSTR_SNE_A_K__
|
|
sne A, R
|
__INSTR_SNE_A_R__
|
41
|
clr R
|
__INSTR_CLR_R__
|
42
|
set R
|
__INSTR_SET_R__
|
43
|
rev R
|
__INSTR_REV_R__
|
|
rev A, R
|
__INSTR_REV_A_R__
|
44
|
brev R
|
__INSTR_BREV_R__
|
|
brev A, R
|
__INSTR_BREV_A_R__
|
45
|
nop
|
__INSTR_NOP__
|
46
|
stop
|
__INSTR_STOP__
|
47
|
idle
|
__INSTR_IDLE__
|
48
|
clrwdt
|
__INSTR_CLRWDT__
|