AnsweredAssumed Answered

How to add an include file to inline assembly

Question asked by James Baker on Apr 25, 2012
Latest reply on Apr 26, 2012 by bigmac

I want to use inline assembly, within a 'C' environment to implement some functions. I need to add an "include file" so that I don't get undefined errors. How do I include an "include file" in inline assembly? I'm using CodeWarrior 10.2 for microcontrollers and an MC12311CHN chip which contains an HCS08 microcontroller.


void foo (void)




sta FCMD ; command the flash



Without an include file such as, FCMD is undefined.