Calling my Assembler program from C

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

Calling my Assembler program from C

776 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by acelink1 on Sat Mar 01 04:39:43 MST 2014
Hi Guys, can someone please explain how I jump to my .S assembler program from within a new C Project.

As you guys know when creating a new Xpresso C project the C program creates the LPC4357 startup code and then has an infinite
loop at the end.

How do I jump to my assembler program just before the infinite loop. I have no idea how to do it. I'm not a C coder, I'm an assembler coder.

My assembler program is called _start:

And thanks for your support guys, I really appreciate it.

Pete :)
0 项奖励
回复
2 回复数

758 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by acelink1 on Sun Mar 02 01:12:30 MST 2014
Thank you TheFallGuy:  I try it at work on Moday.

Pete :)
0 项奖励
回复

758 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sat Mar 01 10:31:43 MST 2014
extern void _start(void); // declare the function

_start(): // call the function

0 项奖励
回复