Hi
If you name the file with extension ".s" and include it in the CodeWarrior project, the assembler will automatically be invoked to handle it.
However, I'm afraid you have got three problems...
(a) The code is written in 68K assembler, and not all assembler dialects are the same. CodeWarrior uses the same mnemonics for instructions as your example (Some assemblers like Gnu do not), but some of the assembler directives are different.
For example, the CodeWarrior assembler requires everything to be in a section (text, data), etc, so you'll need to add suitable directives. You'll also need to add explicit "extern" statements for all external labels.
If you try to assemble your example, you'll get quite a few errors...
There is a preference panel for the assembler options. Make sure that you have "Labels must end with :" unchecked, and "Directives begin with ." unchecked. If you then start the file with:
text
option processor=mcf5211
...then you'll get down to a large but manageable number of assembler errors.
(b) The code is written for a 68K processor and hence uses the 68K instruction set. Some of the instructions which were valid for 68K are not valid for ColdFire. For example:
ABCD
SBCD
MOVEM.L D0,-(SP)
You will need to recode these.
(c) The code is written for a 68K processor with 68K-specific peripherals. For example, it is accessing a 'PIA #1' chip. Since the same hardware probably doesn't exist on the ColdFire Demo board, this code will need rewriting too.
In summary, you might be better off understanding what this code does, and rewriting it for ColdFire.
Sorry this is not more encouraging.
Simon