Download MCUEZASM12 User Guide
Transcript
Freescale Semiconductor, Inc. Assembler Directives 8.8 DCB — Define Constant Block Syntax: [<label>:] DCB [<size>] <count>, <value> where <size> = B (default), W, or L Freescale Semiconductor, Inc... Description: The DCB directive causes the assembler to allocate a memory block initialized with the specified <value>. The length of the block is <size> * <count>. <count> may not contain undefined, forward, or external references. It may range from 1 to 4096. The value of each storage unit allocated is the sign-extended expression <value>, which may contain forward references. The <count> cannot be relocatable. This directive does not perform alignment. These rules apply to size specifications for DCB directives: • DCB.B — One byte is allocated for numeric expressions. • DCB.W — Two bytes are allocated for numeric expressions. • DCB.L — Four bytes are allocated for numeric expressions. Example: 000000 000003 000007 000009 00000D 000011 FFFF FFFE FFFE 0000 0000 0000 FF FFFE Label: DCB.B 3, $FF DCB.W 3, $FFFE FFFE FFFE FFFE DCB.L 3, $FFFE User’s Manual 172 MCUez HC12 Assembler Assembler Directives For More Information On This Product, Go to: www.freescale.com MOTOROLA