EasyManuals Logo
Home>Texas Instruments>Computer Hardware>TMS34010

Texas Instruments TMS34010 User Manual

Texas Instruments TMS34010
128 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #45 background imageLoading...
Page #45 background image
TMS34010
C
Run-Time
Environment
BEFORE
CALL
AFTER
PASSING
ARGUMENTS
UPON
ENTRY
AFTER.
SAVING
AFTER
ALLOCATING
.
USED
REGISTERS
LOCAL
FRAME
A13-+t------i
A13 A13
A13
A13
AR~N
AR~N
AR~N
A14-+1------i
AR~N
A14
ARG
1
A14'
ARG
1
A14'
ARB
1
A13'
ARB
1
LOCAL
FRAME
A14"
,
,-
V
/
SP'
SP'
OLD OLD
REGISTERS
.
REGISTERS
SP'
(A13)
(A13)
OLD
PC
OLD
PC
OLD
PC
SP
OLDA14
OLD
A14
OLD
A14
OLD
A14
SP-+l------i
Figure
5-1.
Typical
Function
Call
with
Parameters
Passed,
No
Value
Returned
5.5.1
Register
Usage
Within
Functions
Each
function must save the contents
of
each register used
on
entrance
to
the
function and restore those contents on exiting the function.
AB
is
the only
exception; its contents
do
not
have
to
be saved and restored.
If
an
integer value
or
a pointer
is
to
be returned from a
function,
it must
be
placed in
AB.
Registers
BO
through B14
are
available for use by the assembly-language
programmer and
are
not
used by the C compiler.
5.5.2 Passing
Parameters
5-8
Any
parameters passed
to
a C function
follow
the strict rules used by the
compiler. These
rules are in the
following
list.
Note:
If
these rules
are
not
followed,
the
Crun-time
environment
will
be cor-
rupted and
will
crash at some later time.
1 )
If
the function
is
defined
not
to
have any parameters, none may
be
passed.
2)
If
the function
is
defined
to
have one
or
more parameters,
at
least
one
parameter must be passed
to
the function.,

Table of Contents

Other manuals for Texas Instruments TMS34010

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS34010 and is the answer not in the manual?

Texas Instruments TMS34010 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS34010
CategoryComputer Hardware
LanguageEnglish

Related product manuals