Assembler directives – Motorola HC12 User Manual
Page 198

User’s Manual
MCUez HC12 Assembler
198
Assembler Directives
MOTOROLA
Assembler Directives
Example:
The following example demonstrates the definition of a section
aaa
, which is split into two blocks, with section
bbb
between
them. The location counter associated with label
zz
is 1,
because a
NOP
instruction was already defined in this section
at label
xx
.
2 2 aaa: section 4
3 3 000000 A7 xx: nop
4 4 bbb: section 5
5 5 000000 A7 yy: nop
6 6 000001 A7 nop
7 7 000002 A7 nop
8 8 aaa: section 4
9 9 000001 A7 zz: nop
The optional qualifier
SHORT
specifies that the section is a
short section. Objects defined there can be accessed using the
direct addressing mode.
Example:
The following example demonstrates the definition and usage
of a
SHORT
section. On line number 12, the symbol
data
is
accessed using the direct addressing mode.
2 2
dataSec: SECTION SHORT
3 3 000000
data: DS.B 1
4 4
5 5
0000 0AFE
initSP: EQU $AFE
6 6
7 7
codeSec: SECTION
8 8
9 9
entry:
10 10 000000 CF 0AFE LDS #initSP
11 11 000003 C600 LDAB #0
12 12 000005 5Bxx STAB data
- 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 (56 pages)
- SBV5120 (57 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)