I am trying to port an existing 68K program to Coldfire using CodeWarrior. The existing program was developed using a different tool years ago. (The tool is obsolete and will not run with Windows 7) The existing program used inline assembly to display the contents, and in some cases set the contents of the control registers. As an example,
asm(
movec VBR, D0
move D0,reg_value
);
where reg_value is a global C variable.
This works on the old tool but not with CodeWarrior and results in "illegal use of asm inline function" errors. How can I access the control registers within C/C++?
Thanks for any help you can provide.