Local labels when porting 68HC11 code to HCS12

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Local labels when porting 68HC11 code to HCS12

Jump to solution
652 Views
micmed
Contributor I

Hello,

I have some ancient 68HC11 code that used the x68c11 assembler (by AvoCet/2500AD?) that I am supposed to be migrating to something not end of life. I settled on the MC9S12A32CFUE and have set up an environment using CodeWarrior 5.2 with a modification to support this derivative (refer to: thread 585450).

 

This old code makes use of "dollar local labels" very often, and I have not been able to find an equivalent replacement that is accepted by the CW5.2 assembler. My question is, does this feature exist in the CW5.2 assembler, and if not, is there an equivalent implementation?

Example of syntax:

MAIN

    NOP

    NOP

    BRA    1$

1$

    NOP

    NOP

 

These labels get reused throughout the .S file

Thank you.

0 Kudos
Reply
1 Solution
604 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @micmed,

I'm afraid the assembler does not support local labels.

Refer to Assembler_HC12.pdf

\Freescale\CWS12v5.2\Help\pdf\

You can replace it with standard labels.

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
1 Reply
605 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @micmed,

I'm afraid the assembler does not support local labels.

Refer to Assembler_HC12.pdf

\Freescale\CWS12v5.2\Help\pdf\

You can replace it with standard labels.

 

Regards,

Daniel

0 Kudos
Reply