EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Page 217

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
-
- 201 -
RET
Return from Subroutine
1
3
RETI
Return from interrupt
1
3
AJMP addr11
Absolute Jump
2
3
LJMP addr16
Long Jump
3
3
SJMP rel
Short Jump (relative addr)
2
3
JMP @A+DPTR
Jump indirect relative to the DPTR
1
4
JZ rel
Jump if Accumulator is Zero
2
1/3
[2]
JNZ rel
Jump if Accumulator is not Zero
2
1/3
[2]
JC rel
Jump if Carry is set
2
1/3
[2]
JNC rel
Jump if Carry not set
2
1/3
[2]
JB bit,rel
Jump if direct bit is set
3
1/3
[2]
JNB bit,rel
Jump if direct bit is not set
3
1/3
[2]
JBC bit,rel
Jump if direct bit is set & clear bit
3
1/3
[2]
CJNE A,direct,rel
Compare direct byte to Accumulator and jump if not equal
3
2/3
[3]
CJNE A,#data,rel
Compare immediate data to Accumulator and Jump if not equal
3
1/3
[2]
CJNE Rn,#data,rel
Compare immediate data to register and Jump if not equal
3
2/3
[3]
CJNE @Ri,#data,rel
Compare immediate data to indirect and jump if not equal
3
2/3
[3]
DJNZ Rn,rel
Decrement register and jump if not Zero
2
2/3
[3]
DJNZ direct,rel
Decrement direct byte and Jump if not Zero
3
2/3
[3]
NOP
No Operation
1
1
[1]
: When accessing external extended RAM, the instruction execution cycle is related to the SPEED [1: 0] bits in the
BUS_SPEED register.
[2]
: For the conditional jump statement, the execution cycle will be different based on whether the conditions are met or not.
When the conditions are not met, the jump will not occur and continue to execute the next instruction, then execution cycle
of the conditional jump statement is 1 machine cycle. When the conditions are met, the jump will occur, the execution cycle
of the conditional jump statement is 3 machine cycles.
[3]
: For the conditional jump statement, the execution cycle will be different based on whether the conditions are met or not.
When the conditions are not met, the jump will not occur and continue to execute the next instruction, then execution cycle
of the conditional jump statement is 1 machine cycle. When the conditions are met, the jump will occur, the execution cycle
of the conditional jump statement is 3 machine cycles.

Table of Contents

Related product manuals