SDKZSPF LSI, SDKZSPF Datasheet - Page 93

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
4.2.3 Assembler Special Cases
4.2.4 ELF Number and Flags
This defines a section named “.text” – the characters following it tell the
assembler that the code following the directive is allocatable and is a part
of the instruction memory. Refer to Using AS: The GNU Assembler for
more information.
Although GNU assembler documentation says unnamed sections go to
the default .text section, it is necessary to specify sections explicitly for
the ZSP SDK tools.
For all instructions that require a register pair, the even register must be
specified as the operand. For the ZSP400 assembler only, If an odd
register is specified, the even register of the register pair is used as the
actual operand in the instruction, and the assembler displays a warning
message. With the ZSPG2 assembler, zdas, an odd register is not
converted to an even register and an error message is shown.
For the ZSP400 architecture, a target function must be placed at an even
address. If the value is odd, an error message is displayed. A function
can be forced to start on an even address by using the .walign 2
directive. For the ZSPG2 architecture, there are no alignment
requirements for call targets.
All ZSP400, ZSPG2, and G1G2 object files and programs have an ELF
number of 79. This number is automatically created by the assemblers
and linkers. ZSP400 object files and programs have an ELF flag of
0x8000.0000. This is automatically generated by sdas and sdld. ZSPG2
object files and programs have an ELF flag of 0x2000.0000. This is
generated by default by zdas and zdld. G1G2 object files and programs
should have an ELF number of 0x1000.0000. Object files will have this
flag only if zdas is invoked with a “--defsym g1g2=1” option. A
program has a G1G2 flag if any of the modules on the link line have a
G1G2 flag. The G1G2 compiler, zdxcc, automatically uses this option
when invoking zdas. Assembly files for G1G2 programs that are not
assembled with the “--defsym g1g2=1” option produce object files
with the G2 flag. However, these inappropriately flagged object files can
still be used to produce a G1G2 executable.
Assembly Language Syntax
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
4-5