SDKZSPF LSI, SDKZSPF Datasheet - Page 90

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
4-2
Labels are identifiers that start at the beginning of a line, with no leading
spaces or tabs, and end with a colon. Identifiers begin with a letter (case
is significant) or an underscore, and can continue with more letters,
digits, and underscores. Assembly language instructions can be on the
same line as a label.
Examples:
Start:
start:
loop:
End
Symbols beginning with ‘L’ are locally resolved, and are therefore not
visible to the linker or to other modules.
Assembler statements can be assembler directives or assembly
language instructions. Assembler directives start with a period (‘.’).
Comments start with an exclamation mark (!) and continue until the end
of the line. The symbol ‘#’ at the beginning of the line indicates that it is
a comment.
Files with the .S extension can be assembled using sdcc, which causes
the C preprocessor to run before the assembler. This enables you to use
C-style comments and #defines in your assembly code. However using
a -g option does not cause any debug symbol generation, since the
source file is an assembly program. To turn on debug information for an
assembly program with a .S extension, you can use sdcc with the -Wa
and -dbg options (the -dbg option is described in
Option (-dbg),” page
All assembly programs must be contained within a section.
Putting .section “.text”, “ax” before any assembly code ensures
that the code gets assembled into the .text section. Refer to Using AS:
The GNU Assembler for more information on the section syntax and flag
definitions.
Assembler
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
bnz start
add r0, r1
bnz Start:
4-3).
!“Start” is a label
!“start” is another (different) label
!“start” is a label reference
!“loop” is a label
! Illegal reference (extra colon)
! Illegal label (missing colon)
Section , “Debugging