Insert "C function" in "Assembly program"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Insert "C function" in "Assembly program"

Jump to solution
2,511 Views
WT
Contributor I
The program is written in assembly using metrowerk codewarrior, however recently we were asked to insert "C code function" into the assembly file.
Is there a way to insert a "C code function" into an assembly program using metrowerks?
 
Your help is fully appreciated
Cheers
 
Its on a HCS08 processor
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
490 Views
CrasyCat
Specialist III
Hello
 
I assume you want to call an ANSI C function from an assembly source file.
 
Am I right?
 
I would recommend to take a look at the HC08 assembler manual ({Install}\Help\PDF\Assembler_HC08.pdf where {Install} refers to your CodeWarrior installation directory).
 
There is a chapter "Mixed C and Assembler Applications" in there which explains how this works.
 
CrasyCat

View solution in original post

0 Kudos
Reply
1 Reply
491 Views
CrasyCat
Specialist III
Hello
 
I assume you want to call an ANSI C function from an assembly source file.
 
Am I right?
 
I would recommend to take a look at the HC08 assembler manual ({Install}\Help\PDF\Assembler_HC08.pdf where {Install} refers to your CodeWarrior installation directory).
 
There is a chapter "Mixed C and Assembler Applications" in there which explains how this works.
 
CrasyCat
0 Kudos
Reply