mc68hc705j2 Freescale Semiconductor, Inc, mc68hc705j2 Datasheet - Page 30

no-image

mc68hc705j2

Manufacturer Part Number
mc68hc705j2
Description
8-bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
4.3.8 Relative
MC68HC705J2
The relative addressing mode is only for branch instructions and bit test and
branch instructions.
adding the signed byte following the opcode to the contents of the program
counter if the branch condition is true. If the branch condition is not true, the
CPU goes to the next instruction.
backward, the offset is a signed, two's complement byte that gives a branching
range of –127 to +128 bytes from the address of the next location after the
branch instruction.
When using the Motorola assembler, the programmer does not need to
calculate the offset, because the assembler determines the proper offset and
verifies that it is within the span of the branch. Table 4-6 lists the instructions
that use the relative addressing mode.
Branch if Carry Clear
Branch if Carry Set
Branch if Equal
Branch if Half-Carry Clear
Branch if Half-Carry Set
Branch if Higher
Branch if Higher or Same
Branch if Interrupt Line iHigh
Branch if Interrupt Line Low
Branch if Lower
Branch if Lower or Same
Branch if Interrupt Mask Clear
Branch if Minus
Branch if Interrupt Mask Set
Branch if Not Equal
Branch if Plus
Branch Always
Branch if Bit n Clear
Branch if Bit n Set
Branch Never
Branch to Subroutine
Table 4-6. Relative Addressing Instructions
CENTRAL PROCESSOR UNIT
The CPU finds the conditional branch destination by
Instruction
To permit branching either forward or
Mnemonic
BRCLR
BRSET
BHCC
BHCS
BEQ
BMC
BMS
BCS
BPL
BRA
BRN
BSR
BCC
BHS
BLO
BLS
BNE
BHI
BIH
BMI
BIL
MOTOROLA
4-11

Related parts for mc68hc705j2