XC68HC705F32 Motorola, XC68HC705F32 Datasheet - Page 153

no-image

XC68HC705F32

Manufacturer Part Number
XC68HC705F32
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
XC68HC705F32FU
Quantity:
110
15.3.8
The relative addressing mode is only used in branch instructions. In relative addressing, the
contents of the 8-bit signed byte (the offset) following the opcode are added to the PC if, and only
if, the branch conditions are true. Otherwise, control proceeds to the next instruction. The span of
relative addressing is from –126 to +129 from the opcode address. The programmer need not
calculate the offset when using the Motorola assembler, since it calculates the proper offset and
checks to see that it is within the span of the branch.
15.3.9
In the bit set/clear addressing mode, the bit to be set or cleared is part of the opcode. The byte
following the opcode specifies the address of the byte in which the specified bit is to be set or
cleared. Any read/write bit in the first 256 locations of memory, including I/O, can be selectively
set or cleared with a single two-byte instruction.
15.3.10
The bit test and branch addressing mode is a combination of direct addressing and relative
addressing. The bit to be tested and its condition (set or clear) is included in the opcode. The
address of the byte to be tested is in the single byte immediately following the opcode byte (EA1).
The signed relative 8-bit offset in the third byte (EA2) is added to the PC if the specified bit is set
or cleared in the specified memory location. This single three-byte instruction allows the program
to branch based on the condition of any readable bit in the first 256 locations of memory. The span
of branch is from –125 to +130 from the opcode address. The state of the tested bit is also
transferred to the carry bit of the condition code register.
MC68HC05F32
Relative
Bit set/clear
Bit test and branch
Address bus high
Address bus high
EA2 = PC+3+(PC+2); PC
EA = PC+2+(PC+1); PC
CPU CORE AND INSTRUCTION SET
otherwise EA = PC
EA1 = (PC+1); PC
EA = (PC+1); PC
otherwise PC
0; Address bus low
0; Address bus low
EA if branch taken;
EA2 if branch taken;
PC+3
PC+2
PC+2
PC+2
(PC+1)
(PC+1)
MOTOROLA
15-13
TPG
15

Related parts for XC68HC705F32