Keil Logo

AX51: ERRORS ASSEMBLING STARTUP.A51


Information in this article applies to:

  • AX51 Version 1.14
  • µVision2 Version 2.14

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

Last Reviewed: Friday, July 20, 2001


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.