SDKZSPF LSI, SDKZSPF Datasheet - Page 82

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
3-28
In example 3 in
variable is constrained to be in an accumulator register. The supported
constraints are shown in
Table 3.13
Note that a constant argument can be used with an r constraint. The
SDK copies the constant to a register and uses the register as the
argument. You can combine constraints, which can be useful for
instructions that allow different types of arguments. For example, the
shla instruction can accept either a register or an immediate argument.
The appropriate constraint for this argument is rn. In example 4 in
Section 3.10.5, “Examples of asm
constrained to be either a register or an immediate. Sometimes it is
necessary for two arguments to be in the same register. This requirement
can be described by constraints. The first argument should be described
with whatever constraint is appropriate, and the second argument’s
constraint must be the index of the first argument. For example, the first
argument of the add instruction is an output/input argument. You must
list this argument as an output variable and an input expression.
The constraint of this argument when it appears as an input
expression should be the index of the argument when it appears as
an output variable. In example 3 in
Directive”, the output argument and the first argument illustrate this
technique.
C Cross Compiler
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
Constraint
<n>
=
e
h
c
n
r
Argument Constraints
Effect
output variable
general-purpose register
address register
index register
accumulator register
constant
same as indexed argument
Section 3.10.5, “Examples of asm
Table
3.13.
Directive”, the input parameter is
Section 3.10.5, “Examples of asm
Availability
All compilers
All compilers
zdcc
zdcc
All compilers
All compilers
All compilers
Directive”, the acc