brenda li

variable in inline assembly

Discussion created by brenda li on Jun 21, 2007
Latest reply on Jun 22, 2007 by CompilerGuru
hi, I'm using CodeWarrior 6.3 for a ColdFire v2 MCU. I defined constant expression  in inline assembly like this: asm
          { msg: dc.b "hello\n"
             .............
          } 
when running, a window shows" Exception vector name: Address Error PC where the exception happend:0x20000528.
I have check the Inline Assembly Chapter in ColdFire_Build_Tools_Reference.pdf. it's allowed to define like this in inline assembly, is there sth wrong with it or do I need to include some special headerfiles? Thanks.

Outcomes