mc68hc912bc32 Freescale Semiconductor, Inc, mc68hc912bc32 Datasheet - Page 64

no-image

mc68hc912bc32

Manufacturer Part Number
mc68hc912bc32
Description
M68hc12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Central Processor Unit (CPU)
3.6 Indexed Addressing Modes
The CPU12 indexed modes reduce execution time and eliminate code size penalties for using the Y index
register. CPU12 indexed addressing uses a postbyte plus zero, one, or two extension bytes after the
instruction opcode. The postbyte and extensions do these tasks:
64
Addressing Mode
Indexed-Indirect
Indexed-Indirect
D accumulator
16-bit offset
Specify which index register is used
Determine whether a value in an accumulator is used as an offset
Enable automatic pre- or post-increment or decrement
Specify use of 5-bit, 9-bit, or 16-bit signed offsets
offset
rr0nnnnn
111rr0zs
111rr011
rr1pnnnn
111rr1aa
111rr111
rr: 00 = X, 01 = Y, 10 = SP, 11 = PC
Code (xb)
Postbyte
INST [oprx16,xysp]
Table 3-1. Addressing Mode Summary (Continued)
,r
n,r
–n,r
n,r
–n,r
[n,r]
n,–r
n,r–
A,r
B,r
D,r
[D,r]
Source Format
Source Code
INST [D,xysp]
Syntax
Table 3-2. Summary of Indexed Operations
n,+r
n,r+
M68HC12B Family Data Sheet, Rev. 9.1
5-bit constant offset n = –16 to +15
r can specify X, Y, SP, or PC
Constant offset (9- or 16-bit signed)
z:0 = 9-bit with sign in LSB of postbyte(s)
if z = s = 1, 16-bit offset indexed-indirect (see below)
rr can specify X, Y, SP, or PC
16-bit offset indexed-indirect
rr can specify X, Y, SP, or PC
Auto pre-decrement/increment
or Auto post-decrement/increment;
p = pre-(0) or post-(1), n = –8 to –1, +1 to +8
rr can specify X, Y, or SP (PC not a valid choice)
Accumulator offset (unsigned 8-bit or 16-bit)
aa:00 = A
rr can specify X, Y, SP, or PC
Accumulator D offset indexed-indirect
rr can specify X, Y, SP, or PC
1 = 16-bit
01 = B
10 = D (16-bit)
11 = see accumulator D offset indexed-indirect
Abbreviation
[D,IDX]
[IDX2]
Pointer to operand is found at
16-bit constant offset from x, y, sp, or pc
(16-bit offset in two extension bytes)
Pointer to operand is found at
x, y, sp, or pc plus the value in D
Comments
Description
Freescale Semiconductor

Related parts for mc68hc912bc32