AnsweredAssumed Answered

assembler for FLASH CW 5.7 MC9s08RE16

Question asked by Steve Church on Feb 5, 2008
Latest reply on Feb 10, 2008 by bigmac
I am wishing to store and read data in FLASH memory. I have utilised the code for FLASH Application Examples in the HCS08 reference manual, using inline assembler. I am getting various errors mostly relating to references to label addresses within the code.
Can anyone point me towards any C/assembler code that will allow me to store/retrieve data in FLASH.
The type of thing the compiler doesn't like is

lda   #SubLabel1
.....
SubLabel1:
.
.
I have no experience of mixing assembler and C.

Outcomes