Bill Hardy

Call Lib Routine from Assembly : CW6.4 for Coldfire

Discussion created by Bill Hardy on Aug 19, 2007
Latest reply on Aug 21, 2007 by CrasyCat
I have an assembly language subroutine
 

asm void DProcess(int16 Index)
{
 // on call D0 contains the index to the channel
 
 
 lea  g_sWaveData, a0          // a0 points to the first data structure
 move.l #SIZE_OF_ANALYSIS_STRUCTS,d1
 mulu.w d0, d1
 asl.l #1, d1            // d1 now contains pointer to the data structure
 adda.l d1, a0
.
.
.

 move.l d4, d0     // setup call
 jsr  sqrt
 move.l d0, 12(a0)
...
 
How do I get the system to recognize that sqrt is a library subroutine?
 
 

Outcomes