28
IN STRUC TION S
Instruction Set
Contents
Clear C flag
Set C flag
Clear D flag
Set D flag
Clear I flag
Set I flag
Clear T flag
Set T flag
Clear V flag
C flag : Carry Flag
D flag : Decimal Mode Flag
I flag : Interrupt Disable Flag
T flag : X Modified Operation Mode Flag
V flag : Overflow Flag
Flag
Setting
3.2.4 Flag setting instructions
The flag setting instructions clear “0” or set “1” C, D, I, T and V flags.
Instructions
CLC
SEC
CLD
SED
CLI
SEI
CLT
SET
CLV
3.2.5 Jump, Branch and Return instructions
The jump, branch and return instructions as following are used to change program flow.
Jump
Branch
Return
3.2.3 Bit managing instructions
The bit managing instructions clear “0” or set “1” designated bits of the Accumulator or
memory.
Instructions
CLB
SEB
Contents
Clear designated bit in the Accumulator or memory
Set designated bit in the Accumulator or memory
Bit
Managing
C flag : Carry Flag
Z flag : Zero Flag
N flag : Negative Flag
V flag : Overflow Flag
Instructions
JMP
BRA
JSR
BBC
BBS
BCC
BCS
BNE
BEQ
BPL
BMI
BVC
BVS
RTI
RTS
Contents
Jump to new location
Jump to new location
Jump to new location saving the current address
Branch when the designated bit in the Accumulator or
memory is “0”
Branch when the designated bit in the Accumulator or
memory is “1”
Branch when the C Flag is “0”
Branch when the C Flag is “1”
Branch when the Z Flag is “0”
Branch when the Z Flag is “1”
Branch when the N Flag is “0”
Branch when the N Flag is “1”
Branch when the V Flag is “0”
Branch when the V Flag is “1”
Return from interrupt
Return from subroutine