2007-05-25 03:00 PM
2007-05-24 05:45 PM
I am converting the inline assembly from Metrowerks to Cosmic.
When i compile the following code, the compiler has error massage, bad addressing mode. how could i modify the code ,please? void abc() { unsigned char free_byte; #asm _free_byte :equ abc$L #endasm #asm DEC _free_byte #endasm }2007-05-24 07:34 PM
Sorry for I did not mention where occur error in source code!
The error occur at ''DEC _free_byte''2007-05-24 08:31 PM
there's no access to local objects with inline assembler in Cosmic.
If you explain clearly what you are trying to achieve, it's very likely that there's a way to do it properly in C. Regards, Luca (Cosmic)2007-05-25 03:00 PM
Thank you for your help! Because I have to convert the source code from Metrowerks to Cosmic. The inline assembly under Metrowerks calls the local objects. The objects must be in local object because of the ram limitation. :D