English
Language : 

MC68HC705J2 Datasheet, PDF (54/82 Pages) Freescale Semiconductor, Inc – member of the low-cost
Freescale Semiconductor, Inc.
10.1.3 Direct
1
Direct instructions can access any of the first 256 memory addresses with two
2
bytes. The first byte is the opcode, and the second is the low byte of the operand
address. In direct addressing, the CPU automatically uses $00 as the high byte of
the operand address. BRSET and BRCLR are three-byte instructions that use
3
direct addressing to access the operand and relative addressing to specify a
branch destination.
4
10.1.4 Extended
5
Extended instructions use only three bytes to access any address in memory. The
6
first byte is the opcode; the second and third bytes are the high and low bytes of
the operand address.
7
When using the Motorola assembler, the programmer does not need to specify
whether an instruction is direct or extended. The assembler automatically selects
8
the shortest form of the instruction.
9
10.1.5 Indexed, No Offset
Indexed instructions with no offset are one-byte instructions that can access data
10
with variable addresses within the first 256 memory locations. The index register
contains the low byte of the conditional address of the operand. The CPU
11
automatically uses $00 as the high byte, so these instructions can address
locations $0000–$00FF.
12
Indexed, no offset instructions are often used to move a pointer through a table or
to hold the address of a frequently used RAM or I/O location.
13
14
10.1.6 Indexed, 8-Bit Offset
Indexed, 8-bit offset instructions are two-byte instructions that can access data with
15
variable addresses within the first 511 memory locations. The CPU adds the
unsigned byte in the index register to the unsigned byte following the opcode. The
16
sum is the conditional address of the operand. These instructions can access
locations $0000–$01FE.
17
Indexed 8-bit offset instructions are useful for selecting the kth element in an
n-element table. The table can begin anywhere within the first 256 memory
18
locations and could extend as far as location 510 ($01FE). The k value is typically
in the index register, and the address of the beginning of the table is in the byte
19
following the opcode.
20
10-2
INSTRUCTION SET
For More Information On This Product,
Go to: www.freescale.com
Rev. 2