Compiling OSBDM firmware under CW 6.1

I've tried to compile the OSBDM firmware under CW 6.1 (I need to change some output pins)and I've encountered several problems.- I have changed the mc68hc908jb16.h an .c files for the new ones from CW6.1- I have changed the UCR0_T0SEQ_MASK/UCR0_TOSEQ_MASK error

Now there are 17 errors all related to inline assembler in bdm.c.It seems that when the assembler wants to use "ROL i" the compiler gives me anerror about the "i" static variable:

You are right. It was 5.1 ( now I have reinstalled it to newest version ). The best way to compile firmware it to get one from http://www.witztronics.com/ (it compiles under new CW) and work with this source