English
Language : 

MC68HC705C8A_13 Datasheet, PDF (159/222 Pages) Freescale Semiconductor, Inc – Technical Data
Freescale Semiconductor, Inc.
Instruction Set
Instruction Types
12.4.2 Read-Modify-Write Instructions
These instructions read a memory location or a register, modify its
contents, and write the modified value back to the memory location or to
the register.
NOTE: Do not use read-modify-write operations on write-only registers.
Table 12-2. Read-Modify-Write Instructions
Instruction
Arithmetic shift left (same as LSL)
Arithmetic shift right
Bit clear
Bit set
Clear register
Complement (one’s complement)
Decrement
Increment
Logical shift left (same as ASL)
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(1)
BSET(1)
CLR
COM
DEC
INC
LSL
LSR
NEG
ROL
ROR
TST(2)
1. Unlike other read-modify-write instructions, BCLR and BSET use
only direct addressing.
2. TST is an exception to the read-modify-write sequence because it
does not write a replacement value.
MC68HC705C8A — Rev. 3
MOTOROLA
Instruction Set
For More Information On This Product,
Go to: www.freescale.com
Technical Data