CodeWarrior 10.7 S12Z Assembler Problem

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

CodeWarrior 10.7 S12Z Assembler Problem

946 Views
gordonp
Contributor III

I am working on a project that is predominantly C based, but I need to add a single assembler file. The assembler code  is very simple, but every time I try to build the project I get the error "A23014:Not a LISA/HCS12Z instruction or directive". The file has been named with a .asm extension, and is in the Sources folder. I tried reducing the assembler code down to a bare minimum (below). The error is complaining about the line "XDEF SpSub". Are there any specific project setup options that could explain this problem?

XDEF SpSub

SpSub:
  nop
SpSubEnd:

0 Kudos
Reply
3 Replies

776 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Gordon.

Can you please send me a demo project to show this error? Thanks.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

776 Views
gordonp
Contributor III

Hi Jennie

I found the problem. It was something to do with adding an indent to the XDEF directive. After I did this, the error went away!

Regards

Gordon

0 Kudos
Reply

776 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Good to know your problem was solved.

Thanks for the sharing. :-)

0 Kudos
Reply