alediano

CodeWarrior Development Studio for Freescale MPC55xx version 2.0 unknown error

Discussion created by alediano on Jun 6, 2007
Latest reply on Jun 12, 2007 by alediano
I wrote this macro:

#define watch_dog() {register int lz; asm(" mfspr lz, TSR " ) ; asm(" oris  lz, lz, 0x8000 " ) ; asm(" mtspr TSR, lz " ) ;}

Then, when I use it, compiler says:
 Error   : lz was not assigned to a GPR register (try using register qualifier)


I'm using CodeWarrior Development Studio for Freescale MPC55xx version 2.0.
Could you help me please?

Thanks



Message Edited by alediano on 2007-06-06 10:01 AM

Outcomes