English
Language : 

MC68HC705J2 Datasheet, PDF (57/82 Pages) Freescale Semiconductor, Inc – member of the low-cost
Freescale Semiconductor, Inc.
10.2.2 Read-Modify-Write Instructions
These instructions read a memory location or a register, modify its contents, and
1
write the modified value back to the memory location or to the register. The test for
negative or zero instruction (TST) is an exception to the read-modify-write
2
sequence because it does not write a replacement value. Table 10-2 lists the
read-modify-write instructions.
3
Table 10-2. Read-Modify-Write Instructions
4
Instruction
Arithmetic Shift Left
Arithmetic Shift Right
Clear Bit in Memory
Set Bit in Memory
Clear
Complement (One’s Complement)
Decrement
Increment
Logical Shift Left
Logical Shift Right
Negate (Two’s Complement)
Rotate Left through Carry Bit
Rotate Right through Carry Bit
Test for Negative or Zero
Mnemonic
ASL
ASR
BCLR
BSET
CLR
COM
DEC
INC
LSL
LSR
NEG
ROL
ROR
TST
5
6
7
8
9
10
11
12
13
14
10.2.3 Jump/Branch Instructions
Jump instructions allow the CPU to interrupt the normal sequence of the program
15
counter. The unconditional jump instruction (JMP) and the jump to subroutine
instruction (JSR) have no register operand. Branch instructions allow the CPU to
16
interrupt the normal sequence of the program counter when a test condition is met.
If the test condition is not met, the branch is not performed. All branch instructions
17
use relative addressing.
Bit test and branch instructions cause a branch based on the state of any readable
18
bit in the first 256 memory locations. These three-byte instructions use a
combination of direct addressing and relative addressing. The direct address of the
19
byte to be tested is in the byte following the opcode. The third byte is the signed
offset byte. The CPU finds the conditional branch destination by adding the third
20
byte to the program counter if the specified bit tests true. The bit to be tested and
Rev. 2
INSTRUCTION SET
For More Information On This Product,
Go to: www.freescale.com
10-5