Get to Assembler from C

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

Get to Assembler from C

1,055 Views
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

Labels (1)
0 Kudos
1 Reply

212 Views
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 Kudos