Insert "C function" in "Assembly program"

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Insert "C function" in "Assembly program"

跳至解决方案
2,792 次查看
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
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
771 次查看
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 项奖励
回复
1 回复
772 次查看
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 项奖励
回复