ARM Technical Support Knowledge Articles

ERRORS ASSEMBLING STARTUP.A51

Applies to: AX51 Macro Assembler

Answer


Information in this article applies to:


SYMPTOM

When I use the AX51 assembler for my 8051 project, I receive the following error when I assemble the STARTUP.A51 file:

000006                  141                     MOV     SP,#?STACK-1
*** ____________________________________________________^
*** ERROR #A45 IN 141 (STARTUP.A51, LINE 141): UNDEFINED SYMBOL

CAUSE

This error is caused by the SP sfr which is undefined. This SFR was defined automatically by the A51 assembler.

RESOLUTION

Define the SP SFR and the assembler will no longer generate this error. For example:

SP      EQU     81h
                MOV     SP,#?STACK-1

Article last edited on: 2001-07-20 00:00:00

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential