KS57C2308/P2308/C2316/P2316 SAM47 INSTRUCTION SET
5-9
Table 5-9. CPU Control Instructions — High-Level Summary
Name Operand Operation Description Bytes Cycles
SCF Set carry flag to logic one 1 1
RCF Reset carry flag to logic zero 1 1
CCF Complement carry flag 1 1
EI Enable all interrupts 2 2
DI Disable all interrupts 2 2
IDLE Engage CPU idle mode 2 2
STOP Engage CPU stop mode 2 2
NOP No operation 1 1
SMB nSelect memory bank 2 2
SRB nSelect register bank 2 2
REF memc Reference code 1 1
VENTn EMB (0,1)
ERB (0,1)
ADR
Load enable memory bank flag (EMB) and the enable
register bank flag (ERB) and program counter to vector
address, then branch to the corresponding location
2 2
Table 5-10. Program Control Instructions — High-Level Summary
Name Operand Operation Description Bytes Cycles
CPSE R,#im Compare and skip if register equals #im 22 + S
@HL,#im Compare and skip if indirect data memory equals #im 22 + S
A,R Compare and skip if A equals R 22 + S
A,@HL Compare and skip if A equals indirect data memory 11 + S
EA,@HL Compare and skip if EA equals indirect data memory 22 + S
EA,RR Compare and skip if EA equals RR 22 + S
JP ADR14 Jump to direct address (14 bits) 3 3
JPS ADR12 Jump direct in page (12 bits) 2 2
JR #im Jump to immediate address 1 2
@WX Branch relative to WX register 2 3
@EA Branch relative to EA 2 3
CALL ADR14 Call direct in page (14 bits) 3 4
CALLS ADR11 Call direct in page (11 bits) 2 3
RET Return from subroutine 1 3
IRET Return from interrupt 1 3
SRET Return from subroutine and skip 13 + S