English
Language : 

MC68HC05P4A Datasheet, PDF (50/72 Pages) Advanced Analogic Technologies – Microcontrollers
Instruction Set
11.3.4 Bit Manipulation Instructions
The CPU can set or clear any writable bit in the first 256 bytes of memory. Port registers, port data
direction registers, timer registers, and on-chip RAM locations are in the first 256 bytes of memory. The
CPU can also test and branch based on the state of any bit in any of the first 256 memory locations. Bit
manipulation instructions use direct addressing. Table 11-4 lists these instructions.
Table 11-4. Bit Manipulation Instructions
Instruction
Clear bit
Branch if bit clear
Branch if bit set
Set bit
Mnemonic
BCLR
BRCLR
BRSET
BSET
11.3.5 Control Instructions
These register reference instructions control CPU operation during program execution. Control
instructions, listed in Table 11-5, use inherent addressing.
Table 11-5. Control Instructions
Instruction
Clear carry bit
Clear interrupt mask
No operation
Reset stack pointer
Return from interrupt
Return from subroutine
Set carry bit
Set interrupt mask
Stop oscillator and enable IRQ pin
software interrupt
Transfer accumulator to index register
Transfer index register to accumulator
Stop CPU clock and enable interrupts
Mnemonic
CLC
CLI
NOP
RSP
RTI
RTS
SEC
SEI
STOP
SWI
TAX
TXA
WAIT
MC68HC05P4A Data Sheet, Rev. 7.1
50
Freescale Semiconductor