9 indexed, indirect 16-bit offset, Indexed, indirect 16-bit offset – Motorola HC12 User Manual
Page 137

Assembler Syntax
Source Line
MCUez HC12 Assembler
User’s Manual
MOTOROLA
Assembler Syntax
137
7.4.3.9 Indexed, Indirect 16-Bit Offset
This addressing mode adds a 16-bit offset to the base index register to form the
address of a memory location containing a pointer to the memory location
referenced in the instruction. The 16-bit offset may be considered either as
signed or unsigned ($FFFF may be considered to be –1 or 65,535). The base
index register may be X, Y, SP, PC, or PCR.
For information about indexed PC and indexed PC relative addressing modes,
see
7.4.3.16 Indexed PC versus Indexed PC Relative Addressing Mode
Example:
ORG $1000
CST_TBL1: DC.W $1020, $1050, $2001
ORG $2000
CST_TBL2: DC.B $10, $35, $46
ORG $3000
main:
LDX #$CST_TBL
LDAA [4,X]
The offset
4
is added to the value of register
X
($1000) to form the address
$1004.
Then an address pointer ($2001) is read from memory at $1004. Accumulator
A is loaded with $35 and the value is stored at address $2001.
- SB5101U DOCSIS 2.0 Cable Modem (16 pages)
- PTP 500 (20 pages)
- Netopia 3347-02-ENT (3 pages)
- SBV5220 (64 pages)
- AP-51XX (698 pages)
- SURFboard SVG2501 Series (34 pages)
- MESH Wireless Router MWR6300 (2 pages)
- MVME712AM (74 pages)
- SURFBOARD SBG1000 (16 pages)
- RSGu3502 (5 pages)
- SURFboard SBG941U (78 pages)
- Netopia 2240N-VGx (5 pages)
- SURFboard SVG2501 (8 pages)
- WR850G (93 pages)
- WR850GP (95 pages)
- USBW 200 (12 pages)
- ONCE SC140 (28 pages)
- Netopia 3300 (368 pages)
- MPC8260 (1006 pages)
- WNS25 (2 pages)
- Netopia 7000 (254 pages)
- Viadux 2000 Subscriber Bridge RC2010 (1 page)
- MVME5100 Series (5 pages)
- ColdFire MCF5282 (766 pages)
- MC9S12C-Family (136 pages)
- CG4500 (36 pages)
- SBG900 (130 pages)
- SURFBOARD SB5100 (2 pages)
- SURFboard SB6180 (20 pages)
- SURFBOARD SBG900 (16 pages)
- SURFboard SVG1501U (83 pages)
- SB5100 (74 pages)
- T3 (2 pages)
- H375 (5 pages)
- NETOPIA 2247/57-62 (22 pages)
- SBV5120 (57 pages)
- SBV5120 (56 pages)
- RG2200 (88 pages)
- CME-12B/BC (18 pages)
- SURFboard 574823-001-a (2 pages)
- SURFboard Cable Modem (66 pages)
- CME-12D60 (19 pages)
- DIGITAL VOICE MODEM SBV5122 (24 pages)
- SB4000 (2 pages)
- Canopy FSK and OFDM radios PTP 200 (OFDM (56 pages)