EasyManua.ls Logo

Texas Instruments TMS34010

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
Loading...
E.
Interfacing
Assembly Language
with
C
This appendix
is
an
example
of
the
operation
of
the
TMS3401
0 C calling se-
quence.
It
serves
as
a
guide
for
users
who
wish
to
interface assembly language
routines
with
routines
written
in GSP
C.
The assembly
code
shown
herein was
generated
by
passing
the
set
of
C routines
below
through
the
TMS34010
C
compiler,
which
produced
TMS34010
assembly language
output.
You are
encouraged
to
modify
the
C routines, recompile them, and
study
the resultant
assembly language
output
to
see
the
effects
of
the
modification.
II
global
definition
II
int
var3:
lonq
var5;
mai
n
()
f
char
var!;
int
var2;
lonq
var4:
struct
f
i
nt
struct
._e
I
ement
I;
int
struct_element2:
char
struct.element3
[12J;
I struct
I;
/1
cal
I a
function
with
no
parameters
II
varl
;
functionl
(I:
II
cal
I a
function
with
parameters
II
function2
(varl,
var2,
var3, var4,
var5):
/"
cal
I a
function
with
a structure
as
a
parameter
"I
function3
(varl, structl,
var2):
funct
i
on
I
()
/1
no
paramters
II
return
(l
0)
;
}
E·1

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals