Get to Assembler from C

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

Get to Assembler from C

1,440 次查看
Dwight
Contributor I
I need to drop into the assembler (either in-line or a call), and have access to variables in the C portion of the program.
 
Also, what registers do I need to be careful about altering/restoring?
 
Thx,
D

标签 (1)
0 项奖励
回复
1 回复

597 次查看
J2MEJediMaster
Specialist I
If you're using CodeWarrior, check the ColdFire Build Tools Reference document (ColdFire_Build_Tools_Reference.pdf) that came with the CodeWarrior installation. You can find it in the CodeWarrior directory, within the \Help subdirectory. In particular, study the section "Inline Assembly". HTH.

---Tom
0 项奖励
回复