Freescale Semiconductor MCF5206eLITE User Manual page 20

Table of Contents

Advertisement

The inline assembler permits the use of case-sensitive symbols defined by equate statements and labels which
are stored in the symbol table. The syntax for defining symbols and labels is as follows:
Symbol equ value
Symbol: equ value
Symbol .equ value
Symbol: .equ value
Label: instruction
Label:
Constants and operands may be input in several different bases:
0x
$
@
%
digit
The assembler also supports the different syntax's capable for the indexed, displacement and immediate
addressing modes:
(12,An)
(4,PC,Xn) or
(0x1234).L or
Examples:
To assemble one 'move' instructions at the next assemble address, the command is:
To assemble multiple lines at 0x30112000, the command is:
then:
0x30112000:
0x30112002:
0x30112004:
0x30112006:
0x30112008:
0x3011200A:
Freescale Semiconductor, Inc.
followed by hexadecimal constant
followed by hexadecimal constant
followed by octal constant
followed by binary constant
decimal constant
or
12(An)
4(PC,Xn)
0x1234.L
as
move.l #0x25,d0
as
12000
start:
nop
nop
lsr.l
#1,d0
cmp #4,d0
beq
start
For More Information On This Product,
Go to: www.freescale.com
19

Advertisement

Table of Contents
loading

Table of Contents