下载
© Freescale Semiconductor, Inc., 2004. All rights reserved.
Freescale Semiconductor
Application Note
AN2111
Rev. 2, 11/2004
A Coding Standard for HCS08
Assembly Language
by: Jim Sibigtroth
Applications and Systems Engineering
Austin, Texas
Introduction
This application note details an HCS08 assembly language coding standard. Freescale’s 8/16-Bit
Microcontroller Division uses this standard for all user documentation in order to produce readable, print-
friendly coding that enables compatibility among assemblers.
These guidelines are adapted from the code listing style used by the HCS08 Family Reference Manual.
The data sheet and equate file for the MC9S08GB60 also exemplify the style of the coding standard.
The code standard specifies guidelines concerning:
• Line length limitations
• Acceptable characters and character formatting
• Source program column alignment
• Label formatting
• File and subroutine headers
• Comments formatting